简体   繁体   English

DATABASE LINK无法连接到远程数据库

[英]DATABASE LINK Can't connect to remote database

I am creating a two database A & BA can connect to B with database link but the problem is that, B can't connect to A. User name and password are all the same in both A and B 我正在创建两个数据库,A和BA可以通过数据库链接连接到B,但是问题是B无法连接到A。A和B中的用户名和密码都相同

With message Error : ORA-12154: TNS:could not resolve the connect identifier specified 出现错误消息:ORA-12154:TNS:无法解析指定的连接标识符

SYS_PRIV on A is A上的SYS_PRIV为

CREATE SESSION
CREATE PUBLIC DATABASE LINK
CREATE DATABASE LINK

and SYS_PRIV on B is 并且B上的SYS_PRIV为

CREATE SESSION
CREATE PUBLIC DATABASE LINK
CREATE DATABASE LINK

is there any other privileges that I should check ? 我应该检查其他特权吗? because I can make link to B but not vice versa. 因为我可以链接到B,反之亦然。

Make sure the database name as you use it in the database link is available in the tnsnames.ora on your Oracle server. 确保在Oracle服务器上的tnsnames.ora中可以使用在数据库链接中使用的数据库名称。 Because that's what the error message says. 因为这就是错误消息的意思。

ORA-12154: TNS:could not resolve the connect identifier specified ORA-12154:TNS:无法解析指定的连接标识符

It cannot find the name you specified. 它找不到您指定的名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM