Sunday, February 19, 2012

Easy Patching

Hi All

My friend Pinhas Rozner working as Oracle Application DBA and SOA Admin Consultant write the Easy Patching script.

I'm using it a lot and want to share it with You...

What you need to do:
1. Create defaultsfile as follow :
run adpatch defaultsfile=$APPL_TOP/admin/$SID/defaults.txt
Now abort autopatch section at point where it asks for patch directory by ctrl + c or ctrl + d
Now check if this file exists.

YOU HAVE TO DO ABOVE STEPS ONLY ONCE IN AN ENVIRONMENT TO CREATE DEFAULTS FILE.

2. Run the script patchrun.sh with the follow parameters:
$1 - driver name
$2 - number of workers to use
$3 - more adpatch options, adding manualy more options for the patch installation

YOU MUST BE IN THE PATCH DRIVER FOLDER

3. Script patchrun.sh
LOG=`echo $PWD |awk -F/ '{print $NF}'`
adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/defaults.txt driver=$1 workers=$2 patchtop=$PWD logfile=${LOG}.log $3

Good Luck and  Enjoy Patching ...

No comments:

Post a Comment