我正在尝试创建一个oracle DB链接,如下所示:
CREATE DATABASE LINK test5
CONNECT TO bla IDENTIFIED BY bla
USING 'bli';
select * from dual@test5
在我的tnsname.ora:
NPGPROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.190.11)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = bli)
)
)
我收到:ora-12154 tns无法解析指定的连接标识符
为什么,我在谷歌上找不到答案。还有其他文件需要更新吗?
尝试这样修改您的语句:
CREATE DATABASE LINK test5
CONNECT TO bla IDENTIFIED BY bla
USING 'NPGPROD';