Este post também está disponível em:
English

Consultar se existe tabelas órfãs no banco de dados.
SQL> select owner_name,job_name,operation,job_mode,state,attached_sessions from dba_datapump_jobs;
OWNER_NAME JOB_NAME OPERATION JOB_MODE STATE ATTACHED_SESSIONS
--------------- ------------------------------ ------------------------------ -------------------- ------------------------------ -----------------
EXPORT SYS_IMPORT_TABLE_02 IMPORT TABLE NOT RUNNING 0
SYS M_IMP_COPY_1521305009006 IMPORT TABLE NOT RUNNING 0
SQLTemos dois jobs órfãos no banco de dados. Isso é verificado pelo status de NOT RUNNING.
Vamos remover as tabelas órfãs.
SQL> drop table EXPORT.SYS_IMPORT_TABLE_02;
Table dropped.
SQL> drop table SYS.M_IMP_COPY_1521305009006;
Table dropped.
SQL>
SQLCaso a recyclebin do banco de dados esteja habilitada, realizar o purge das tabelas.
SQL> show parameter recycle
NAME TYPE VALUE
------------------------------------ -------------------------------- ------------------------------
buffer_pool_recycle string
db_recycle_cache_size big integer 0
recyclebin string ON
SQLSQL> purge table EXPORT.SYS_IMPORT_TABLE_02;
Table purged.
SQL> purge table SYS.M_IMP_COPY_1521305009006;
Table purged.
SQLValidação, para ver se existem outros jobs orfãos.
SQL> select owner_name,job_name,operation,job_mode,state,attached_sessions from dba_datapump_jobs;
no rows selected
SQL