1BEGIN
2 DBMS_SCHEDULER.CREATE_JOB (
3 job_name => 'your_job_name',
4 job_type => 'STORED_PROCEDURE', -- see oracle documentation on types --
5 job_action => 'name of the procedure',
6 start_date => trunc(sysdate)+2/24, -- every night @ 2 a.m.
7 repeat_interval => 'FREQ=DAILY;BYHOUR=2', -- daily @ 2 a.m.
8 end_date => NULL,
9 enabled => TRUE,
10 comments => 'your general comment');
11END;
12/
13