Solved

how to stop the execution of scheduler job?

Posted on 2008-06-20
15
323 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
[X]
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
  • 7
  • 7
15 Comments
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 500 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

752 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