你好,游客 登录 注册 搜索
背景:
阅读新闻

无法成功执行catalog.sql,ORA-04045 ORA-04064

[日期:2013-11-08] 来源:Linux社区  作者:leshami [字体:大 中 小]

二、故障分析
Oracle@DBBK10P:~> oerr ora 4045
04045, 00000, "errors during recompilation/revalidation of %s.%s"
// *Cause:  This message indicates the object to which the following
//          errors apply.  The errors occurred during implicit
//          recompilation/revalidation of the object.
// *Action: Check the following errors for more information, and
//          make the necessary corrections to the object.
--从前面的错误描述来看及所发生的对象来看,系统用户LBACSYS这个对象错误了,为无效对象

--尝试重新编译,问题依旧

--下面直接执行catalog,执行时其日志文件出现大量的错误提示。也就是说无法重建数据字典
--尝试了使用restirct 方式来重启DB后执行,依旧出现相同的错误
SQL> @?/rdbms/admin/catalog
create or replace
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-04045: errors during recompilation/revalidation of LBACSYS.LBAC_EVENTS
ORA-04064: not executed, invalidated
ORA-04064: not executed, invalidated package body "LBACSYS.LBAC_EVENTS"
ORA-06508: PL/SQL: could not find program unit being called:
"LBACSYS.LBAC_EVENTS"
ORA-06512: at line 2
ORA-06508: PL/SQL: could not find program unit being called:
"LBACSYS.LBAC_EVENTS"
ORA-06512: at line 2
--Author : Leshami
--Blog  : http://www.linuxidc.com

--折腾了一下下午,后来参照Doc ID 457415.1给出的解决方案搞定


三、故障解决
--下面直接列出Doc ID 457415.1文章给出的解决方案与步骤,具体不再演示
metalink上的文章:ORA-4045 Error During Recompilation/Revalidation Of SYS.DBMS_STANDARD (Doc ID 457415.1)
Symptoms
Catproc.sql fails with the following error:

ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of SYS.DBMS_STANDARD
ORA-04021: timeout occurred while waiting to lock object SYS.CDC_ALTER_CTABLE_BEFORE
Cause
Trying to create a database from a database that already exists.

1. Modify init.ora to contain:

    _system_trig_enabled=FALSE
    job_queue_processes=0
    aq_tm_processes=0
    Save init.ora

The following instructions are to be completed from sqlplus as the SYS user:

2. Issue a shutdown immediate: 
    SQL> shutdown immediate

3. SQL> startup pfile='<insert full path of init.ora here>'

4. SQL> @catalog.sql

5. SQL> @catproc.sql

6. Check for invalids from dba_objects:

    SQL> select owner, object_name from dba_objects where status='INVALID';

7. Run utlrp.sql: 
    SQL> @utlrp.sql

8. Check for invalids again.

    SQL> select owner, object_name from dba_objects where status='INVALID';

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       ORA-04045  ORA-04064 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款