The 'OraOLEDB.Oracle.1' provider oraoledbis not registered on the local machine

解决asp.net安装后无法访问oracle数据库问题_ASP.NET技巧_
解决asp.net安装后无法访问oracle数据库问题
来源:人气:10702
解决.net安装后无法访问问题,这篇忘了那里转的,
安装完ASP.NET,Oracle9i客户端后,使用System.Data.OracleClient访问Oracle数据库时收到如下信息
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
Oracle 9i Release 2 客户端在安装到Windows的NTFS分区下时的安全认证设置不正确,引起本机的Authenticated Users用户无法看到ORACLE_HOME目录下的内容; 这导致在ASP.NET以Authenticated Users权限使用System.Data.OracleClient连接Oracle数据库时报出以上错误。
要解决以上问题,只要给Authenticated Users 组加上访问Oracle Home目录的权限即可
以Administrator权限登录Windows. 启动Window 资源浏览器找到ORACLE_HOME目录,如C:\Oracle\ora92 右键弹出菜单,选择该目录共享与安全(Win2000下要点击属性) 点击 “安全” 页签 在组和用户名称列表中点击“Authenticated Users” 项. 在该用户的权限列表中,将“读取和运行”的选择框置为不选中状态 再次点击“读取和运行”的选择框,将其设置为选中状态 点击“高级”按钮并在权限项目中确定“Authenticated Users” 是否拥有“读取并运行”权限并应用于“该文件夹,及子文件夹和文件”. 如果不是,双击这样,并确保权限可以“应用于” “该文件夹,及子文件夹和文件”. 该项非常重要你一定要核查. 点击“确定” 按钮 重启动, 以使得所有的修改生效.
================================================The 'OraOLEDB.Oracle.1' ovider is not registered on the local machine的原因这种情况有3种可能的原因
1.装Oracle 的机器是不是NTFS的?如果是的话,将\Ora81下的BIN的权限,全部放开,给所有用户。(不然在B/S结构下会因为没有权限访问目录而报这个错误)
2.如果数据库服务器是Oracle816的。在服务器的那台机器上找Ora81\network\ADMIN下的sqlnet.ora文件,把里面的SQLNET.AUTHENTICATION_SERVICES= (NTS)改成SQLNET.AUTHENTICATION_SERVICES= (NONE)(这种会造成某些机器上报驱动初始化失败的错误,在用OracleClient下出现过一次)
3.如果以上都没有解决问题。可以考虑是不是里的注册真的丢失了。(可能性比较小,windows还是比较安全的)regsvr32 ..\ORACLE_HOME\bin\OraOLEDB.dll 再不行可以重装一下客户端试试。
优质网站模板随笔 - 57&
文章 - 0&评论 - 197&trackbacks - 9
这种情况有3种可能的原因
1.装Oracle 的机器是不是NTFS的?如果是的话,将\Ora81下的BIN的权限,全部放开,给所有用户。(不然在B/S结构下会因为没有权限访问目录而报这个错误)
2.如果数据库服务器是Oracle816的。在服务器的那台机器上找Ora81\network\ADMIN下的sqlnet.ora文件,把里面的SQLNET.AUTHENTICATION_SERVICES= (NTS)改成SQLNET.AUTHENTICATION_SERVICES= (NONE)(这种会造成某些机器上报驱动初始化失败的错误,在用OracleClient下出现过一次)
3.如果以上都没有解决问题。可以考虑是不是注册表里的注册真的丢失了。(可能性比较小,windows还是比较安全的)regsvr32 ..\ORACLE_HOME\bin\OraOLEDB.dll 再不行可以重装一下客户端试试。
阅读(...) 评论()> SSIS connect Oracle,该怎么处理
SSIS connect Oracle,该怎么处理
nieyingchun & &
发布时间: & &
浏览:2 & &
回复:1 & &
悬赏:0.0希赛币
SSIS connect Oracle本人想通过SSIS 将数据导入到Oracle 的数据库中, 但用Oracle Provider for OLE DB 与 Microsoft OLE DB Provider for Oracle 都连接不上。会显示: &Test connection failed because of an error in initalizing provider.The 'OraOLEDB.Oracle.1'provider is not registered on the local machine.或: Test connection failed because of an error in initializing provider.Oracle client and networking component were not found.these components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.但是我的版本是Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - &Prod PL/SQL Release 10.2.0.3.0 - Production CORE
10.2.0.3.0
&Production TNS for 32-bit Windows: Version 10.2.0.3.0 - ProductionNLSRTL Version 10.2.0.3.0 - ProductionPL/SQL 没问题能连接上,使用OLE DBDestionation 时也使用的节点名,有的还说是因为注册表的问题,但我也不知道如何查看,请问如何解决?在线等结果!
貌似对应的驱动版本过低these components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.nifeng98 & &
23:36:43 & &
& & (0)(0)引用
本问题标题:
本问题地址:
温馨提示:本问答中心的任何言论仅代表发言者个人的观点,与希赛网立场无关。请对您的言论负责,遵守中华人民共和国有关法律、法规。如果您的言论违反希赛网问答中心的规则,将会被删除。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&查看: 22456|回复: 6
系统错误998(oracle in OraHome92),指定驱动程序无法加载
论坛徽章:18
Unable to connect
SQLState=IM003
由于系统错误998(oracle in OraHome92),指定驱动程序无法加载
Unable to connect
SQLState=IM004
[MICROSOFT][ODBC驱动程序管理器]驱动程序的SQLALLOCHANDLE ON SQL_HANDLE_ENV失败
(原因:几台机器都有这种情况,总结是安装了jsp的相关软件如tomkat,java1.3等运行造成的,我又测了一台机器,同样关于oracle也坏了。
我重装了oracle odbc最新版仍然不行。
请问高手解决办法)
需要说明的是
我是在客户端WIN2000装的oracle客户端,java+tomcat等
并非在服务器HPUX上
论坛徽章:3
请参考如下地址:
是一个bug.
论坛徽章:3
我的问题:
我原来有一个程序,是发出短信用的。
机器以前是windows 2000,更换了机器,采用windows XP +SP2,
程序是比较老的,IIS + Oracle ODBC 驱动,
执行是报错
“由于系统错误998(oracle in OraHome92),指定驱动程序无法加载”
我的Oracle装在 C 盘,NTFS格式
1、到c:\oracle\ora92
2、选取属性,XP需要去掉简单共享
3、将“Authenticated Users ”的“读取和执行”权限去掉,
4、将“Authenticated Users ”的“读取和执行”权限选中,
论坛徽章:3
Subject: Unable to Connect to Database with Oracle Client Software for Windows
Doc ID: Note: Type: PROBLEMLast Revision Date: 17-MAR-2006 Status: PUBLISHED
Problem Description—————————-
When running an application using any of these versions of the Oracle client software for Windows
o Oracle9i Release 2 (9.2.0.1.0) o Oracle10g Release 1 (10.1.0.2.0)
and you attempt to connect to an Oracle database through an environment that uses the “Authenticated User” group
NOTE: This typically occurs when running applications from inside Microsoft’s Internet Information Server (IIS) that connect to Oracle and you are using any of these programmatic interfaces from your application
1. Oracle Provider for OLE DB2. Microsoft OLE DB Provider for Oracle
3. Oracle ODBC Driver
4. Microsoft ODBC for Oracle
5. Oracle Objects for OLE (OO4O)
6. Microsoft .NET Framework Data Provider for Oracle
7. Oracle Data Provider for .NET (ODP.NET)
you may receive one of the following errors:
(1) Oracle Provider for OLE DB(a) Error Type: Microsoft OLE DB Service Components (0×) Access is denied.
(b) OraOLEDB.Oracle Provider is not registered on the local machine
(c) SQL Server Enterprise Manager (Using a Linked Server)
Error 7311: Could not obtain the schema rowset from OLE DB provider ‘UNKNOWN’. The provider supports the interface, but returns failure code when it is used. OLE DB error trace [OLE/DB Provider ‘UNKNOWN’ IDBSSchemaRowset::GetRowset returned 0×80040e37: ].
(d) OLEDBException: TNS-12154: TNS could not resolve service name
(e) Run-time error ‘3706’: Provider cannot be found. It may not be properly installed.
(2) Microsoft OLE DB Provider for Oracle
(a) Error Type: Microsoft OLE DB Provider for Oracle (0×)
Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed.
(b) Error Type: Microsoft OLE DB Provider for Oracle (0×)
Oracle error occurred, but error message could not be retrieved from Oracle.
(c) SQL Server Enterprise Manager (Using a Linked Server) Error 7399: OLE DB Provider ‘MSDAORA’ reported an error. OLE DB error trace [OLE/DB Provider ‘MSDAORA’ IDBInitialize::Initialize returned 0×: ].
(3) Oracle ODBC Driver
(a) Error Type: Microsoft OLE DB Provider for ODBC Drivers (0×) Specified driver could not be loaded due to system error 5 (Oracle in OraHome92).
(b) Microsoft OLE DB Provider for ODBC Drivers (0×) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
(c) SQLSTATE: IM004 Native Error Code: 0 Driver Message: [Microsoft][ODBC Driver Manager] Driver’s SQLAllocHandle on SQL_HANDLE_ENV failed.
(4) Microsoft ODBC for Oracle
(a) The Oracle? client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3 (or greater) client software installation. You will be unable to use this driver until these components have been installed.
(b) Error number: - Error Description: [Microsoft][ODBC Driver Manager] Driver’s SQLAllocHandle on SQL_HANDLE_ENV failed
(5) Oracle Objects for OLE(a) while using a GLOBAL.ASA file Error Type: Active Server Pages (0×0) An error occurred while creating object ‘OraSession’.
(b) not using a GLOBAL.ASA file Error Type: Microsoft VBScript runtime (0×800A0046) Permission denied: ‘CreateObject’
(6) Microsoft .NET Framework Data Provider for Oracle
(a) System.DllNotFoundException: Unable to load DLL (oci.dll). at System.Data.OracleClient.DBObjectPool.GetObject(Boolean& isInTransaction) at System.Data.OracleClient.OracleConnectionPoolManager. GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, Boolean& isInTransaction) at System.Data.OracleClient.OracleConnection.OpenInternal (OracleConnectionString parsedConnectionString, Object transact) at System.Data.OracleClient.OracleConnection.Open() at WCWSItemAvailability.ETAAvailability.SingleAvailability(String ItemNumber, String BusinessUnit, Int32 OrderQty, Int32& AvailableQty, Int32& OnHandQty, String& ETADate, Int32& Error) at WCWSItemAvailability.ETAAvailability.XMLAvailability(String XMLInput)
(b) Server Error in ‘’ Application. Could not create an environment: OCIEnvCreate returned -1. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: Could not create an environment: OCIEnvCreate returned -1. Stack Trace: [Exception: Could not create an environment: OCIEnvCreate returned -1.] System.Data.OracleClient.DBObjectPool.GetObject(Boolean& isInTransaction) +467 System.Data.OracleClient.OracleConnectionPoolManager. GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, Boolean& isInTransaction) +165 System.Data.OracleClient.OracleConnection.OpenInternal (OracleConnectionString parsedConnectionString, Object transact) +836 System.Data.OracleClient.OracleConnection.Open() +32
(c) Unable to find entry point named OCIEnvCreate in OCI.DLL
(7) Oracle Data Provider for .NET (ODP.NET)
(a) ORA-01012: not logged on
(b) ORA-12154 “TNS:could not resolve service name”
(8) Other miscellaneous errors
(a) The Specified Module Could Not Be Found
(b) ORA-00604: error occurred at recursive SQL level 1 ORA-12705: invalid or unknown NLS parameter value specified
(c) Unable to load DLL (OraOps9.dll): ... [DllNotFoundException: Unable to load DLL (OraOps9.dll).]
(d) System Error 998 trying to run ASP page
(e) Your OCI application returns a -1 when calling OCIEnvCreate
(f) You receive an Access Violation Exception from OraGeneric9.dll when trying to write to memory.
Solution Description——————————
NOTE: This problem DOES NOT exist in the Oracle10g Release 2 (10.2.0.1.0) and
later client software for Windows. If you think you are are running into a similar issue on 10.2.0.1.0 or later software, please see the “References” section below for other possible solutions.
There are two ways to resolve this problem:
SOLUTION 1 - If you must remain on the current version of the client software this solution will step you through the manual process for fixing the permissions problem. SOLUTION 2 - If you are able to patch your client software to a later version this solution will advise you on what patch to apply to resolve this problem. NOTE - If you are using the Oracle10g Instant Client you MUST follow SOLUTION 1. SOLUTION 1 ====== Oracle 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 and navigate to the
ORACLE_HOME folder. This is typically… – the “Ora92” folder under the “Oracle” folder (i.e. D:OracleOra92) in Oracle9iR2 or – the “Client_1” folder under the “Oracleproduct10.1.0” folder (i.e. D:Oracleproduct10.1.0Client_1) in Oracle10gR1 or – the “Db_1” folder under the “Oracleproduct10.1.0” folder (i.e. D:Oracleproduct10.1.0Db_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. You must REBOOT YOUR COMPUTER to assure that these changes have taken
effect. Failure to do this can prevent this procedure from working!
11. Re-execute the application and it should now work.
NOTE: If the problem is still present after following steps 1-11 and
rebooting your computer in step 10 you should perform the following two additional permissions settings at step 8 as described below. This may be necessary due to permissions that have been configured beyond the standard permissions setup when the OS was originally installed:
12. If the problem is still present, go back through these same 11 steps
above, but when performing step 8 additionally check both boxes entitled “Inherit from parent the permission entries that apply to child objects. Include these with entries explicitly defined here.” AND “Replace permission entries on all child objects with entries shown here that apply to child objects” AND be sure to reboot in step 10.
SOLUTION 2======
If you are running Oracle9i Release 2 (9.2.0.1.0) client software please
apply the following 9.2.0.4.0 patch OR LATER (i.e. 9.2.0.x.x): * Patch Number: 3095277 Description: 9.2.0.4 PATCH SET FOR ORACLE DATABASE SERVER Product: Oracle Database Family Release: Oracle 9.2.0.4 Platform: Microsoft Windows (32-bit) Last Uploaded: 11-SEP-2003 Size: 256M ( bytes)
If you are running Oracle10g Release 1 (10.1.0.2.0) client software please
apply the following 10.1.0.3.0 patch OR LATER (i.e. 10.1.0.x.x): * Patch Number: 3761843 Description: 10.1.0.3 PATCH SET FOR ORACLE DATABASE SERVER Product: Oracle Database Family Release: Oracle 10.1.0.3 Platform: Microsoft Windows (32-bit) Last Uploaded: 22-AUG-2004 Size: 447M ( bytes)
NOTE: Although these patches appear to be database-only patches they can
also be applied to the client software as well. See the patch release notes for more information on how to install the patch onto client software.
Explanation—————-
If you install Oracle9i Release 2 (9.2.0.1.0) or Oracle10g Release 1
(10.1.0.2.0) client software on a computer running Windows with an NTFSpartition, the contents of ORACLE_HOME directory will not be visible to users
who are authenticated on that machine. These permissions were not set properly
when the software was installed.
Applications that were working fine with previous versions of Oracle software
will stop working when they upgrade to Oracle 9.2 or 10.1.
NOTE: The application will continue to work if it runs as the Administrator of the machine.
Any application that is using the Authenticated User or possibly another
privilege will not work. A notable example would be IIS which might service
some of the requests based on the Authenticated User privileges.
To demonstrate the problem in further detail, you can log on to the operating
system as an authenticated machine user. You won’t be able browse the contents
of the ORACLE_HOME directory demonstrating your inability to load any Oracle
DLLs or make a connection.
Additional Information———————————
The above error messages may not only be encountered when using Oracle 9.2 or
10.1 client software but may also exist when running into general permissions
issues using third party products accessing Oracle on a Windows platform.
References—————
Bug 2498880 – Oracle 9I Release 2 Installation Issue on Windows 2000 NTFS File System (9.2.0.1.0) Bug 3067666 – ORAWSFIX9.EXE Doesn’t Run when Patching Client Only Install (9.2.0.3.0) Bug 3671964 – OUI Does Not Properly Set File Permissions on Oracle Home Directory (10.1.0.2.0) The following note describes a similar problem but different solution for a permissions issue on 10gR2 client software using the Remote Desktop Sharing capability of a Windows OS. Note
– Unable To Connect By Remote Desktop with ODBC Application IM-004
论坛徽章:3
简单的问题
断断续续搞了一段时间,解决了。
很高兴,感谢
飘香一剑的藏剑庐
论坛徽章:3
oracle9.2和oracle10g都有这个问题
oracle9.2和oracle10g都有这个问题,但也不是全出问题,使用去掉Authenticated Users的读取运行权限,“应用”后再加上一般是可以解决的,如解决不了,请重启动一下机器,再不行就装MDAC2.8。
论坛徽章:0
Win 2003下应如何处理?我按照英文介绍的方法试了几遍都不行。特别是
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).
这两步有点莫名其妙。
itpub.net All Right Reserved. 北京皓辰网域网络信息技术有限公司版权所有    
 北京市公安局海淀分局网监中心备案编号: 广播电视节目制作经营许可证:编号(京)字第1149号

我要回帖

更多关于 provider oraoledb 的文章

 

随机推荐