Scheduling stored procedure using DBMS_JOB package
416415Apr 16 2004 — edited Apr 16 2004I have stored procedure called extract_every_day, I want this procedure to run automatically at 7:00 PM every day.
I used DBMS_JOB.SUBMIT to achieve this, below is pl/sql block
DECLARE
v_jobno number ;
BEGIN
DBMS_JOB.SUBMIT
(v_jobno,
' extract_every_day ',
TRUNC (SYSDATE) + 1 + 9/24,
'TRUNC (SYSDATE) + 1 + 9/24');
COMMIT;
END;
/
When I run above pl/sql block is that mean procedure extract_every_day executes every day and what is the significance of job OUT parameter in DBMS_JOB.SUBMIT procedure. Also how can I see list of jobs submitted.
Any help is appreciated.
Thanks