Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to stop the execution of scheduler job?

Posted on 2008-06-20
15
Medium Priority
?
327 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 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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 syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

722 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