在 Windows 使用 PL/SQL Developer 连接正常,tns 配置如下
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
最近在 MacBook 新装 SQL Developer 连接时,选择用 SID 配置成 orcl 连接时报错:
The Network Adapter could not establish the connection
选择服务名配置成 orcl 连接时则报错:
Unknown host specified
请问这问题如何解决?