客户端连ORACLE
1, 到ORACLE官網(wǎng)下載oracle instantclient: instantclient-basic-win32-11.2.0.1.0.zip
2, 在C盤創(chuàng)建目錄c:/oracleclient
3, 將instantclient-basic-win32-11.2.0.1.0.zip解壓到 c:/oracleclient
4, 在c:/oracleclient/instantclient_11_2下創(chuàng)建目錄network,并在network下創(chuàng)建目錄admin,在admin下創(chuàng)建文件tnsnames.ora
5, tnsnames.ora的內(nèi)容為如下格式:
databasename =
??? (DESCRIPTION =
????? (ADDRESS_LIST =
??????? (ADDRESS = (PROTOCOL = TCP)(HOST = ip address)(PORT = 1521))
????? )
????? (CONNECT_DATA =
??????? (SERVICE_NAME = database name)
????? )
??? )
如:
?
orcl?=
??? (DESCRIPTION =
????? (ADDRESS_LIST =
??????? (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.124)(PORT = 1521))
????? )
????? (CONNECT_DATA =
??????? (SERVICE_NAME = orcl)
????? )
??? )
6, 創(chuàng)建系統(tǒng)環(huán)境變量nls_lang,值為AMERICAN_AMERICA.ZHS16GBK(該值應和服務器端字符集一致)
7, 進入PL/SQL DEVELOPER(點取消進入即可),打開TOOLS/PREFERENCE 將ORACLE HOME設置為C:/OracleClient/instantclient_11_2 , 將OCI library設置為C:/OracleClient/instantclient_11_2/oci.dll
8, 退出PL/SQL DEVELOPER,重新登錄
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的客户端连ORACLE的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jira+mysql配置
- 下一篇: ORACLE穿透防火墙问题