expdp ORA-31626 ORA-31637 ORA-06512 ORA-06512 ORA-39062 ORA-31613

expdp报错如下:
ORA-31626 ORA-31637  ORA-06512 ORA-06512 ORA-39062 ORA-31613
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_SCHEMA_06 for user SYSTEM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 
ORA-06512: at "SYS.KUPV$FT", line 1587 
ORA-39062: error creating master process DM00 
ORA-31613: Master process DM00 failed during startup

 


解决方案:


1.查看是否有残留expdp进程


select owner_name,job_name,operation,job_mode,state,attached_sessions
from dba_datapump_jobs;

 

如果有残留进程,根据以下命令选择适合的操作。
expdp system/test ATTACH=scott.SYS_EXPORT_SCHEMA_01
Export> status               --查看当前JOB的状态及相关信息
Export> stop_job             --暂停JOB(暂停job后会退出expor模式)
Export> start_job            --打开暂停的JOB(并未开始重新执行)
Export> continue_client      --通过此命令重新启动 "LTTFM"."MY_JOB":
Export> kill_job             --取消当前的JOB并释放相关客户会话(将job删除同时删除dmp文件)
Export> exit_client          --通过此命令退出export模式(通过4)可再进入export模式下)

 

2.查看是否有残留表

 

SELECT 'drop table '|| o.owner||'.'||object_name ||'  purge ;'
 FROM dba_objects o, dba_datapump_jobs j
 WHERE o.owner=j.owner_name AND o.object_name=j.job_name
 AND j.job_name NOT LIKE 'BIN$%';

 

如果有残留表,执行drop即可:
drop table SYSTEM.SYS_EXPORT_SCHEMA_05 purge ;
drop table SYSTEM.SYS_EXPORT_SCHEMA_03 purge ;
drop table SYSTEM.SYS_EXPORT_SCHEMA_01 purge ;
drop table SYSTEM.SYS_EXPORT_SCHEMA_04 purge ;
drop table SYSTEM.SYS_EXPORT_SCHEMA_02 purge ;

3.第二天观察备份是否还有错误或用system导出scott测试

你可能感兴趣的:(oracle)