ORA-31634: job already exists
来源:互联网 发布:苏州科达算法笔试题 编辑:程序博客网 时间:2024/09/12 17:24
SYMPTOMS
You are running a DataPump job (export or import) and this fails with the following errors:
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:
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 593041 TABLE SYSTEM.SYS_EXPORT_SCHEMA_97
VALID 593522 TABLE SYSTEM.SYS_EXPORT_SCHEMA_98
Step 5. For jobs that were stopped in the past and won't be restarted anymore, delete the master table. E.g.:
-- For systems with recycle bin additionally run:
purge dba_recyclebin;
2. If you are running lots of jobs (more than 99) at a time, then the problem is that DataPump cannot build more than 99 consecutive jobnames when using the default job_name because the default job_name is system-generated in the form SYS_EXPORT_<mode>_NN, where NN expands to a 2-digit incrementing integer starting at 01, therefore the largest value for NN would be 99.
From Oracle Database Utilities guide:
JOB_NAME
Default: system-generated name of the form SYS_EXPORT_<mode>_NN
Purpose
Used to identify the export job in subsequent actions, such as when the ATTACH parameter is used to attach to a job, or to identify the job using the DBA_DATAPUMP_JOBS or USER_DATAPUMP_JOBS views.
Syntax and Description
JOB_NAME=jobname_string
The jobname_string specifies a name of up to 30 bytes for this export job. The bytes must represent printable characters and spaces. If spaces are included, then the name must be enclosed in single quotation marks (for example, 'Thursday Export'). The job name is implicitly qualified by the schema of the user performing the export operation. The job name is used as the name of the master table, which controls the export job.
The default job name is system-generated in the form SYS_EXPORT_<mode>_NN, where NN expands to a 2-digit incrementing integer starting at 01. An example of a default name is 'SYS_EXPORT_TABLESPACE_02'.
Example
The following example shows an export operation that is assigned a job name of exp_job:
To avoid this issue, please use the job_name DataPump parameter to create unique job names that will not conflict with any other job names in the database instead of using the default job_name.
- ORA-31634: job already exists
- ORA-31634: job already exists
- expdp:ORA-31634: job already exists
- oracle impdp导入数据出错,ORA-31634: job already exists
- EXPDP导出报错job already exists
- ORA-20211: Active job record exists问题解决
- ORA-27100:shared memory realm already exists
- ORA-27100: shared memory realm already exists
- ORA-27100 shared memory realm already exists
- 如何解决ORA-27100 shared memory realm already exists错误
- startup nomount ORA-27100: shared memory realm already exists
- ORA-27100:shared memory realm already exists 解决方法
- 解决ORA--27100 shared memory realm already exists报错
- 10G 重建EM 报ORA-20001: SYSMAN already exists
- ora-27100:shared memory realm already exists错误的解决
- Oracle10g重建EM 报ORA-20001: SYSMAN already exists
- Oracle10g重建EM 报ORA-20001: SYSMAN already exists
- RMAN备份时出现ORA-27038: created file already exists
- 嵌套宏的参数应该当做宏还是普通字符串
- Linux Mint(Ubuntu)下rabbitvcs右键菜单莫名消失的解决方法
- 初识iPhone基带通讯
- 交换2个变量值的实现方法
- 面试自我介绍注意哪些
- ORA-31634: job already exists
- 基础动画类 函数CGAffineTransform
- nginx实现负载均衡
- jquery live() 替换 方法
- openssl 中base64编解码的c语言实现
- 以太网和上位机
- error: Error parsing XML: unbound prefix
- Windows Server 2012 程序员习惯配置
- centos 系统下 hadoop SSH配置