您好,登錄后才能下訂單哦!
1.下載
從http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html下載
Instant Client Package – Basic包( 標(biāo)注:All files required to run OCI, OCCI, and JDBC-OCI applications)這里下載的是Version 11.1.0.7
2.本地保存Oracle Client Package:
創(chuàng)建文件夾,比如oracle_client,將下載的文件加壓縮到此文件夾里.(筆者目錄: D:\oracle_client\instantclient_10_2)
3.在當(dāng)前目錄下,新建立兩個(gè)文件,sqlnet.ora和tnsnames.ora然后再手動(dòng)配置sqlnet.ora和tnsnames.ora
比如這里是:
sqlnet.ora文件內(nèi)容:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
tnsnames.ora文件內(nèi)容(斜體表示需要替換的內(nèi)容):
orcl=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.103)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
4.配置環(huán)境變量
變量名: TNS_ADMIN
變量值: D:\oracle_client\instantclient_10_2
否則出現(xiàn):ORA-12154: TNS:could not resolve the connect identifier specified錯(cuò)誤
5.安裝pl/sql軟件(過程略)
6.配置pl/sql的Oracle連接參數(shù):
選擇pl/sql的工具/首選項(xiàng)(too/ preference/)里的連接,在右面設(shè)置Oracle主目錄名(即安裝目錄)和OCI庫(kù).
Oracle主目錄名: D:\oracle_client\instantclient_10_2
OCI庫(kù): D:\oracle_client\instantclient_10_2\oci.dll
7.登陸pl/sql測(cè)試成功
軟件下載鏈接: http://pan.baidu.com/s/1o6mD4ZC
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。