Oracle on Linux tips, tutorials and expert adviceBackup and recovery of Oracle data on Linux <<previous|next>>
Scheduling backup jobs in Linux
When that same script is executed via cron, you do not get your session's environment variables. So your shell script needs to have the environment variables it needs coded in the script.
To run the shell script just like cron would run it, use the "sh -x" command. For instance, to run your backup script like cron would, do the following:
sh -x /backup_script/backup_rman_full.shIf there is an error in your script, you will find it when it is run in this manner. Fix any and all errors and then cron should have no problems running this script.
22 Sep 2005