重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 835|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-1775 Reported When Compiling Package Body

[复制链接]
跳转到指定楼层
楼主
发表于 2023-8-13 11:36:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
Whilst a specific case is detailed here , please follow this following analysis to establish whether you may be encountering
the same root issue .


1. When applying the 11.2.0.4. patchset and running upgrade script, the following is observed :

...
SQL> CREATE OR REPLACE PACKAGE BODY sys.dbms_logmnr_internal wrapped
...
766  /

Warning: Package Body created with compilation errors.

SQL> show errors
Errors for PACKAGE BODY SYS.DBMS_LOGMNR_INTERNAL:

LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0      ORA-01775: looping chain of synonyms

2.  There are no dependent synonyms for this object :

select owner,object_name,object_id,object_type,status from dba_objects where object_id in ( select p_OBJ# from DEPENDENCY$ where d_obj# = (select object_id from dba_objects where object_name like 'DBMS_LOGMNR_INTERNAL' and object_type = 'PACKAGE BODY'));

3. "hcheck.sql" script to check for known problems in Oracle8i, Oracle9i, Oracle10g and Oracle 11g - Doc id  136697.1

On running this script , the following is reported in the output :

...

HCKW-0018: OBJECT name clashes with SCHEMA name    <<<<
Schema=SYSTEM Object=PUBLIC.SYSTEM (SYNONYM)     

原因:
There is a public synonym with name SYSTEM

解决方法:
Drop the public synonym SYSTEM and repeat the activity.

Also do check for other Invalid Public Synonyms  in general.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-28 19:19 , Processed in 0.097265 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表