錯誤現象
-----------connectionstring:
Provider=OraOLEDB.Oracle; Data Source=ORACLE; User Id=sinodigital;Password=aaaaa;
------------err.description:
Provider cannot be found. It may not be properly installed.
-----------connectionstring:
Provider=MSDAORA.1;Password=aaaaa;User ID=sinodigital;Data Source=oracle;Persist Security Info=True
------------err.description:
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.
-----------connectionstring:
DSN=dl;UID=sinodigital;PWD=aaaaa;SERVER=oracle;
------------err.description:
[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
原因:oracle安裝目錄檔案夾的authenticated users使用者權限不足,導致asp檔案建立資料庫連接時,系統無法訪問oracle目錄
解決方案:以oracle9.2為例
1、在web伺服器的oracle安裝目錄下,右鍵選擇ora92檔案夾的屬性
2、在“安全”頁下將authenticated user的“讀取及運行”的允許取消選中(時間比較長),點擊確定
3、再次開啟屬性頁面,將“安全”頁下將authenticated user的“讀取及運行”的允許選中,點擊確定,即可
如果沒有“安全”頁,將菜單“工具”->查看下的“使用簡單檔案分享權限設定(推薦)”取消選中,確定即可。