dbms scheduler create job example

Solutions on MaxInterview for dbms scheduler create job example by the best coders in the world

showing results for - "dbms scheduler create job example"
Noah
20 Jan 2018
1BEGIN
2  dbms_scheduler.drop_job(job_name => 'MY_JOB');
3END;
Mattia
25 Jun 2017
1BEGIN
2    DBMS_SCHEDULER.CREATE_JOB(
3      job_name => '"MYSCHEMA"."JOB_NAME"',
4      job_type => 'STORED_PROCEDURE',
5      job_action => 'MYSCHEMA.PROCEDURE',
6      number_of_arguments => 0,
7      start_date => to_timestamp_tz(
8        '2021-04-08 14:19:32.000000000 EUROPE/PARIS', 
9        'YYYY-MM-DD HH24:MI:SS.FF TZR'),
10      repeat_interval => 
11      'FREQ=DAILY;BYDAY=MON,TUE,WED,THU,FRI;BYHOUR=12;BYMINUTE=30;BYSECOND=0',
12      end_date => NULL,
13      enabled => FALSE,
14      auto_drop => FALSE,
15      comments => 'Job description');
16
17    DBMS_SCHEDULER.enable(
18            name => '"MYSCHEMA"."JOB_NAME"');
19END;
Alina
12 Oct 2018
1SELECT OWNER, JOB_NAME, ENABLED, JOB_CLASS, NEXT_RUN_DATE
2FROM DBA_SCHEDULER_JOBS
3WHERE OWNER NOT IN ('SYS')
4ORDER BY ENABLED, OWNER, JOB_NAME;
5
6-- Running jobs:
7SELECT OWNER, JOB_NAME, JOB_SUBNAME, JOB_STYLE, SESSION_ID, SLAVE_PROCESS_ID, 
8	ELAPSED_TIME, CPU_USED 
9FROM DBA_SCHEDULER_RUNNING_JOBS
10ORDER BY OWNER, JOB_NAME;