数据泵导入失败并显示“作业不存在”

问题描述

有人可以帮忙解决这个问题吗?我正在尝试使用 datapump 加载创建的转储文件,但每当我尝试时,我都会得到以下代码

DECLARE
hdnl NUMBER;
status VARCHAR2(20);
BEGIN
hdnl := dbms_datapump.open (operation => 'IMPORT',job_mode => 'TABLE',version => 'COMPATIBLE');
DBMS_DATAPUMP.ADD_FILE( handle => hdnl,filename => 'import.log',directory => 'DP_DIR',filetype => dbms_datapump.ku$_file_type_log_file);
DBMS_DATAPUMP.ADD_FILE(handle => hdnl,filename => 'latest.dmp',filetype => dbms_datapump.ku$_file_type_dump_file);
DBMS_DATAPUMP.START_JOB(handle => hdnl);
DBMS_DATAPUMP.WAIT_FOR_JOB(hdnl,status);
end;
/

我收到此错误

Error report -
ORA-31626: job does not exist
ORA-06512: at "SYS.DBMS_SYS_ERROR",line 79
ORA-06512: at "SYS.DBMS_DATAPUMP",line 1852
ORA-06512: at "SYS.DBMS_DATAPUMP",line 6793
ORA-06512: at line 5
31626. 00000 -  "job does not exist"
*Cause:    An invalid reference to a job which is no longer executing,is not executing on the instance where the operation was
           attempted,or that does not have a valid Master Table.
           Refer to any following error messages for clarification.
*Action:   Start a new job,or attach to an existing job that has a
           valid Master Table.

有什么想法吗?

问候

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)