我正在尝试像这样创建一个oracle DB-Link:
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无法解析指定的连接标识符
为什么会这样,我无法在谷歌上找到答案。我需要更新另一个文件吗?
答案 0 :(得分:0)
尝试像这样修改你的陈述:
CREATE DATABASE LINK test5
CONNECT TO bla IDENTIFIED BY bla
USING 'NPGPROD';