Specific Crontab Job is not executed .
Hello
A specific Cron job is not executed (The bold one), i checked the /var/log/cron log file and i see an entry for this job at exactly 23:00 ... but i dont see the expected output produced as if this script was not executed ...
needless to say that all the other cron jobs run perfectly
also the script it self works 100% just not via cron .
My Cron :
######################################
# Node2 / Rac2 Cron list #############
######################################
## Remove old archives 4 days old ####
00 06 * * * /ora_data/Scripts/rm_arc/rm_arc.sh 1> /ora_data/Scripts/rm_arc/rm_arc.log
######################################
## Rename Alert\Listener log file ####
00 20 * * 0,4 /ora_data/Scripts/alert_log/rename_alert.sh
00 21 * * 0,4 /ora_data/Scripts/alert_log/rename_listener.sh
######################################
## Export Full DB/Remove older files #
00 23 * * 1,3,5 /ora_data/Scripts/exp/expdp_rac2.sh
######################################
## Backup the Voting and Ocr files ###
01 19 * * * /ora_data/Scripts/crs/crs.sh
vi /ora_data/Scripts/exp/expdp_rac2.sh:
#!/bin/bash
# This Script use data pump export to export the entire rac db.
# ENV
DATE=`date +%F`
# Remove export files older then 7 days.
find /app/exp_dir_rac1/ -ctime +7 -exec rm -f {} \;
# Full Export of The Rac .
/app/oracle/bin/expdp system/oracle@rac1 full=y dumpfile=full.dmp.$DATE logfile=full.log.$DATE PARALLEL=2 directory=EXP_DIR_RAC1
Many Thanks
Itsik
|