0

0

Oracle ORA-04045 errors during recompilation/revalidation

php中文网

php中文网

发布时间:2016-06-07 16:47:14

|

3441人浏览过

|

来源于php中文网

原创

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 脚本

百度GBI
百度GBI

百度GBI-你的大模型商业分析助手

下载

  另外还有两种编译无效对象的方式: 
 
      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.
 

热门AI工具

更多
DeepSeek
DeepSeek

幻方量化公司旗下的开源大模型平台

豆包大模型
豆包大模型

字节跳动自主研发的一系列大型语言模型

通义千问
通义千问

阿里巴巴推出的全能AI助手

腾讯元宝
腾讯元宝

腾讯混元平台推出的AI助手

文心一言
文心一言

文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。

讯飞写作
讯飞写作

基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿

即梦AI
即梦AI

一站式AI创作平台,免费AI图片和视频生成。

ChatGPT
ChatGPT

最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。

相关专题

更多
go语言 注释编码
go语言 注释编码

本专题整合了go语言注释、注释规范等等内容,阅读专题下面的文章了解更多详细内容。

2

2026.01.31

go语言 math包
go语言 math包

本专题整合了go语言math包相关内容,阅读专题下面的文章了解更多详细内容。

1

2026.01.31

go语言输入函数
go语言输入函数

本专题整合了go语言输入相关教程内容,阅读专题下面的文章了解更多详细内容。

1

2026.01.31

golang 循环遍历
golang 循环遍历

本专题整合了golang循环遍历相关教程,阅读专题下面的文章了解更多详细内容。

0

2026.01.31

Golang人工智能合集
Golang人工智能合集

本专题整合了Golang人工智能相关内容,阅读专题下面的文章了解更多详细内容。

1

2026.01.31

2026赚钱平台入口大全
2026赚钱平台入口大全

2026年最新赚钱平台入口汇总,涵盖任务众包、内容创作、电商运营、技能变现等多类正规渠道,助你轻松开启副业增收之路。阅读专题下面的文章了解更多详细内容。

76

2026.01.31

高干文在线阅读网站大全
高干文在线阅读网站大全

汇集热门1v1高干文免费阅读资源,涵盖都市言情、京味大院、军旅高干等经典题材,情节紧凑、人物鲜明。阅读专题下面的文章了解更多详细内容。

73

2026.01.31

无需付费的漫画app大全
无需付费的漫画app大全

想找真正免费又无套路的漫画App?本合集精选多款永久免费、资源丰富、无广告干扰的优质漫画应用,涵盖国漫、日漫、韩漫及经典老番,满足各类阅读需求。阅读专题下面的文章了解更多详细内容。

67

2026.01.31

漫画免费在线观看地址大全
漫画免费在线观看地址大全

想找免费又资源丰富的漫画网站?本合集精选2025-2026年热门平台,涵盖国漫、日漫、韩漫等多类型作品,支持高清流畅阅读与离线缓存。阅读专题下面的文章了解更多详细内容。

19

2026.01.31

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号