Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error ORA-12012: and ORA-12005

540353Mar 29 2007 — edited Mar 29 2007
Hi,

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...

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 26 2007
Added on Mar 29 2007
3 comments
2,368 views