Asp.Net 連線Oracle資料庫 出現"找到 Oracle 客戶端和網路元件" 徹底解決方法! (轉)

worldblog發表於2008-01-06
Asp.Net 連線Oracle資料庫 出現"找到 Oracle 客戶端和網路元件" 徹底解決方法! (轉)[@more@]

連線 出現"找到 Oracle 客戶端和" 徹底解決方法!

本人用做的本地訪問oracle資料庫時,在自己機器上好好的能訪問,但是當放到時
就不能出現如下的錯誤:
"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. Provr is unable to function until these components are installed. "
本人查詢了CSDN發現不下二十人問過這個問題,但是沒有一個人真正的給出了一個解決辦法,但是專案馬上就要交工了,問題還沒有解決,最後請教我們公司的技術總監——”Oracle專家“終於搞定這個問題:
據我的理解:1.是在 Oracle 9.02i 版的問題,2.你的 ORACLE_HOME 路徑所在的分割槽格式是:NTFS格式;解決方法 到Oracleora92  開啟Ora92的-》屬性-》,選Authenticated Users 看下面的屬性  將Read and Execute 的勾去掉,然後又勾上,確定重新啟動機器 ,ok 搞定,就是這麼簡單,
當然要避免這種問題,您可以這麼做:不要Oracle9.02 或者不要安裝在NTFS格式的分割槽
附上
Oracle 公司的原版資料:
Problem Description -------------------  When running an application that connects to Oracle and uses the Authenticated User privilege (such as 's Internet Information Server (IIS)) via Oracle's 9.2 client software and any of these programmatic interfaces  1. Oracle Provider for OLE   2. Microsoft OLE DB Provider for Oracle  3. Oracle ODBC   4. Microsoft ODBC for Oracle  5. Oracle s for OLE (OO4O)  you will receive one of the following errors:  (1) Oracle Provider for OLE DB  Error Type:  Microsoft OLE DB Service Components (0x80070005)  Access is denied.  (2) Microsoft OLE DB Provider for Oracle  Error Type:  Microsoft OLE DB Provider for Oracle (0x80004005)  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.  Or  Error Type:  Microsoft OLE DB Provider for Oracle (0x80004005)  Oracle error occurred, but error message could not be retrieved from  Oracle.  (3) Oracle ODBC Driver  Error Type:  Microsoft OLE DB Provider for ODBC Drivers (0x80004005)  Specified driver could not be loaded due to system error 5 (Oracle in  OraHome92).  (4) Microsoft ODBC for Oracle  The Oracle(tm) 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.  (5) Oracle Objects for OLE  (a) while using a GLOBAL.ASA file  Error Type:  Active Server Pages (0x0)  An error occurred while creating object 'OraSession'.  (b) not using a GLOBAL.ASA file  Error Type:  Microsoft runtime (0x800A0046)  Pession denied: 'CreateObject'  (6) Other miscellaneous errors  (a) The Specified Module Could Not Be Found  Solution Description --------------------  You need to give the Authenticated User privilege to the Oracle Home by following these steps:  1.  Log on to as a user with Administrator privileges.  2.  Launch Windows Explorer from the Start Menu and and navigate to the  ORACLE_HOME directory.  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 on the "Properties" window.  5.  Click on "Authenticated Users" item in the "Name" list (on the  "Name" list is called "Group or user names").  6.  Uncheck the "Read and Execute" box in the "Permissions" list (on Windows  the "Permissions" list is called "Permissions for Authenticated Users").  This box will be under the "Allow" column.  7.  Check the "Read and Execute" box.  This is the box you just unchecked.  8.  Click the "Apply" button.  9.  Click the "OK" button.  10.  You may need to reboot your computer after these changes have been made.  Re-execute the application and it should now work.  Explanation -----------  If you install OracleRelease 2 (9.2.0.1) on a computer running Windows with an NTFS partition, the contents of ORACLE_HOME directory will not be visible to users who are authenticated on that machine.  These permissions were not set proy 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.  NOTE: The application will continue to work if the user has logged onto the  machine as an Administrator.  Any application that is using the Authenticated User privilege will not work. A notable example would be 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.  References ----------  :2498880 - Oracle 9I Release 2 Installation Issue on NTFS  File System  Additional Search s ----------------------- OLEDB

 


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752043/viewspace-996707/,如需轉載,請註明出處,否則將追究法律責任。

相關文章