Job not starts at the scheduled time
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Job not starts at the scheduled time

  1. #1
    Join Date
    Mar 2009
    Location
    SOCAL
    Posts
    4

    Job not starts at the scheduled time

    We use DBMS_JOB to schedule our daily job but it is not always starts at the scheduled time, sometime starts after 2 hours, sometime even after 8 hours too.

    My question is, how to make sure it starts every day @13.00 Hrs. Any help is appreciated.

    Here is my code:

    DECLARE
    X NUMBER;
    BEGIN
    SYS.DBMS_JOB.SUBMIT
    ( job => X
    ,what => 'JOBPROCESSING ;
    '
    ,next_date => to_date('17/03/2009 13:00:00','dd/mm/yyyy hh24:mi:ss')
    ,interval => 'TRUNC(SYSDATE)+1+13/24'
    ,no_parse => FALSE
    );
    SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    COMMIT;
    END;
    /
    Last edited by DDDDBA; 03-17-2009 at 10:19 AM.

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,333
    is the job still running?

  3. #3
    Join Date
    Mar 2009
    Location
    SOCAL
    Posts
    4
    Yes, Job is running every day but some days it will not start @13.00, not sure why. I want to ensure it starts always @13.00 every day..

  4. #4
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,333
    no, is the job still running by the time the next day comes round

  5. #5
    Join Date
    Apr 2001
    Location
    Czechia
    Posts
    712
    Check the job_queue_processes parameter. If the value is too low there might be no free process to run the job at the desired time. Use the dba_jobs_running view to see running jobs.
    Ales
    The whole difference between a little boy and an adult man is the price of toys

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