1. 解压instantclient-basic-win32-11.2.0.1.0.zip至Oracle安装目录的Product下 具体目录如下D:\Oracle\product\instantclient_11_2
2. D:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora 拷贝到Oracle客户端目录下D:\Oracle\product\instantclient_11_2
3. 在perference->Connection里面设置OCI Library和Oracle_Home,例如本机设置为:
Oracle Home : D:\Oracle\product\instantclient_11_2
OCI Library : D:\Oracle\product\instantclient_11_2\oci.dll
4. select userenv('language') nls_lang from dual;
环境变量
TNS_ADMIN : "D:\Oracle\product\instantclient_11_2"
NLS_LANG : SIMPLIFIED CHINESE_CHINA.ZHS16GBK