Skip to Main Content

Infrastructure 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!

how to run sqlldr script by crontab

user11309581Jul 17 2011 — edited Jul 18 2011
the code below working fine when i run by ./listcdr.sh but when i try to run it by crontab the sqlldr part not working only the move part its working ,

cd /med/cdrs/swh
ls Wi* > /u01/ctrlfile/test.txt
cd /u01/ctrlfile
sqlldr ubai/ubai control="/u01/ctrlfile/loadCDRNames.ctl" log="/u01/ctrlfile/loadCDRNames.log"
#done
for i in `cat /u01/ctrlfile/test.txt`; do

if [ -s /u01/ctrlfile/est.bad ]
then
echo "Error in uploading file $i"
else
mv /med/cdrs/swh/$i /med/cdrs/new ;
# echo "File $i was uploaded successfully."
fi

done


any help please ,
This post has been answered by Paul M. on Jul 17 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2011
Added on Jul 17 2011
5 comments
3,329 views