升級opatch工具

db_wjw發表於2012-11-06
檢查當前opatch版本:
oracle@dbbak[/home/oracle]$ $ORACLE_HOME/OPatch/opatch lsinventory
Invoking OPatch 11.2.0.1.7

Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation.  All rights reserved.


Oracle Home       : /oracle/product/11.2.0/dbhome_1
Central Inventory : /oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 11.2.0.1.7
OUI version       : 11.2.0.3.0
Log file location : /oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2012-11-06_11-14-

37AM.log

Lsinventory Output file location :

/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2012-11-06_11-14-37AM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.3.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.
oracle@dbbak[/home/oracle]$ $ORACLE_HOME/OPatch/opatch version
Invoking OPatch 11.2.0.1.7

OPatch Version: 11.2.0.1.7

OPatch succeeded.

從OMS上下載補丁,opatch補丁號為6880880
升級前先做備份:
oracle@dbbak[/oracle/product/11.2.0/dbhome_1]$ mv OPatch OPatch.bak
上傳補丁及解壓工具到$ORACLE_HOME目錄:
oracle@dbbak[/oracle/product/11.2.0/dbhome_1]$ chmod u+x unzip
oracle@dbbak[/oracle/product/11.2.0/dbhome_1]$ ./unzip p6880880_112000_HPUX-IA64.zip
檢查是否是新版本
oracle@dbbak[/oracle/product/11.2.0/dbhome_1]$ $ORACLE_HOME/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation.  All rights reserved.


Oracle Home       : /oracle/product/11.2.0/dbhome_1
Central Inventory : /oraInventory
   from           : /oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version    : 11.2.0.3.0
OUI version       : 11.2.0.3.0
Log file location : /oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2012-11-06_14-18-

01PM_1.log

Lsinventory Output file location :

/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2012-11-06_14-18-01PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.3.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.

oracle@dbbak[/oracle/product/11.2.0/dbhome_1]$ $ORACLE_HOME/OPatch/opatch version
OPatch Version: 11.2.0.3.0

OPatch succeeded.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26194851/viewspace-748443/,如需轉載,請註明出處,否則將追究法律責任。

相關文章