Error ORA-12012: and ORA-12005
540353Mar 29 2007 — edited Mar 29 2007Hi,
I am working in oracle9i and solaris 5.8.
If i run the procedure automatically means it shows error
Procedure :
CREATE OR REPLACE PROCEDURE PROC_SCHEDULE IS
JOBNO NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT(
JOB => JOBNO,
WHAT => 'GARRISON.PROC_ARCHIVE_ALL;',
NEXT_DATE => TRUNC(SYSDATE),
INTERVAL => 'NEXT_DAY(LAST_DAY(TRUNC(SYSDATE)),''SUNDAY'')-7 + 4/24'
);
COMMIT;
END;
/
ERROR
ORA-12012: error on auto execute of job 112
ORA-12005: may not schedule automatic refresh for times in the past
This error i got from the log file..
But the same procedure if i run manually means its working Fine.
Please explain me how to run resolve the Error and to run the procedure automatically...
Thanks...