把instantclient-basic-win32-10.2.0.4.zip解压缩到一个文件夹,如d:\oracleclient 建tnsnames文件。在d:\oracleclient下新建一个文本文件,取名tnsnames.ora,增加如下数据库配置: PIDTLT = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.188.100)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = pid10