I have writtem this job to run on every Friday at 7:00 p.m., and it is working fine:
DECLARE /* ** Procedure to schedule the BOM extract Procedure ** every Friday at 7.00 PM */ job_no BINARY_INTEGER; BEGIN dbms_job.submit( job_no , 'BEGIN; kesh_bom(5); END;' , (NEXT_DAY(TRUNC(SYSDATE), 'FRIDAY') + 19/24) , 'NEXT_DAY(TRUNC(SYSDATE), ''FRIDAY'') + 19/24' , FALSE ); END;Now I want to run this job on 02-Mar-03 at 10:00 a.m. How can I go about it?
Since it appears that you only want to run the job once in addition to your regular routine, then the easiest way is to simply submit another job to run at the given time you desire. Don't set an interval for repeating it and it will only run the one time. You can remove the job after it runs.
For More Information
- Dozens more answers to tough Oracle questions from Karen Morton are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.