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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Job scheduler won't run executable (.bat file)

3773792Aug 31 2018 — edited Sep 7 2018

The batch file is meant to run a python script, and works fine when I run it from windows. When the job is run, it says succeeded, but nothing happens. Does anyone know how to get scheduler to run bat files, or to just directly run a python script?

BEGIN

    DBMS_SCHEDULER.CREATE_JOB (

            job_name => '"SYSTEM"."TEST"',

            job_type => 'EXECUTABLE',

            job_action => 'C:\Users\awan\Desktop\test.bat',

            number_of_arguments => 0,

            start_date => NULL,

            repeat_interval => NULL,

            end_date => NULL,

                job_class => '"SYS"."DBMS_JOB$"',

            enabled => FALSE,

            auto_drop => FALSE,

            comments => '');

        

    

    DBMS_SCHEDULER.SET_ATTRIBUTE(

             name => '"SYSTEM"."TEST"',

             attribute => 'store_output', value => TRUE);

    DBMS_SCHEDULER.SET_ATTRIBUTE(

             name => '"SYSTEM"."TEST"',

             attribute => 'logging_level', value => DBMS_SCHEDULER.LOGGING_OFF);

     

  

 

   

    DBMS_SCHEDULER.enable(

             name => '"SYSTEM"."TEST"');

END;

This post has been answered by Gaz in Oz on Sep 4 2018
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 5 2018
Added on Aug 31 2018
7 comments
4,698 views