Skip to main content

sqlplus doesn't work in Crontab

/oracle/GR1/121/bin/sqlplus / as sysdba <<EOF >> $LOGFILE
whenever sqlerror exit sql.sqlcode;
set echo on;
set serveroutput on;
STARTUP;
EXIT
EOF

Already tried it with the path, but it hasn't worked. Anyone can help?

plattio
  • 71
  • 2
  • 7