安裝oracle 10g後用PLSQL Developer成功串連服務,防止中間出現錯誤的流程

來源:互聯網
上載者:User

標籤:複製   登入   方法安裝   標識   ora   一個   baidu   dev   指定   

安裝oracle 10g之前添加環境變數

變數名:TNS_ADMIN

變數值:D:\oracleclient\instantclient_11_2

這樣在oracle安裝後會在這個檔案下產生三個檔案:listener.ora、sqlnet.ora、tnsnames.ora

將這三個檔案移動到D:\oracleclient\instantclient_11_2\NETWORK\ADMIN,檔案夾是自己建的。

然後將從網上下載的instantclient包解壓,預設為instantclient_11_2檔案件,複製此檔案夾中的檔案到D:\oracleclient\instantclient_11_2

百度云:連結: https://pan.baidu.com/s/1eStmK8a 密碼: dx33

開啟PLSQL Developer,oracle登入-取消

先進入到介面,工具(Tools)—>喜好設定(Preferences)->串連(connection),

將D:\oracleclient\instantclient_11_2

D:\oracleclient\instantclient_11_2\oci.dll填寫到框中。

退出軟體,重新登入

 

這樣就可以成功的登入oracle資料庫了。

這種方式是通過多次安裝總結出來的,因為每次安裝後使用PLSQL Developer串連oracle資料庫都會出現問題,去網上搜解決問題的方法很繁雜,有時候解決了一個問題後又出現了新的問題。如:ORA-12154: TNS: 無法解析指定的串連標識符,ORA-12514,listener does not currently kown of service requested in connect descriptor等等。

這個流程走下來會自動產生oracle的服務,就可以直接用plsql串連它。

其實對於只是使用而不深究oracle的人來說,不妨使用種方法安裝,可以節省很多時間。

安裝oracle 10g後用PLSQL Developer成功串連服務,防止中間出現錯誤的流程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.