OPatch is an Oracle utility that assists us to apply interim patches to Oracle’s rdbms software amd clusterware. We can find opatch utility in $ORACLE_HOME/Opatch directory.
For example, let we apply patch number 11114547 to our 11.2.0.4 database.
Applying Patch:
1- Backup Oracle Home directory.
$ tar -cf ora11g.tar ora11g
2- Download patch file p11114547_10205_Linux-x86-64.zip via metalink. And copy it to database server.
3- Unzip the patch file.
$ unzip p11114547_10205_Linux-x86-64.zip
4- Apply patch with opatch utility.
$ cd 11114547
$ ORACLE_HOME/OPatch/opatch apply
To see list of applied patches :
$ORACLE_HOME/OPatch/opatch lsinventory
For example:
$ORACLE_HOME/OPatch/opatch lsinventory
Invoking OPatch 11.2.0.4.9
Oracle Interim Patch Installer version 11.2.0.4.9
Copyright (c) 2011, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/ora10g
Central Inventory : /oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.4.9
OUI version : 11.2.0.5.0
OUI location : /oracle/ora10g/oui
Log file location : /oracle/ora10g/cfgtoollogs/opatch/opatch2017-09-14_12-13-12PM.log
Patch history file: /oracle/ora10g/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location : /oracle/ora10g/cfgtoollogs/opatch/lsinv/lsinventory2017-09-14_12-13-12PM.log
Installed Top-level Products (3):
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
There are 3 products installed in this Oracle Home.
Interim patches (2) :
Patch 8943287 : applied on Fri Oct 21 20:39:46 EEST 2011
Unique Patch ID: 12722995
Created on 23 Aug 2010, 11:45:16 hrs PST8PDT
Bugs fixed:
8943287
Rollback applied patch:
Sometimes a patch is applied to the system may need to take back because of its effect. In this case, rollback is performed as follows.
$ORACLE_HOME/OPatch/opatch rollback -id 11114547
No comments:
Post a Comment