PLSQL Developer串連遠程Oracle方法(非安裝client)

來源:互聯網
上載者:User

標籤:back   otto   tle   內容   bho   name   技術   ext   nes   

遠端連線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

PLSQL Developer串連遠程Oracle方法(非安裝client)

聯繫我們

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