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

Thread: dbms_jobs not running immediately

  1. #1
    Join Date
    Sep 2002
    Posts
    411

    dbms_jobs not running immediately

    I have the below job and it should run immediately and schedule to be run at 9:00pm every night, how come it's not running immediately????




    var x number
    begin
    dbms_job.submit(:x, ‘test;', TRUNC(sysdate)+21/24, 'TRUNC(sysdate)+1+21/24');
    commit;
    end;
    /

  2. #2
    Join Date
    Jan 2002
    Location
    Up s**t creek
    Posts
    1,525
    Currently your job is set to run at 9pm today then at 9pm every day thereafter. I think you need something like this:

    Code:
    var x number
    begin
    dbms_job.submit(:x, ‘test;', sysdate, 'TRUNC(sysdate)+1+21/24');
    commit;
    end;
    /
    Regards
    Jim
    Oracle Certified Professional
    "Build your reputation by helping other people build theirs."

    "Sarcasm may be the lowest form of wit but its still funny"

    Click HERE to vist my website!

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Also, make sure you have enough JOB_QUEUE_PROCESSES setup.
    Jeff Hunter

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