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!

execve: Exec format error to execute shell script

736688Nov 29 2009 — edited Mar 23 2011
I made job to execute a shell script.

exec dbms_scheduler.create_job (
job_name => 'run_sh',
job_type=>'EXECUTABLE',
job_action=> '/fsoracle/app/oracle/inst2/if_cft/send_file_susin.sh',
start_date=>sysdate + 1/5760,
enabled => TRUE
);

send_file_susin.sh
#!/bin/ksh
set -v
. /fsutil/ndm/axway/profile

/fsutil/ndm/axway/Synchrony/Transfer_CFT/bin/CFTUTIL << EOJ
CONFIG TYPE=COM,MEDIACOM=TCPIP,FNAME=$CFTTCP

SEND PART=ZADA,IDF=1363X1364,
FNAME='/fsoracle/app/oracle/product/rdbms/log/KFG.DD.SHRCOM.HRD.A03',
NFNAME=KFG.DD.SHRCOM.HRD.A03,
FLRECL=25,NLRECL=25
SWAITCAT SELECT='IDTU=="%_CAT_IDTU%"'
EOJ

This script is well executed in terminal mode, but it threwed error, [ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error STANDARD_ERROR="execve: Exec format error"] when I executed the shell script, send_file_susin.sh.

I changed owners and chmods of some specific files, and t.sh was well executed.
t.sh
#!bin/ksh

/usr/bin/mkdir /tmp/test

I don't know what's wrong with the script, send_file_susin.sh.

Does any know about this? Please, tell me the solution.

Thanks in advance,
Jinbae Kim.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2011
Added on Nov 29 2009
2 comments
6,477 views