Linux Operating System (MOSC)

MOSC Banner

Cron job

edited Nov 16, 2011 7:47PM in Linux Operating System (MOSC) 2 commentsAnswered
 Hi All,

I am going to upgrade oracle database and hence I want to stop cron job before upgrade and then reenable the same cronjob.I have below script for this job.Please let me know whether this script will work or needs to be modified and what to be modified?

#-----------------------#

#Cron Before Upgrade#

#------------------------#

30 00 * * * /dboracle/admin/dba/scripts/ixbs-cron/cron.ksh > /dboracle/admin/dba/scripts/ixbs-cron/cron.log 2>&1

 

 

##SCRIPT TO CHANGE THE CRON BEFORE THE UPGRADE####

####Version 1.0####

export CRON_DIR=/dboracle/admin/dba/scripts/ixbs-cron

cd $CRON_DIR

pwd

##Take Backup of the Existing Crontab##

crontab -l > cronorig

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center