ORA-20011 ORA-29913 and ORA-29400 with Associated KUP-XXXXX Errors from DBMS_STATS.GATHER_STATS_JOB(
Posted guilingyang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORA-20011 ORA-29913 and ORA-29400 with Associated KUP-XXXXX Errors from DBMS_STATS.GATHER_STATS_JOB(相关的知识,希望对你有一定的参考价值。
首先在alert log裡面頻繁的看見如下錯誤:
DBMS_STATS: GATHER_STATS_JOB encountered errors. Check the trace file. |
查看trc文件
[email protected]: /oracle/diag/rdbms/phalr/phalr/trace> more /oracle/diag/rdbms/phalr/phalr/trace/phalr_j001_5306.trc *** 2016-11-19 06:00:13.568 |
ORA-20011 ORA-29913 and ORA-29400 with Associated KUP-XXXXX Errors from DBMS_STATS.GATHER_STATS_JOB (Doc ID 1274653.1)
该文详尽的描述了解决这个异常,我们在datadump导入导出的都是,都会产生一个类似SYS_EXPORT_TABLE_02的表,如果是正常导完oracle会自动清除这个表,那么如果导入导出的时候中断,那么这个表就不会被清除,这个ora错误的引起就与这个有关系。
Temporary Datapump external tables have not been cleaned up properly. The dictionary information should have been dropped when the DataPump jobs completed.
解决方案就是清除Datapump遗留的临时外部表,下面是详细过程
[BEGIN] 2016/11/25 下午 05:19:51 OWNER_NAME JOB_NAME OPERATION JOB_MODE STATE ATTACHED_SESSIONS SELECT o.status, o.object_id, o.object_type, STATUS OBJECT_ID OBJECT_TYPE OWNER.OBJECT SQL> drop table PHALWDA1.SYS_EXPORT_TABLE_01; Table dropped. SQL> drop table PHALWDA1.SYS_EXPORT_TABLE_02; Table dropped. SQL> drop table PHALWDA1.SYS_IMPORT_FULL_01; Table dropped. DBA Recyclebin purged. SET lines 200 no rows selected spool obj.out select owner, TABLE_NAME, DEFAULT_DIRECTORY_NAME, ACCESS_TYPE OWNER OBJECT_NAME OBJECT_TYPE STATUS CREATED LAST_DDL_TIME from dba_external_tables OWNER OBJECT_NAME OBJECT_TYPE STATUS CREATED LAST_DDL_TIME SQL> OWNER TABLE_NAME SQL*Plus: Release 11.2.0.4.0 Production on Fri Nov 25 17:33:55 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. SQL> drop table PHALWDA1.ET$081400230001 purge; Table dropped. |
参考:
ORA-20011 ORA-29913 and ORA-29400 with Associated KUP-XXXXX Errors from DBMS_STATS.GATHER_STATS_JOB (Doc ID 1274653.1)
How To Cleanup Orphaned DataPump Jobs In DBA_DATAPUMP_JOBS ? (Doc ID 336014.1)
以上是关于ORA-20011 ORA-29913 and ORA-29400 with Associated KUP-XXXXX Errors from DBMS_STATS.GATHER_STATS_JOB(的主要内容,如果未能解决你的问题,请参考以下文章
ORA-29538ORA-29532ORA-29913问题解决
impdp ORA-29913: error in executing ODCIEXTTABLEOPEN callout