dblink ora 12154

场景:

oracle dblink错误:ORA-12154 could not resolve the connect identifier specified
点击右边红色标题查看本文完整版:oracle dblink错误:ORA-12154 could not resolve the connect identifier specified

我创建了一个dblink去调用另外一个数据库如下:
create public database link LINKA
  connect to aaa identified by aaa123
  using '(DESCRIPTION =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS =
  (PROTOCOL = TCP)
  (HOST = 100.223.21.2)
  (PORT = 1341)
  )
  )
  (CONNECT_DATA =
  (SERVICE_NAME = bbb)
  )';
aaa和aaa123是我登陆数据库bbb的用户名和密码
现在的问题是dblink创建好了,在pl/sql的DataLink links下面也可以看到
不过当我调用Select * From aaa.test@LINKA的时候显示错误
ORA-12154 could not resolve the connect identifier specified
这是为什么?

------解决方法--------------------
 

探讨
ORA-12154 could not resolve the connect identifier specified  不过这个不是两个DESCRIPTION = 的问题 那个是我复制的时候没弄好
原因好像是同一个oracle数据库的两个数据库用户互相访问对方的表的时候好像不能用dblink的方式,直接用"用户名.表名"就可以了。