报错如图:
解决方法:
查看Oracle安装所在目录下\product\11.2.0\dbhome_1\NETWORK\ADMIN的tnsnames.ora,文件中HOST修改为数据库的ip地址
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXX.XXX.XXX.XX)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)