I have an sql script in my home directory that I need to run from crontab. The script works when executed from the command line however when placed in crontab the script fails and the mail in /usr/spool tells me that sqlplus cannot be found. The script is as follows: Anyone know what I am doing wrong ?
sqlplus <<!
<username>/<password>
@maxtestsql.sql
exit
!
sqlplus <<!
<username>/<password>
@maxtestsql.sql
exit
!