Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Break job in dba_jobs

Posted on 2006-11-08
3
4,157 Views
Last Modified: 2008-01-09
I tried to break a job in dba_jobs but obviously not the right way.  

SQL> select job, what from dba_jobs;

  JOB                     WHAT
--------------------------------------------------------------------------------
   121              analyze_my.bbtabs;

  141               analyze_my.bbtabs;

  161              analyze_my.bbtabs;



SQL> exec dbms_job.broken(121,true);
BEGIN dbms_job.broken(121,true); END;

*
ERROR at line 1:
ORA-23421: job number 121 is not a job in the job queue
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_IJOB", line 529
ORA-06512: at "SYS.DBMS_JOB", line 245
ORA-06512: at line 1

How do I break those jobs?

0
Comment
Question by:xoxomos
  • 2
3 Comments
 

Author Comment

by:xoxomos
ID: 17900186
Also tried to remove:
SQL> exec dbms_job.remove(121);
BEGIN dbms_job.remove(121); END;

*
ERROR at line 1:
ORA-23421: job number 121 is not a job in the job queue
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_IJOB", line 529
ORA-06512: at "SYS.DBMS_JOB", line 171
ORA-06512: at line 1

0
 
LVL 18

Accepted Solution

by:
rbrooker earned 300 total points
ID: 17900333
Hi,

you need to be the owner of the job to remove / break the job.

select log_user, priv_user, schema_user from dba_jobs where job = 121

one of these three columns is the user you need to be to manipulate the job. ( i can never remember which one. )
also, remember to COMMIT after each job change...

good luck :)
0
 

Author Comment

by:xoxomos
ID: 17900444
Yup.  That's right.  Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web Service from a stored procdure oracle 10 58
SQL Query 34 115
Oracle sql query 7 74
How to drop system generated virtual column in a table in12c 15 48
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question