ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-04052解决过程

ORA-04052解决过程

原创 Linux操作系统 作者:victor1010 时间:2008-10-27 15:31:13 0 删除 编辑

在一个存储过程中通过dblink访问另一个数据库中的表,报04052,但是在相同用户在sqlplus中却可以通过dblink select同一远程数据库中的同一张表

 

 

[oracle@db1 ~]$ oerr ora 4052
04052, 00000, "error occurred when looking up remote object %s%s%s%s%s"
// *Cause:  An error has occurred when trying to look up a remote object.
// *Action: Fix the error.  Make sure the remote database system has run
//          KGLR.SQL to create necessary views used for querying/looking up
//          objects stored in the database.
[oracle@db1 ~]$

通过创建同义词解决!

create synonym table_name for remote_schema.table_name@dblink

 

据说:10G这前的一个BUG.

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8102208/viewspace-478308/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-04-29

  • 博文量
    296
  • 访问量
    626145