如何安装/升级Opatch

1.My Oracle Support (MOS), Link:http://support.oracle.com


2. Patches & Updates页签下,Patch Name or Number输入6880880 , 并且选择正确的平台

如何安装/升级Opatch_第1张图片
根据你的的Release版本来下载Opatch

如何安装/升级Opatch_第2张图片

把旧的$ORACLE_HOME/Opatch目录备份,然后把刚下载的文件拷贝到对应的ORACLE_HOME下,并解压。

Example:

$ cd $ORACLE_HOME
(If an OPatch directory already exist then move it)

$ mv Opatch /TEST/OPatch_100057

$cd $ORACLE_HOME

$ unzip p6880880_101000_LINUX64.zip
Archive: p6880880_101000_LINUX64.zip
creating: OPatch/
creating: OPatch/docs/
inflating: OPatch/docs/FAQ
inflating: OPatch/docs/README.txt
inflating: OPatch/docs/Users_Guide.txt
inflating: OPatch/docs/bt1.txt
inflating: OPatch/docs/bt2.txt
inflating: OPatch/docs/tmp
inflating: OPatch/emdpatch.pl
creating: OPatch/jlib/
inflating: OPatch/jlib/opatch.jar
inflating: OPatch/opatch
inflating: OPatch/opatch.bat
inflating: OPatch/opatch.pl

[oracle@kor300949lx1 OPatch]$ opatch version
Invoking OPatch 11.2.0.1.5

OPatch Version: 11.2.0.1.5

OPatch succeeded.

[oracle@kor300949lx1 OPatch]$ opatch apply /u01/app/8264365
Invoking OPatch 11.2.0.1.5

Oracle Interim Patch Installer version 11.2.0.1.5
Copyright (c) 2010, Oracle Corporation. All rights reserved.


Oracle Home : /u01/app/oracle/product/11.1.0/db_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.5
OUI version : 11.2.0.1.0
OUI location : /u01/app/oracle/product/11.1.0/db_1/oui
Log file location : /u01/app/oracle/product/11.1.0/db_1/cfgtoollogs/opatch/opatch2011-05-16_17-18-01PM.log

Patch history file: /u01/app/oracle/product/11.1.0/db_1/cfgtoollogs/opatch/opatch_history.txt




Opatch默认位置

$ORACLE_HOME/OPatch/opatch

[oracle@bej301441 ~]$ which opatch
/u01/oracle/mc3yd213/db/tech_st/11.1.0/OPatch/opatch


查看Opatch版本信息

[oracle@bej301441 OPatch]$ opatch version
Invoking OPatch 11.1.0.6.2

OPatch Version: 11.1.0.6.2

OPatch succeeded.


你可能感兴趣的:(如何安装/升级Opatch)