DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: job code - how to set job to run 2 minutes after every hour?

  1. #1
    Join Date
    Apr 2002
    Posts
    29

    job code - how to set job to run 2 minutes after every hour?

    hi again, can someone help me with the following in a job?

    interval => 'TRUNC(SYSDATE,''MI'') + 15/1440');--run job every 15mins

    but how do i write the interval to have the job run at 2 minutes past every hour?

    thanks

  2. #2
    Join Date
    Apr 2002
    Posts
    29

    answered my own question!!

    sorry to bother you guys.... but i answered this question myself after thinking bout it a little..... it's called brain fart.. =)

    all i had to do is set the start time at say 12:02

    and then in the interval part, tell it 60/1440.

    easy enough...

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Your run time will creep forward, as it is calculated at the end of your job run time.

    The solution is to Trunc to hour then add sixty-two minutes --

    trunc(sysdate,'hh')+(62/(60*24))
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width