Running a recurring job at another specific time

Running a recurring job at another specific time

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?

    Requires Free Membership to View

    By submitting your registration information to SearchOracle.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchOracle.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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


This was first published in March 2003

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.