ORA-31634: job already exists

ORA-31634: job already exists

ORA-31664: unable to construct unique job name when defaulted

 

CHANGES

This can occur when either running a single DataPump jobs or when you are executing multiple jobs at the same time.

 

CAUSE

This can happen when you do not specify a unique JOB_NAME for the DataPump job (using a default name) and for some reason that JOB_NAME already exists, or if you are running many jobs at the same time (more than 99 jobs) and DataPump cannot build a unique name.

 

SOLUTION

1. If you are just running a single job then there are probably old job names that are still found in the database and this is creating the conflict. You could try to remove these job using the steps in the following

Note 336014.1 - How To Cleanup Orphaned DataPump Jobs In DBA_DATAPUMP_JOBS ?

 

Step 4. Determine in SQL*Plus the related master tables:

 

set linesize 200

col object_id format  9999999999

col status format a10

col object_type format a20

col owner.object format a50

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;

 

STATUS         OBJECT_ID OBJECT_TYPE        OWNER.OBJECT

---------- ----------- -------------------- --------------------------------------------------

VALID         93402 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_01

VALID         95879 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_02

VALID         96699 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_03

VALID         97237 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_04

VALID         97586 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_05

VALID        164752 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_06

VALID        168101 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_07

VALID        169481 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_08

VALID        169559 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_09

VALID        169854 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_10

VALID        170398 TABLE            SYSTEM.SYS_EXPORT_SCHEMA_11

 

Step 5. For jobs that were stopped in the past and won't be restarted anymore, delete the master table. E.g.:

drop table SYSTEM.SYS_EXPORT_SCHEMA_01;

 

-- For systems with recycle bin additionally run:

purge dba_recyclebin;

 

参考链接

https://blog.csdn.net/lixiaohuiok111/article/details/19972525

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值