别人能连,我用pl/sql却连不上
仔细对比后发现是tns配置问题,管理员提供的是SID,而不是服务名
QQQQ =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.50)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME= orcl)
)
)
改为
QQQQ =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.50)(PORT = 1521))
)
(CONNECT_DATA =
(SID= orcl)
)
)