Hi,
I am using ORACLE DATABASE 11g and Oracle Enterprise Linux 5.
I want to execute a shell script with dbms_scheduler.create_job procedure in a pl/sql block. I am using the below code :-
dbms_scheduler.create_job(
job_name => 'TEST',
job_type => 'EXECUTABLE',
job_action => '/bin/bash',
number_of_arguments => 1,
start_date => SYSTIMESTAMP,
enabled => FALSE);
dbms_scheduler.set_job_argument_value('TEST', 1, '/tmp/my-temp-script.sh');
dbms_scheduler.enable('TEST');
But for some reason the shell script does not get executed.
Can any one tell me what i have mistaken here ?
Thanks in advance.