Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to drop a scheduled job in oracle

Tags:

oracle

plsql

I created a job named ENTRY_TIME

BEGIN
      DBMS_SCHEDULER.CREATE_JOB (
       job_name           =>  'ENTRY_TIME',
       job_type           =>  'STORED_PROCEDURE',
       job_action         =>  'PK_ENTRY_TIME.PROC_ENTRY_TIME',
       start_date         =>  '24-MAY-16 07.00.00 AM America/Chicago',
       repeat_interval    =>  'FREQ=DAILY',
       end_date           =>  '20-NOV-99 07.00.00 AM America/Chicago',
       auto_drop          =>   FALSE,
      comments           =>  'My new job');
    END;
    /

Now I want to drop this job.What query should be used to drop this job Entry_time permanently?

like image 309
sith Avatar asked May 26 '16 10:05

sith


People also ask

How do I delete an Oracle job?

In Oracle, you can remove a job from the job queue using the Oracle DBMS_JOB. REMOVE statement.

How do you drop an object in Oracle?

Use the DROP TYPE statement to drop the specification and body of an object type, a varray, or a nested table type. See Also: DROP TYPE BODY for information on dropping just the body of an object type. CREATE TYPE and ALTER TYPE for information on creating and modifying types.

What is auto drop in Dbms_scheduler?

For auto drop,This flag if TRUE, causes a job to be automatically dropped after it has completed or has been automatically disabled. A job is considered completed if: 1. Its end date (or the end date of the job schedule) has passed. 2.It has run max_runs number of times. max_runs must be set with SET_ATTRIBUTE.

What is the use of Dbms_scheduler in Oracle?

The DBMS_SCHEDULER package provides a collection of scheduling functions and procedures that are callable from any PL/SQL program.


1 Answers

BEGIN
  dbms_scheduler.drop_job(job_name => 'ENTRY_TIME');
END;
/
like image 155
Yaron Idan Avatar answered Oct 23 '22 17:10

Yaron Idan