1. 程式人生 > >PLSQL連接Oracle 數據庫配置詳解

PLSQL連接Oracle 數據庫配置詳解

evel 目錄 win32 asi ges network con 配置詳解 soft

1. 下載instantclient-basic-win32-11.2.0.1.0

(oracle官網下載地址:http://www.oracle.com/technetwork/topics/winsoft-085727.html , 下載地址2:http://download.csdn.net/detail/czw2010/5732241)

2. 解壓instantclient-basic-win32-11.2.0.1.0並放置在oracle安裝目錄的product下(放置位置無強制要求,可隨意放置),如下圖:

技術分享

3. 拷貝D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN下的tnsnames.ora文件到instantclient_11_2下。

4. 打開PLSQL Developer,選擇Tools -> perference -> Connection,配置其中的Oracle Home和OCI Library項,如下圖所示:

技術分享

技術分享

其中, Oracle Home:D:\app\Administrator\product\instantclient_11_2

  OCI Library:D:\app\Administrator\product\instantclient_11_2\oci.dll

5. 配置系統環境變量

右擊"我的電腦" - "屬性" - "高級" - "環境變量" - "系統環境變量":

1>.選擇"Path" - 點擊"編輯", 把 "D:\app\Administrator\product\instantclient_11_2;" 加入;
2>.點擊"新建", 變量名設置為"TNS_ADMIN", 變量值設置為"D:\app\Administrator\product\instantclient_11_2;", 點擊"確定";
3>.點擊"新建", 變量名設置為"NLS_LANG", 變量值設置為"SIMPLIFIED CHINESE_CHINA.ZHS16GBK", 點擊"確定";

PLSQL連接Oracle 數據庫配置詳解