ASP使用ADO串連ORACLE資料庫失敗解決方案

來源:互聯網
上載者:User

錯誤現象

-----------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的“讀取及運行”的允許選中,點擊確定,即可

如果沒有“安全”頁,將菜單“工具”->查看下的“使用簡單檔案分享權限設定(推薦)”取消選中,確定即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.