在Oracle安装路径下找到tnsnames.ora
如:D:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN下
打开该文件,在其最后加上
服务器名=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =(PROTOCOL = TCP)(HOST = 服务器IP地址)(PORT = 端口号)) ) (CONNECT_DATA = (SERVICE_NAME = 服务器名) ) )
在Oracle安装路径下找到tnsnames.ora
如:D:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN下
打开该文件,在其最后加上
服务器名=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =(PROTOCOL = TCP)(HOST = 服务器IP地址)(PORT = 端口号)) ) (CONNECT_DATA = (SERVICE_NAME = 服务器名) ) )