window8 64位 + Oracle 12c 64位下使用PL/SQL Developer 的解決辦法

來源:互聯網
上載者:User

標籤:window8 64位 + oracle


1)安裝Oracle 12c 64位
2)安裝32位的Oracle用戶端( instantclient-basic-nt-12.1.0.1.0.zip)
下載 instantclient-basic-win32-11.2.0.1.0.zip ,必須是win32版本,Oracle官網有下載,將其解壓至Oracle安裝目錄的Product下:D:\oracle\product\instantclient_12_1。


拷貝 NETWORK\ADMIN\tnsnames.ora 這個檔案到D:\oracle\product\instantclient_12_1目錄下


3)安裝PL/SQL Developer
安裝 PL/SQL Developer,在perference->Connection裡面設定OCI Library和Oracle_Home,例如設定為:
Oracle Home :D:\oracle\product\instantclient_12_1
OCI Library : D:\oracle\product\instantclient_12_1\oci.dll
 
4) 設定環境變數(修改PATH和TNS_ADMIN環境變數)


運行cmd 進入DOS,輸入命令 sqlplus / as sysdba 查看NLS_LANG
對於NLS_LANG環境變數, 最好設定成和資料庫端一致, 首先從資料庫端查詢字元集資訊:
SQL> select userenv(‘language‘) nls_lang from dual;
NLS_LANG
----------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBK




右擊"電腦" - "屬性" - "進階系統設定" - "環境變數" - "系統內容變數":
1>.選擇"Path" - 點擊"編輯", 把 "D:\oracle\product\instantclient_12_1;" 加入;
2>.點擊"建立", 變數名設定為"TNS_ADMIN", 變數值設定為"D:\oracle\product\instantclient_12_1;", 點擊"確定";
3>.點擊"建立", 變數名設定為"NLS_LANG", 變數值設定為"SIMPLIFIED CHINESE_CHINA.ZHS16GBK", 點擊"確定";
最後點擊"確定"退出.




啟動 PL/SQL Developer ,運行無問題。

window8 64位 + Oracle 12c 64位下使用PL/SQL 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.