日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle-04045,OracleORA-04045errorsduringrecompilation/revalidation

發(fā)布時間:2024/1/18 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle-04045,OracleORA-04045errorsduringrecompilation/revalidation 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Oracle ORA-04045 errors during recompilation/revalidation

系統(tǒng)環(huán)境:CentOS release 5.10 - 64 bit

應(yīng)用環(huán)境: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而沒有重新刷新對象導(dǎo)致:

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執(zhí)行ORACLE_HOME/rdbms/admin/utlrp.sql 腳本

另外還有兩種編譯無效對象的方式:

1 使用alter **** compile 語句進行編譯

2 用DBMS_UTILITY包來進行編譯.

相關(guān)介紹:

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

=====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. 本條技術(shù)文章來源于互聯(lián)網(wǎng),如果無意侵犯您的權(quán)益請點擊此處反饋版權(quán)投訴 本文系統(tǒng)來源:php中文網(wǎng)

總結(jié)

以上是生活随笔為你收集整理的oracle-04045,OracleORA-04045errorsduringrecompilation/revalidation的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。