Skip to Main Content

SQL & PL/SQL

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!

Issues in calling shell script through external job.

user11942774Sep 22 2012 — edited Sep 23 2012
Hi,

I am trying to call a shell script from a procedure. when i execute the procedure the shell script is not being called and there is no exception raised.
The test.sh has all the execute permissions. when i run the shell script separately it works fine.
The shell script is having execute permissions and the user is having create job and create rjob grants.

Could you please let me know where am i going wrong.
Thanks
CREATE OR REPLACE PROCEDURE DBREPORT.PRC_GATE
 
begin
 
DBMS_SCHEDULER.create_program (
   program_name => 'gate1',
   program_type => 'EXECUTABLE',
   program_action => '/home/cobr_sftp/var/download/test.sh',
   number_of_arguments => 0,
  enabled => TRUE,
   comments => 'CREATE_PROGRAM test using a schell script.');
 
exception when others then
     dbms_output.put_line(sqlcode||sqlerrm);
     
end;
Edited by: user11942774 on Sep 21, 2012 10:44 PM

Edited by: user11942774 on Sep 23, 2012 5:57 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2012
Added on Sep 22 2012
8 comments
245 views