Oracle ORA-04045 errors during recompilation/revalidation

系统环境:CentOS release 5.10 - 64 bit

应用环境:Oracle 10.2.0.5

错误摘要:

[oracle@hz_cpm50 ~]$ impdp / DIRECTORY=move dumpfile=new.dmp logfile=new.log table_exists_action=APPEND CONTENT=data_only

Import: Release 10.2.0.5.0 - 64bit Production on Monday, 24 March, 2014 14:15:35

Copyright (c) 2003, 2007, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Master table "POPUPUSER"."SYS_IMPORT_FULL_04" successfully loaded/unloaded

Starting "POPUPUSER"."SYS_IMPORT_FULL_04": popupuser/******** DIRECTORY=new dumpfile=new.dmp logfile=new.log table_exists_action=APPEND CONTENT=data_only

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

ORA-31693: Table data object "POPUPUSER"."STATIC_AGG_PROVINCE_DAY":"PART_AGGPROV_20140320"."SYS_SUBP662001" failed to load/unload and is being skipped due to error:

ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_NETWORK_DROP_USER

ORA-01031: insufficient privileges

ORA-31693: Table data object "POPUPUSER"."STATIC_AGG_PROVINCE_DAY":"PART_AGGPROV_20140320"."SYS_SUBP662002" failed to load/unload and is being skipped due to error:

ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_NETWORK_DROP_USER

ORA-01031: insufficient privileges

ORA-06512: at "SYS.KUPD$DATA", line 1779

ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_NETWORK_DROP_USER

ORA-01031: insufficient privileges

ORA-31693: Table data object "POPUPUSER"."STATIC_AGG_PROVINCE_DAY":"PART_AGGPROV_20140320"."SYS_SUBP662003" failed to load/unload and is being skipped due to error:

ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_NETWORK_DROP_USER

ORA-01031: insufficient privileges

ORA-06512: at "SYS.KUPD$DATA", line 1779

ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_NETWORK_DROP_USER

ORA-01031: insufficient privileges

ORA-31693: Table data object "POPUPUSER"."STATIC_AGG_PROVINCE_DAY":"PART_AGGPROV_20140320"."SYS_SUBP662004" failed to load/unload and is being skipped due to error:

ORA-04045: errors during recompilation/revalidation of MDSYS.SDO_NETWORK_DROP_USER

ORA-01031: insufficient privileges

ORA-06512: at "SYS.KUPD$DATA", line 1779

错误原由:

由10.2.0.1升级到10.2.0.5,upgrade mode运行utlirp.sql而没有重新刷新对象导致:

DOC>#######################################################################

DOC>#######################################################################

DOC> utlirp.sql completed successfully. All PL/SQL objects in the

DOC> database have been invalidated.

DOC>

DOC> Shut down and restart the database in normal mode and run utlrp.sql to

DOC> recompile invalid objects.

DOC>#######################################################################

DOC>#######################################################################

解决方法:

sysdba执行ORACLE_HOME/rdbms/admin/utlrp.sql 脚本

另外还有两种编译无效对象的方式:

1 使用alter **** compile 语句进行编译

2 用DBMS_UTILITY包来进行编译.

相关介绍:

====================================================================

=====What is the Difference between UTLRP.SQL, UTLIRP.SQL and UTLIP.SQL?====

====================================================================

About UTLRP.SQL

===============

+ What is UTLRP.SQL?

This script recompiles invalid PLSQL modules.

NOTE: This script DOES NOT Invalidate any PLSQL modules like utlirp.sql and utlip.sql

+ What this script does?

This script recompiles all existing invalid PL/SQL modules in a database.

This is a fairly general script that can be used at any time to recompile all existing invalid PL/SQL modules in a database If run as one of the last steps during migration/upgrade/downgrade this script will validate all PL/SQL modules (i.e. procedures, functions, packages, triggers, types, views, libraries) during the migration step itself.

+ Any other script called within UTLRP.SQL?

Yes. It invokes utlrcmp.sql

+ When it is best to run UTLRP.SQL?

Although invalid PL/SQL modules get automatically recompiled on use, it is useful to run this script ahead of time (e.g. as one of the last steps in your migration), since this will either eliminate or minimize subsequent latencies caused due to on-demand automatic recompilation at runtime. Oracle highly recommends running this script towards the end of any database migration/upgrade/downgrade. 本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉 本文系统来源:php中文网

oracle-04045,OracleORA-04045errorsduringrecompilation/revalidation相关推荐

  1. oracle进程对文件没有写权限,ORACLE SYS用户没有权限一天半的救库过程

    情景描述: 生产环境一套RAC+DG,领导需要从虚拟机里做出和生产环境一样的环境,作为灾预案. 生产环境: ORACLE_SID=orcl1 DB_UNIQUE_NAME=orcl DB_NAME=o ...

  2. oracle health monitor,Oracle 11g Health Monitor Checks

    说明: Health Monitor是11g引入的用于检查数据库的各个组件(包括文件.内存.事务处理完整性. 元数据和进程使用情况).这些检查器将生成检查结果报表以及解决问题的建议. 可在数据库脱机( ...

  3. oracle离线文档查dbms_Oracle的健康检查–dbms_hm的使用 | 学步园

    这是oracle11g推出的一个新特性,利用这个特性我们可以提前预知一些问题,比如一张表上有个长时间未使用的坏块,在检测出来后我们可以提前修复,我们可以针对数据文件.控制文件.重做日志进行检测,当然我 ...

  4. oracle 9207-gt;9208(HPUX,RAC)

    oracle 9207->9208(HPUX,RAC) 本次只打了9208patch,没有打CPU patch. (1) 安装前的准备工作 1)  全备份数据库 使用DP软件进行数据库的全量备份 ...

  5. 【ORACLE】RAC 磁盘超时,导致数据库重启 WARNING: Waited 15 secs for write IO to PST disk 0 in group 1.

    项目场景: 采用云资源上部署的oracle RAC 11.2.0.4数据库两节点不定期重启 问题描述 现场反馈,数据库两节点不断重启,检查crs,无重大报错.检查asm日志,发现如下报错. Fri S ...

  6. oracle数据库等待事件

    查看等待事件 select inst_id,event,count(*) from gv$session where wait_class <> 'Idle' group by inst_ ...

  7. oracle ip on_logon_trigger,透过Trigger监控Logon和Logoff

    通过Trigger监控Logon和Logoff 1,创建审计信息的Table create table login_log ( session_id int not null, SID INT, lo ...

  8. ORA-04098: trigger ‘xxx.xxx‘ is invalid and failed re-validation

    报错信息: ORA-04098: trigger 'GYLYEQ.UPDATE_BS_ROLE' is invalid and failed re-validation 项目中,当使用oracle数据 ...

  9. oracle 6508,【案例】Oracle报错ORA-06552 ORA-06553 ORA-006508解决办法

    天萃荷净 Oracle研究中心案例分析:运维DBA反映Oracle数据库alert日志中出现大量ORA-06552 ORA-06553 ORA-006508报错,分析原因为存储过程异常导致,结合MOS ...

  10. ORACLE ERROR大全

    ORA_ERROR大全 1 ORA00001: unique constraint (.) violated -17 ORA00017: session requested to set trace ...

最新文章

  1. 视觉Transformer最新综述
  2. 号召一下,看有多少人能响应!
  3. 互联网人不敢生孩子:加班多、想跳槽、怕被边缘化
  4. Hello, World!我的房车编程生活,已经 150 天了
  5. 一步怎么测量图片_测量不容易?15套测量仪器实操手册+自动计算表格,自学也可以...
  6. java中equals和 == 的区别
  7. 保温杯哪种材质最好_哪种保温杯质量好?
  8. 快速掌握用python处理Excel
  9. java中字符串的算法_Java中的字符串搜索算法
  10. oracle 创建数组
  11. apache开源项目--thrift
  12. Codeforces 439E Devu and Birthday Celebration 容斥
  13. centos7安装mysql教程详解(含常见问题的解决方案)
  14. 360服务器安全加固系统,360政企安全
  15. 渗透测试工具之——WVSS(绿盟web应用漏洞扫描系统)概述
  16. 集合论—关系的自反、对称和传递闭包
  17. 错觉图片生成实验 - 闪现的绿点
  18. php中访问控制_php访问控制
  19. Echarts 贵州地图(增加贵安新区)
  20. 基于Java毕业设计疫情下的居民管理系统源码+系统+mysql+lw文档+部署软件

热门文章

  1. 我的毕业设计---家庭点歌系统
  2. 西安更有理由重点发展大数据产业
  3. linux shell 脚本 if和else代码块都被执行 | shell 批量添加、删除用户(for循环做if嵌套)
  4. 车路协同全域感知与数据融合
  5. Arduino与掌控板通过软串口通信将数据上传阿里云
  6. MIMO天线的分集技术和波束赋形技术
  7. python 文本分析 LDA 文本聚类
  8. 【论文学习】关于联邦学习激励机制的2篇T2论文
  9. 从千篇一律到独树一帜,TOOM舆情监测系统助你成功!
  10. 另一个jar包引不了_【夜听三生】知己,是相遇另一个自己