查看数据库的任务,并清理NOT RUNNING
状态任务。
步骤如下:
-- 1.
SELECT owner_name, job_name, operation
FROM dba_datapump_jobs where state='NOT RUNNING' and attached_sessions=0;
-- 2.
SELECT 'drop table ' || owner_name || '.' || job_name || ';'
FROM dba_datapump_jobs WHERE state='NOT RUNNING' and attached_sessions=0;
-- 3.
select object_name, created from dba_objects where object_name like 'ET$%';
-- 4.
SELECT 'purge table ' || owner_name || '.' || ' »' || job_name || ' »;'
FROM dba_datapump_jobs WHERE state='NOT RUNNING' and attached_sessions=0;
分别执行第二步、第四步的结果sql。
参考: