首页 > 数据库 >ASP.NET和Oracle连接问题的解决方法 - Unable to load DLL (oci.dll)

ASP.NET和Oracle连接问题的解决方法 - Unable to load DLL (oci.dll)

时间:2023-11-07 12:02:23浏览次数:39  
标签:load oci ASP Windows list Ora92 under Oracle folder

以下适用于Windows 2003:

不少人在做ASP.NET+Oracle开发的时候都会碰到连接问题,提示“Unable to load DLL (oci.dll)”,但这个文件在系统中是存在的,很多人为此焦头烂额,我看到很多的帖子都是求助这个问题的。其实并非所有的人都会碰到这个问题,只在于用硬盘分区格式为NTFS的用户,既然oci.dll文件时存在的,那么访问不到就自然是权限的问题了,解决方法如下:

例如你的Oracle是装在C盘中,目录为“C:/Oracle/Ora92/”,那么需要针对Ora92这个文件夹设置权限就可以了,“属性 -> 安全 -> 添加 -> ASPNET”,该用户权限都是默认的即可。


 

以下适用于Windows 2003/XP:

Solution Description
——————–

Oracle 9.2 Client software requires that you give the Authenticated User privilege to the Oracle Home by following these steps:

1.  Log on to Windows as a user with Administrator privileges.

2.  Launch Windows Explorer from the Start Menu and navigate to the ORACLE_HOME folder.  This is typically the “Ora92″ folder under the “Oracle” folder (i.e. D:\Oracle\Ora92).

- the "Ora92" folder under the "Oracle" folder  (i.e. D:\Oracle\Ora92) in Oracle9iR2

  or

- the "Client_1" folder under the "Oracle\product\10.1.0" folder  (i.e. D:\Oracle\product\10.1.0\Client_1) in Oracle10gR1

  or

- the "Db_1" folder under the "Oracle\product\10.1.0" folder  (i.e. D:\Oracle\product\10.1.0\Db_1) in Oracle10gR1

3.  Right-click on the ORACLE_HOME folder and choose the “Properties” option from the drop down list.  A “Properties” window should appear.

4.  Click on the “Security” tab of the “Properties” window.

     NOTE: If you are running Windows XP and do not have a "Security" tab,  please do the following:
      (a) Open "Folder Options" in your Control Panel.
      (b) Choose the "View" tab.
      (c) Under "Advanced Settings" uncheck the option "Use simple file sharing (Recommended)".

      The "Security" tab should now be available.

5.  Click on “Authenticated Users” item in the “Name” list (on Windows XP the “Name” list is called “Group or user names”).

6.  Uncheck the “Read and Execute” box in the “Permissions” list under the “Allow” column (on Windows XP the “Permissions” list is called “Permissions for Authenticated Users”).

7.  Re-check the “Read and Execute” box under the “Allow” column (this is the box you just unchecked).

8.  Click the “Advanced” button and in the “Permission Entries” list make sure you see the “Authenticated Users” listed there with:

Permission = Read & Execute
Apply To = This folder, subfolders and files

If this is NOT the case, edit that line and make sure the “Apply onto” drop-down box is set to “This folder, subfolders and files”.  This should already be set properly but it is important that you verify this.

9.  Click the “Ok” button until you close out all of the security properties windows.  The cursor may present the hour glass for a few seconds as it applies the permissions you just changed to all subfolders and files.

10.  Reboot your computer to assure that these changes have taken effect.

Re-execute the application and it should now work.

 

http://itswadesh.wordpress.com/2011/04/09/oracleclient-requires-oracle-client-software-version-8-1-7-or-greater/

http://www.askrenzo.com/oracle/SQL_HANDLE_ENV.html



标签:load,oci,ASP,Windows,list,Ora92,under,Oracle,folder
From: https://blog.51cto.com/emanlee/8229617

相关文章

  • 项目中难点-页面点击“取消”按钮实现无感刷新--reload
    1、在App.vue页面中注册provide中定义reloadprovide(){return{reload:this.reload}} 2、在App.vue页面中的methods中定义方法reload目的通过控制router-view的显示与隐藏进行重新加载页面,实现无感刷新。reload(){this.isRouterAlive=falsethis.$next......
  • Visual Studio 2008安装ASP.NET MVC 2 RTM
    1首先,要安装VisualStudio2008SP1,下载地址http://www.microsoft.com/en-us/download/details.aspx?id=109862下载ASP.NETMVC2RTM(英文版,2.5M,AspNetMVC2_VS2008.exe)下载地址http://www.microsoft.com/en-us/download/details.aspx?id=220793双击AspNetMVC2_VS2008.e......
  • Asp.Net Core实战(干货)
    序言使用.NETCore,团队可以更容易专注的在.netcore上工作。比如核心类库(如System.Collections)的更改仍然需要与.NETFramework相同的活力,但是ASP.NETCore或EntityFrameworkCore可以更轻松地进行实质性更改,而不受向后兼容性的限制。.NETCore借鉴了.NETFramework的最佳实践,并......
  • 在ASP.NET MVC框架中,如何处理多个提交按钮?
    内容来自DOChttps://q.houxu6.top/?s=在ASP.NETMVC框架中,如何处理多个提交按钮?在ASP.NETFrameworkBeta中,有几种方法可以处理同一表单中的多个提交按钮。一种方法是使用一个隐藏字段来区分不同的提交按钮。例如:<%Html.BeginForm("MyAction","MyController",FormMethod......
  • ModuleNotFoundError: No module named 'google_drive_downloader'&&No matching dist
    安装googledrivedownloader(adaface)C:\Users\liruilong\Documents\GitHub\caface_demo\demo>pythonmain.py--fusion_methodcluster_and_aggregateTraceback(mostrecentcalllast):File"main.py",line17,in<module>fromface_d......
  • Metasploit windows 调试环境搭建
    Metasploitwindows调试环境搭建安装ruby首先确定metasploit的ruby版本metasploit-framework/.ruby-version3.0.5在https://rubyinstaller.org/downloads/archives/下载对应版本的Ruby+DevkitInstallers(x64),默认配置安装即可。输入ruby-v查看是否安装成功安装gem......
  • Metasploit渗透测试框架的基本使用
    一、Metasploit渗透测试框架介绍(1)基础库metasploit基础库文件位于源码根目录路径下的libraries目录中,包括Rex,framework-core和framework-base三部分。Rex是整个框架所依赖的最基础的一些组件,如包装的网络套接字、网络应用协议客户端与服务端实现、日志子系统、渗透攻击支持例......
  • easyupload
    打开界面就是一个文件上传的界面 然后在bp试了很多种方法都没有成功,还是看了wp这里需要利用到.use.ini那为什么不用.heaccess?好像这种方法被过滤了,当时我用的时候没有成功 这里的话我们先上传一个.use.ini文件 里面的内容如下 意思是那么和.user.ini和muma1.jpg同......
  • ASP.NET窗体开发实现下载Excel表格数据
    使用Excel表格下载,还是要先下载NPOI插件,下载安装后,才能直接下载Excel表格。usingSystem;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.IO;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingEnglishPr......
  • [Listen][Download] Harry Potter Audiobooks Complete Series – All Harry Potter A
    HarryPotterAndTheCursedChild(#8inSeries)WrittenbyJKRowling在线音频,英文语音,mp3https://audiobookslab.com/harry-potter-and-the-cursed-child-audiobook/ ThePhilosopher’sStone(1997)TheChamberofSecrets(1998)ThePrisonerofAzkaban(1999)TheGoble......