oracle连接odbc,oracle 11g odbc连接串及配置

首先先安装HA-Instant Client-v11.2.0.3.0-x86.rar

下载地址:

ftp://hhdown:[email protected]/download/HA-Instant%20Client-v11.2.0.3.0-x86.rar

ftp://hhdown:[email protected]/download/HA-Instant%20Client-v11.2.0.3.0-x64.rar

然后执行安装ODBC一项一定要选择安装

添加环境变量:  TNS_ADMIN   value: %oracleclient%/network/admin

修改tnsnames.ora添加需要连接的服务器信息,

注意CONNECT_DATA中的SERVICE_NAME 一定要添加才能保证正常连接

network/admin/tnsnames.ora

ORCL =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.109)(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = orcl)

)

)

oracle odbc 连接串  DRIVER={Oracle 11g ODBC Driver};uid=SYSTEM;pwd=MANAGER;Database=orcl;ServerName=192.168.2.75;Port=1521;DBQ=orcl

DBQ:TNS service name

windows:

你可能感兴趣的:(oracle连接odbc)