10 April 2012
Patch RAC DR server with 11g PSU5
Working notes, without the real directory names:
cd 11202_Patches/Linux_x86_64
export PATH=$PATH:/.../OPatch
opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./13653086
export PATH=$PATH:$GRID_HOME/bin
crsctl stop cluster
crsctl stop crs
As the root user execute:
$GRID_HOME/crs/install/rootcrs.pl -unlock
to avoid error "Copy Action: Destination File "$GRID_HOME/bin/crsd.bin" is not writeable."
sudo su - grid
$GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local .../Linux_x86_64/13653086
$GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local .../Linux_x86_64/13343424
$GRID_HOME/OPatch/opatch lsinventory
sudo su - oracle
cd .../11202_Patches/Linux_x86_64/13653086
../custom/server/13653086/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
opatch napply -oh $ORACLE_HOME -local .../custom/server/13653086
opatch lsinventory <-- to check
cd ../11202_Patches/Linux_x86_64/13343424
opatch apply -oh /$ORACLE_HOME -local
../custom/server/13653086/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME
sudo su - grid
export PATH=$PATH:$GRID_HOME/bin
crsctl start crs
crsctl start cluster
Pre-checks
$ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOMEcd 11202_Patches/Linux_x86_64
export PATH=$PATH:/.../OPatch
opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./13653086
export PATH=$PATH:$GRID_HOME/bin
crsctl stop cluster
crsctl stop crs
As the root user execute:
$GRID_HOME/crs/install/rootcrs.pl -unlock
to avoid error "Copy Action: Destination File "$GRID_HOME/bin/crsd.bin" is not writeable."
On each node
sudo su - grid
$GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local .../Linux_x86_64/13653086
$GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local .../Linux_x86_64/13343424
$GRID_HOME/OPatch/opatch lsinventory
sudo su - oracle
cd .../11202_Patches/Linux_x86_64/13653086
../custom/server/13653086/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
opatch napply -oh $ORACLE_HOME -local .../custom/server/13653086
opatch lsinventory <-- to check
cd ../11202_Patches/Linux_x86_64/13343424
opatch apply -oh /$ORACLE_HOME -local
../custom/server/13653086/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME
sudo su - grid
export PATH=$PATH:$GRID_HOME/bin
crsctl start crs
crsctl start cluster
Labels: 11gR2 PSU5 Oracle RAC Patch DR server