Solved

how to stop the execution of scheduler job?

Posted on 2008-06-20
15
318 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
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
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.

 

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

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

770 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