Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to stop the execution of scheduler job?

Posted on 2008-06-20
15
Medium Priority
?
330 Views
Last Modified: 2013-12-21
Hi Experts,
We need to stop the execution of Scheduler job that pulls data into it.
could you please help me in stopping the job?
0
Comment
Question by:daniesh
  • 7
  • 7
14 Comments
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 2000 total points
ID: 21830767
0
 

Author Comment

by:daniesh
ID: 21830776
i mean to dbms_jobs .
0
 

Author Comment

by:daniesh
ID: 21830850
DBMS_JOB.INTERVAL (
   job       IN  BINARY_INTEGER,
   interval  IN  VARCHAR2);
I found the above command to stop the job.
SQL> select job, what , schema_user from dba_jobs where job=2061;

       JOB
----------
WHAT
--------------------------------------------------------------------------------
SCHEMA_USER
------------------------------
      2061
SKR_PULL_DATA;
ATLASER
I have pasted the job, schema_user , what of scheduled which i have to stop.
Is this ths correct command to stop the dbms_job scheduler
 
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:daniesh
ID: 21830967
even i can find out on google this thing.
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21831701
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21831729
Or to stop specific job use:

exec DBMS_JOB.BROKEN(2061);
commit;

0
 

Author Comment

by:daniesh
ID: 21832032
i want to stop for some interval of time could you please tell me how to alter the dbms_jobs
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21832376

BROKEN Procedure
This procedure sets the broken flag. Broken jobs are never run.
 
Syntax
 
DBMS_JOB.BROKEN ( 
   job       IN  BINARY_INTEGER,
   broken    IN  BOOLEAN,
   next_date IN  DATE DEFAULT SYSDATE);
 
BROKEN Procedure Parameters
 
Parameter Description 
job       Number of the job being run.
broken    Job broken: IN value is FALSE.
next_data Date of the next refresh.

Open in new window

0
 

Author Comment

by:daniesh
ID: 21836821
did you check my above post.
i know we have to use above command to stop running jobs.
i dont know the format of next_date.
could you please put the values in the above command.
0
 
LVL 29

Assisted Solution

by:MikeOM_DBA
MikeOM_DBA earned 2000 total points
ID: 21837564

exec DBMS_JOB.BROKEN(2061,'SYSDATE+3');

Open in new window

0
 

Author Comment

by:daniesh
ID: 21845160
I need a time plus date . please
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21845961

'SYSDATE+3' means today plus three days.
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21848332
If you need hours then divide by 24, for example you wish to restart at 7PM do:

'TRUNC(SYSDATE)+19/24'
0
 

Author Comment

by:daniesh
ID: 21890091
what interval parameter addresses.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
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 Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

876 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