Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

bat file is not running through scheduler

MaahjoorSep 10 2015 — edited Sep 10 2015

Dear all,

i am using oracle 10g R2 on windows 64 bits.

i have the following code to run an executeable after every 5 minutes everyday except FRIDAY and SATUREDAY.

it is executing a bat file. if i double click the bat file, it is working fine. but the scheduler is not executing it.

begin

  dbms_scheduler.create_schedule(

       schedule_name   => 'populate_free_pc_5_mint',

       repeat_interval => 'FREQ=MINUTELY; INTERVAL=5;

BYDAY=TUE,WED,THU,SUN,MON;' ,

       comments        => 'schedule to run daily after 5 minutes');

  dbms_scheduler.create_program

    (  program_name   => 'Populate_Free_PC',

       program_type   => 'EXECUTABLE',

       program_action => 'F:\free_access_lab\execute.bat >

nul',

       enabled        => TRUE,

       comments       => 'Populate the free_pc table'

    );

  dbms_scheduler.create_job (

    job_name=>'refresh_free_pc',

    program_name =>'Populate_Free_PC',

        schedule_name=> 'populate_free_pc_5_mint',

    enabled      => true,

        comments     => 'populate the free_pc table after each 5 minutes'

  );

end;

could somebody guide me what is the problem?

thank you.

This post has been answered by GregV on Sep 10 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2015
Added on Sep 10 2015
14 comments
2,455 views