数据泵导出时出现Oracle错误

时间:2009-02-06 23:17:06

标签: oracle oracle10g ora-04063

我收到以下错误。它不会一直发生,但一旦开始,它就不会停止。

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS while calling DBMS_METADATA.FETCH_XML_CLOB []
ORA-31642: the following SQL statement fails: 
BEGIN "DMSYS"."DBMS_DM_MODEL_EXP".SCHEMA_CALLOUT(:1,0,1,'10.02.00.03.00'); END;
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_METADATA", line 907
ORA-04063: package body "DMSYS.DBMS_DM_IMP_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "DMSYS.DBMS_DM_IMP_INTERNAL"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 6228
----- PL/SQL Call Stack -----
  object      line  object
  handle    number  name
000007FFA0B608F8     14916  package body SYS.KUPW$WORKER
000007FFA0B608F8      6293  package body SYS.KUPW$WORKER
000007FFA0B608F8      9108  package body SYS.KUPW$WORKER
000007FFA0B608F8      1881  package body SYS.KUPW$WORKER
000007FFA0B608F8      6854  package body SYS.KUPW$WORKER
000007FFA0B608F8      1259  package body SYS.KUPW$WORKER
000007FFBC77F128         2  anonymous block
Job "SYS"."SYS_EXPORT_SCHEMA_90" stopped due to fatal error at 12:31:55

2 个答案:

答案 0 :(得分:2)

答案:错误无关紧要,因为未使用数据挖掘。出口仍然存在。

看来原因是DMSYS包根据以下查询是无效的

SQL> connect system/passwd
SQL> set lines 200
SQL> select status, 
            object_id, 
            object_type, 
            owner||'.'||object_name "OWNER.OBJECT"
     from   dba_objects 
     where  status != 'VALID' 
     order  by 4,2;

以下是解决问题的方法,但我们没有安装数据挖掘包。

SQL> CONNECT dmsys/dmsys
ERROR:
ORA-28000: the account is locked
Warning: You are no longer connected to ORACLE.

SQL> CONNECT / as sysdba
Connected.

SQL> ALTER USER dmsys IDENTIFIED BY dmsys ACCOUNT UNLOCK;
User altered.

SQL> CONNECT dmsys/dmsys
Connected.

SQL> @$ORACLE_HOME/dm/admin/dmutil.plb
Package created.
Package created.

答案 1 :(得分:0)

这可能会有所帮助,但我有兴趣知道包体DMSYS.DBMS_DM_IMP_INTERNAL中的错误是什么。运行

SHOW ERRORS PACKAGE BODY DMSYS.DBMS_DM_IMP_INTERNAL;
SQL * Plus中的

应列出它们。