I have this script to export a schema. I can run it from command line ./exportschema.sh and everything runs fine.
When i put it into a cron job, it gets only as far as deleting the /stage/backup/student.log file but does not generate the .dmp file.
What is missing to make this script run from cron?
# Remove current .dmp file
/u01/app/oracle/product/10.1.0/db_1/bin/expdp $ORACLE_ID DIRECTORY=$DIRECTORY DUMPFILE=$DUMPFILE LOGFILE=$LOGFILE