在安装ORACLE的目录下 /oracle/product/10.2.0/db_1/NETWORK/ADMIN 有个tnsnames.ora 加入如下代码
数据库名=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.17 )(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME =数据库名)
)
)