报错信息如下:
;;;
Export: Release 11.2.0.4.0 - Production on Thu Dec 27 16:46:58 2018
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
FLASHBACK automatically enabled to preserve database integrity.
Starting "COSTS"."SYS_EXPORT_SCHEMA_04": costs/******** directory=costsdir dumpfile=costsold.dmp
ORA-39014: One or more workers have prematurely exited.
ORA-39029: worker 1 with process name "DW00" prematurely terminated
ORA-31671: Worker process DW00 had an unhandled exception.
ORA-04063: package body "SYS.KUPW$WORKER" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.KUPW$WORKER"
ORA-06512: at line 2
Job "COSTS"."SYS_EXPORT_SCHEMA_04" stopped due to fatal error at Thu Dec 27 16:47:30 2018 elapsed 0 00:00:30
有package报错,尝试重新编译:
SQL> alter package KUPW$WORKER compile;
Warning: Package altered with compilation errors.
SQL> show err
No errors.
SQL> select line ,text,position from dba_errors
where owner='SYS' and name='KUPW$WORKER' order by sequence;
LINE TEXT POSITION
--------- --------------------------------------------------- -------------------
22308 PL/SQL: ORA-00942: table or view does not exist 34
22308 PL/SQL: SQL Statement ignored 5
查看相关联的表或视图
SQL> select REFERENCED_NAME from dba_dependencies where owner='SYS' AND NAME=UPPER('kupw$worker') and referenced_type in ('TABLE','VIEW');
REFERENCED_NAME
------
DUAL
KU$NOEXP_TAB(这个不存在)
KU$_OBJECT_STATUS_VIEW
KU$_XMLSCHEMA_SPECIAL_VIEW
在其他同版本的数据库中查询ddl
SQL> select owner,object_type from dba_objects where object_name='KU$NOEXP_TAB';
------------------------------ --------------------
SYS TABLE
set long 999999
set pages 9999 LINES 300
set head off
col a for a200 word_wrapped
set serveroutput on format word_wrapped
exec dbms_metadata.SET_TRANSFORM_PARAM(dbms_metadata.session_transform,'PRETTY',true);
exec dbms_metadata.SET_TRANSFORM_PARAM(dbms_metadata.session_transform,'STORAGE',false);
exec dbms_metadata.SET_TRANSFORM_PARAM(dbms_metadata.session_transform,'SQLTERMINATOR',true);
select dbms_metadata.get_ddl('TABLE','KU$NOEXP_TAB','SYS') a from dual;
----------------------------------------
CREATE GLOBAL TEMPORARY TABLE "SYS"."KU$NOEXP_TAB"
( "OBJ_TYPE" VARCHAR2(30),
"SCHEMA" VARCHAR2(30),
"NAME" VARCHAR2(30)
) ON COMMIT PRESERVE ROWS ;
创建并重新编译后,报错解决
SQL> alter package KUPW$WORKER compile;
Package altered.