<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《ORA-00001 Unique Constraint SYS.I_JOB_JOB Violated》的评论</title>
	<atom:link href="https://www.xifenfei.com/2012/04/ora-00001-unique-constraint-sys-i_job_job-violated.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2012/04/ora-00001-unique-constraint-sys-i_job_job-violated.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2012/04/ora-00001-unique-constraint-sys-i_job_job-violated.html/comment-page-1#comment-797</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Thu, 26 Apr 2012 08:50:59 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=2999#comment-797</guid>
		<description><![CDATA[&lt;strong&gt;ORA-00001 Unique Constraint SYS.I_JOB_JOB Violated [ID 783299.1]&lt;/strong&gt;
[shell]
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.1.0.7 - Release: 10.2 to 11.1
Information in this document applies to any platform.
***Checked for relevance on 20-SEP-2011***

Symptoms
You received the following errors when performing DataPump import:
ORA-39083: Object type JOB failed to create with error:
ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
Failing sql is:
BEGIN DBMS_JOB.ISUBMIT (JOB =&gt; 61, NEXT_DATE =&gt; TO_DATE (&#039;2009-02-16 00:00:00&#039;,
&#039;YYYY-MM-DD:HH24:MI:SS&#039;), INTERVAL =&gt; &#039;TRUNC (SYSDATE + 1)&#039;, 
WHAT =&gt; &#039;Delete_TS_BLOBS;&#039;, NO_PARSE =&gt; TRUE); END;

Job &quot;SYSTEM&quot;.&quot;SYS_IMPORT_FULL_02&quot; completed with 1 error(s) at 15:14:38

Cause
The job with ID 61 already exists in the target database. 
Always the job ID (JOBID) must be be unique (two jobs with same ID are not allowed).

Verify the job existence:

select job, what 
from   dba_jobs; 

JOB     WHAT 
-----   -------- 
61      AGILE9_WEEKLY_ANALYZE

NOTE If a job is already running, then it may not show up in view USER_JOBS, 
if another user started the job. You have to check the 
view DBA_JOBS to verify the job ID is not in use. 


Solution
1. Manually create the failed job with a different job ID

For example: 

declare
  m_job number;

begin
  select max (job) + 1 
  into   m_job 
  from   dba_jobs; 

  dbms_job.isubmit (job =&gt; m_job, next_date =&gt; to_date (&#039;2009-02-16 00:00:00&#039;, &#039;YYYY-MM-DD:HH24:MI:SS&#039;),
  interval =&gt; &#039;trunc (sysdate + 1)&#039;, what =&gt; &#039;Delete_TS_BLOBS;&#039;, no_parse =&gt; true); 
end;
/

Or:

2. Remove the existing job with same job ID (61) (only if the job is not required) 
and then perform the import

connect / as sysdba
exec dbms_job.remove (61); 
exit
[/shell]]]></description>
		<content:encoded><![CDATA[<p><strong>ORA-00001 Unique Constraint SYS.I_JOB_JOB Violated [ID 783299.1]</strong></p>
<pre class="brush: bash; title: ; notranslate">
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.1.0.7 - Release: 10.2 to 11.1
Information in this document applies to any platform.
***Checked for relevance on 20-SEP-2011***

Symptoms
You received the following errors when performing DataPump import:
ORA-39083: Object type JOB failed to create with error:
ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
Failing sql is:
BEGIN DBMS_JOB.ISUBMIT (JOB =&gt; 61, NEXT_DATE =&gt; TO_DATE ('2009-02-16 00:00:00',
'YYYY-MM-DD:HH24:MI:SS'), INTERVAL =&gt; 'TRUNC (SYSDATE + 1)', 
WHAT =&gt; 'Delete_TS_BLOBS;', NO_PARSE =&gt; TRUE); END;

Job &quot;SYSTEM&quot;.&quot;SYS_IMPORT_FULL_02&quot; completed with 1 error(s) at 15:14:38

Cause
The job with ID 61 already exists in the target database. 
Always the job ID (JOBID) must be be unique (two jobs with same ID are not allowed).

Verify the job existence:

select job, what 
from   dba_jobs; 

JOB     WHAT 
-----   -------- 
61      AGILE9_WEEKLY_ANALYZE

NOTE If a job is already running, then it may not show up in view USER_JOBS, 
if another user started the job. You have to check the 
view DBA_JOBS to verify the job ID is not in use. 


Solution
1. Manually create the failed job with a different job ID

For example: 

declare
  m_job number;

begin
  select max (job) + 1 
  into   m_job 
  from   dba_jobs; 

  dbms_job.isubmit (job =&gt; m_job, next_date =&gt; to_date ('2009-02-16 00:00:00', 'YYYY-MM-DD:HH24:MI:SS'),
  interval =&gt; 'trunc (sysdate + 1)', what =&gt; 'Delete_TS_BLOBS;', no_parse =&gt; true); 
end;
/

Or:

2. Remove the existing job with same job ID (61) (only if the job is not required) 
and then perform the import

connect / as sysdba
exec dbms_job.remove (61); 
exit
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
