一、
1)下载Oracle客户端:http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
2)下载plsql:
注意:安装plsql如果是32位的对应的instantclient就下32位的,plsql如果64位的对应的instantclient就下64位的(总之两个版本要一致)
二、配置环境变量:
1)path = C:\instantclient
2)NLS_lANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK
3)TNS_ADMIN = C:\instantclient\NETWORK\ADMIN
三、在C:\instantclient下添加文件夹\NETWORK\ADMIN,最后文件目录如下C:\instantclient\NETWORK\ADMIN
其中ADMIN文件夹用来存放tnsnames.ora,或者不创建,将tnsnames.ora放在客户端根目录下,效果一样
tnsnames.ora内容可参考:
ORCL=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)
时间: 2024-10-12 15:03:17