PLSQL Developer串連遠程Oracle方法(非安裝用戶端)

來源:互聯網
上載者:User

遠端連線Oracle比較麻煩,通常需要安裝oracle的用戶端才能實現。通過instantclient可以比較簡單的串連遠端Oracle。

 

1.建立目錄D:\Oracle_Cleint用於存放相關檔案,建立目錄D:\Oracle_Cleint\NETWORK\ADMIN用於存放tnsnames檔案
2.下載對應版本和系統的instantclient壓縮包,解壓得到instantclient檔案夾,將該檔案夾內的內容放在D:\Oracle_Cleint下。

    Oracle11GR2的instantclient檔案 :http://pan.baidu.com/s/13YKtK 
3.擷取tnsnames.ora檔案,檔案位置在/home/app/oracle/product/11.2.0/dbhome_1/network/admin下。
4.修改tnsnames.ora檔案,修改如下

# tnsnames.ora Network Configuration File: /home/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora# Generated by Oracle configuration tools.ORCL =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = Oracle)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl)))

將上面的Oracle 修改為對應的ip地址即可
5.將修改好的tnsnames.ora檔案放在D:\Oracle_Cleint\NETWORK\ADMIN目錄下。
6.設定環境變數(我的電腦->右鍵“屬性”->進階->環境變數->使用者變數),建立一個使用者變數,變數名NLS_LANG,變數值SIMPLIFIED CHINESE_CHINA.ZHS16GBK
7.配置PLSQL Developer,工具→喜好設定→Oracle→串連,Oracle主目錄名下填寫:D:\Oracle_Cleint\
OCI庫填寫:D:\Oracle_Cleint\oci.dll

相關文章

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.