Shell Script to run preclone on dbtier in EBS R12

 

Shell Script to run preclone on dbtier


vi /backup/dbpreclone.sh

#!/bin/bash

. /RUP10F/db/tech_st/11.2.0/UAT_ccuine18.env   #This is database env file.

cd /RUP10F/db/tech_st/11.2.0/appsutil/scripts/UAT_ccuine18

perl adpreclone.pl dbTier <<EOF   

appsuat   # Provide apps password as per your env

EOF

 

$ chmod 775 /backup/dbpreclone.sh

 

Now schedule it in crontab

crontab -e

0 0 * * * /backup/dbpreclone.sh

No comments:

Post a Comment