https://shanojkumar.wordpress.com/2013/05/29/ora-31626-job-does-not-exist-and-how-to-cleanup-orphaned-datapump-jobs-in-dba_datapump_jobs/
http://blog.oracle48.nl/wordpress/killing-and-resuming-datapump-expdp-and-impdp-jobs/
https://dbatricksworld.com/how-to-kill-oracle-datapump-export-job/
SQL> DECLARE
h1 NUMBER;
BEGIN
h1:=DBMS_DATAPUMP.ATTACH(‘SYS_EXPORT_FULL_01‘,’SYSTEM‘);
DBMS_DATAPUMP.STOP_JOB (h1,1,0);
END;
/
試著 attach 回去然後再stop / start
如果一直吐 ORA-31626: Job does not exist 那就只能幹掉他
看還有沒有在跑
select * from dba_datapump_jobs;
找MAIN TABLE 然後 DROP掉
--SELECT o.status, o.object_id, o.object_type,
--o.owner||'.'||object_name "OWNER.OBJECT"
--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$%' ORDER BY 4,2;
然後清除轉一半的東西重做
select object_type,count(object_type) as c from sys.all_objects where owner='{SCHEMA_NAME}' group by objecT_type order by 2