Monday, July 16, 2012

Opatch

Quick start guide to Opatch for FMW 11g

    OPatch


Readme files from the downloaded archives needs to be reviewed for every fix since they are unique in each case steps below are  generic but not guaranteed for every fix .

1.      Set the oracle home
export ORACLE_HOME=/u01/app/oracle/product/fmw/Oracle_SOA1
2.      Add opatch bin directory to path
export PATH=$ORACLE_HOME/OPatch:$PATH
3.      Run opatch lsinventory to make sure you have the environment variables correct
# opatch lsinventory

4.      Download the fix from MOS site
Log in using MOS credentials and select the Patches & Updates tab, provide the fix number and download the update.
5.      Unzip the patch zip file into the PATCH_TOP.
   $unzip -d PATCH_TOP p11853131_111160_Generic.zip
6.      Set your current directory to the directory where the patch is located.
   $cd PATCH_TOP/11853131
7.       Run OPatch to apply the patch. Run following command:
   $opatch apply
8.      Restart the server instances
Rollback Procedure  
9.      Change to the directory where the patch was unzipped.
 $cd PATCH_TOP/11853131
10.  Run OPatch to deinstall the patch.
   $opatch rollback -id 11853131 

No comments:

Post a Comment