declare
job number;
begin
sys.dbms_job.submit(job,
'test;', --job job to be executed (the example is the stored procedure to be executed)
to_date('22-02-2014', 'dd-mm-yyyy '),
'TRUNC(SYSDATE+1)'); --Period of executing the job (00:00 every day)
dbms_output.put_line(job);
end;
job time period:
run once a day 'SYSDATE + 1'
run once an hour' SYSDATE + 1/24'
runs every 10 minutes 'SYSDATE + 10/(60*24)'
runs every 30 seconds 'SYSDATE + 30/(602460)'
runs every other week 'SYSDATE + 7'
job number;
begin
sys.dbms_job.submit(job,
'test;', --job job to be executed (the example is the stored procedure to be executed)
to_date('22-02-2014', 'dd-mm-yyyy '),
'TRUNC(SYSDATE+1)'); --Period of executing the job (00:00 every day)
dbms_output.put_line(job);
end;
job time period:
run once a day 'SYSDATE + 1'
run once an hour' SYSDATE + 1/24'
runs every 10 minutes 'SYSDATE + 10/(60*24)'
runs every 30 seconds 'SYSDATE + 30/(602460)'
runs every other week 'SYSDATE + 7'