Home » RDBMS Server » Server Utilities » Scheduling sqlldr in crontab -- solution pls!!!
Scheduling sqlldr in crontab -- solution pls!!! [message #72562] Wed, 16 July 2003 23:59 Go to next message
Rashmi
Messages: 20
Registered: April 2001
Junior Member
Hi All,
I have a script that ftps a file to my home dir and loads it in table using the sqlldr. When I run this script manually from the command prompt it runs fine & loads the records generating the log & bad file.
But when I put in crontab it does not run & the error thrown is sqlldr not found.
The oracle version is 8.1.6 on solaris 8.
Why does this happen?? Any solutions ??

Thanks & Regards
Rashmi
Re: Scheduling sqlldr in crontab -- solution pls!!! [message #72565 is a reply to message #72562] Thu, 17 July 2003 06:03 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
post your crontab entries and the script
Re: Scheduling sqlldr in crontab -- solution pls! [message #74230 is a reply to message #72565] Thu, 14 October 2004 14:30 Go to previous messageGo to next message
Marcelo
Messages: 4
Registered: March 2002
Junior Member
I got same problem :-(

my (little) script:

for arq in `ls *.txt`
do
cat $arq | tr "n" " " >> logger.out
echo "" >>logger.out
rm $arq
done

./sqlldr $DBUSER/$DBPASSWORD@$DBSCHEMA data = ./logger.out control = control.ctl log = log.out bad = log.bad errors = 50000 >> log_execucao.log
rm logger.out

exit 0
Re: Scheduling sqlldr in crontab -- solution pls! [message #74232 is a reply to message #74230] Fri, 15 October 2004 03:07 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>>./sqlldr $DBUSER/$DBPASSWORD@$DBSCHEMA data =<b>./logger.out</b> control = control.ctl log = log.out bad = log.bad errors = 50000 >> log_execucao.log

why are you using a ./logger.out.
It should be logger.out
Re: Scheduling sqlldr in crontab -- solution pls! [message #74246 is a reply to message #74232] Tue, 19 October 2004 10:35 Go to previous message
Marcelo
Messages: 4
Registered: March 2002
Junior Member
Oh...sorry... the path to logger.out is a little error when i edit my script to post here :-(

But, isnīt my problem. My script works fine running into command line, but when i try to run thought crontab not work :-(

regards,
Marcelo
Previous Topic: SQL Loader.again
Next Topic: Data Migration
Goto Forum:
  


Current Time: Mon Jul 01 08:02:02 CDT 2024