1、下载instant client,地址:http://www.oracle.com/technetwork/cn/topics/winsoft-095945-zhs.html
2、解压并在里面建立network\admin路径
3、建立tnsnames.ora文件,内容如下:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.14)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
4、环境变量path中加入E:\develop\Oracle\instantclient_11_2这个路径
5、新增环境变量NLS_LANG,值为SIMPLIFIED CHINESE_CHINA.ZHS16GBK,不然会有中文问题,这个值是在sqlplus中这样查出来的:
SELECT * FROM v$nls_parameters;
然后拼凑:{NLS_LANGUAGE}_{NLS_TERRITORY}.{NLS_CHARACTERSET}