expdp 导出报错 ORA-39006: ORA-39065: ORA-04063: ORA-06508: ORA-39097: ORA-01403: ORA-39097:

生产环境下,由于前期数据库出现故障,导致几天的停机时间,运营商要求自己保存一份备份,2016-09-05用expdp导出过程中出现问题
ORA-39006: ORA-39065: ORA-04063: ORA-06508: ORA-39097: ORA-01403: ORA-39097:



第一次:

Export: Release 10.2.0.5.0 - 64bit Production on чǚһ, 05 9Ղ, 2016 16:17:29


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
ORA-39006: internal error
ORA-39065: unexpected master process exception in DISPATCH
ORA-04063: package body "SYS.KUPW$WORKER" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.KUPW$WORKER"
ORA-39097: Data Pump job encountered unexpected error -6508


ORA-04063:
解决方式:
查看SYS.KUPW$WORKER 编译失败,提示说缺少表或视图
select * from dba_dependencies where owner='SYS' AND NAME=UPPER('kupw$worker') and referenced_type in ('TABLE','VIEW')
1 SYS KUPW$WORKER PACKAGE BODY SYS KU$NOEXP_TAB TABLE HARD
2 SYS KUPW$WORKER PACKAGE BODY SYS KU$_VIEW_STATUS_VIEW VIEW HARD


查看上述两个表视图是否存在,最后定位为KU$NOEXP_TAB缺失!从相同版本的库中copy过来。问题解决






第二次:

Export: Release 10.2.0.5.0 - 64bit Production on чǚһ, 05 9Ղ, 2016 16:17:29


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
ORA-39006: internal error
ORA-39065: unexpected master process exception in DISPATCH
ORA-01403: no data found  
ORA-39097: Data Pump job encountered unexpected error 100




虽然不像网上其他人碰到的还出现ORA-00600的错误,但是照着网上的做法,重新生成一些 DATAPUMP API用到的视图问题就解决了:
数据库正常启动情况下
sqlplus / as sysdba  
  
@?/rdbms/admin/catmeta.sql  
@?/rdbms/admin/catmet2.sql  
@?/rdbms/admin/utlrp.sql  
可以参考一下Metalink上的文章:


EXPDP FAILS WITH ORA-600 [UNABLE TO LOAD XDB LIBRARY] [ID 736049.1]


本次故障为生产环境发生!通过以上两步顺利解决问题

你可能感兴趣的:(oracle)