Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Location
    India
    Posts
    3

    Unanswered: Setting DB JOB to execute daily

    Hi,

    I have created a DB JOB, which is schedule to execute every day on 10:45:00 PM. Interval is set as SYSDATE+1.

    After few days, I checked for execution time, it was changed. hence I alter job and set the time correct as above.
    Next day I check the the time is again changed for next schedule to 10:45:41 PM

    can any one tell me why this is happening...

    Regards,

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1

    Re: Setting DB JOB to execute daily

    The job is rescheduled using the SYSDATE value at the time of completion. If the job started at 10:45:00 and took 41 seconds to run, then SYSDATE will be 10:45:41 when the next run is scheduled. The solution is to explicitly set the time you want in the INTERVAL parameter like this:

    'trunc(sysdate)+1+(10/24)+(45/24/60)'

    i.e. trunc(sysdate) plus 1 day, 10 hours and 45 minutes.

  3. #3
    Join Date
    Mar 2004
    Location
    India
    Posts
    3

    Re: Setting DB JOB to execute daily

    Thanks a lot

Posting Permissions

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