Oracle instant client安裝 用於PL/SQL Dev

來源:互聯網
上載者:User

虛擬機器裡的Linux安裝了Oracle,由於在Windows物理機要用到PL/SQL Developer串連到虛擬機器裡的Oracle,但是不想在物理機裡在重新安裝一下Oracle了(太大了,沒地了=。=)。於是用到了Oracle Instant Client。好了廢話不多說了。步驟如下:1、先在Linux裡配置好監聽。listener.ora 檔案內容如下# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora# Generated by Oracle configuration tools.SID_LIST_LISTENER =(SID_LIST =(SID_DESC =(SID_NAME = PLSExtProc)(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)(PROGRAM = extproc))(SID_DESC =(GLOBAL_DBNAME = wiseman)(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)(SID_NAME = wiseman)))註:SID_name的大小寫必須和Linux裡的SID一樣。我的是小寫2、然後是Windows端的配置了,先把http://www.oracle.com/technetwork/topics/winsoft-085727.html下的instantclient-basic-nt-11.2.0.3.0.zip下載下來(我的是32位系統),然後解壓到C:\Oracle\instantclient_11_2下,然後把tnsnames.ora複製到C:\Oracle\instantclient_11_2\network\admin下。內容如下:GGDB =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.0.99)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = WISEMAN)))3、最後設定PL/SQL Developer,工具-->喜好設定下改成如內容即可

現在重啟一下PL/SQL Developer,再次登陸就行了。

補充:Instant Client 不內建SQL*Plus所以可以在剛才的頁面下載它, instantclient-sqlplus-nt-11.2.0.3.0.zip。下載完後,在配置一下windows端的系統變數。NLS_lANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBKTNS_ADMIN=C:\Oracle\instantclient_11_2Path=C:\Oracle\instantclient_11_2


現在就可以用 sqlplus system/oracle@GGDB 進行串連了。

聯繫我們

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