标签:
到Oracle官网下载Oracle Instant Client,注意选择x86平台,Toad只认32位的Oracle Instant Client。至于版本号,没有特别要求,版本向下兼容。
桌面上,右键点“我的电脑”,选择“属性”,选择“高级”页中的“环境变量”,在系统变量中,修改如下
变量名:ORACLE_HOME
变量值:D:\Program Files\instantclient_11_2
变量名:TNS_ADMIN
变量值:D:\Program Files\instantclient_11_2
变量名:NLS_LANG
变量值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
修改Path变量,在后面添加 D:\Program Files\instantclient_11_2
在D:\Program Files\instantclient_11_2新建一个文本文件,文件名为tnsnames.ora和sqlnet.ora
#orcl可以自定义替换
#HOST修改为Oracle Server地址
#SERVICE_NAME修改为Oracle实例名
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.30.85)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (all)
#NAMES.DIRECTORY_PATH= (EZCONNECT)
NAMES.DIRECTORY_PATH= (TNSNAMES)
关于TOAD/plsql使用instantclient的设置
标签:
原文地址:http://my.oschina.net/lilinzero/blog/513476