DB and RAC(11.2.0.3 ) Patch Set Update(11.2.0.3.6)(五)
o you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y <<< type Y/Yes >>>
The OCM configuration response file (/u02/unconfig.rsp) was successfully created. <<
Note: we can use this response file for other similar ORACLE_HOME (Single OR GRID infra)
***************************************************************************************************************************************
% $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /u02/config.rsp
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
Password (optional):
The OCM configuration response file (/u02/config.rsp) was successfully created. <<<
Note: we can use this response file for other similar ORACLE_HOME (Single OR GRID infra)
--此时需要连接网络输入MOS账号
While applying CPU
% opatch napply -silent -ocmrf /u02/config.rsp
While applying PSU
% opatch apply -silent -ocmrf /u02/unconfig.rsp
While using opatch auto (for Grid infrastruture)
% opatch auto -silent -ocmrf /u02/config.rsp
2.3 安装前的检查
--确认安装项目
[grid@oradb1 OPatch]$ sh opatch lsinventory -detail -oh /u01/app/11.2.0/grid/
如果有OPatch succeeded. 最后可以安装补丁
--冲突检查
--Grid用户检查
[grid@oradb1 OPatch]$ sh opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ../p16083653/16315641/ -oh /u01/app/11.2.0/grid/
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid//oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.3.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2013-05-24_13-25-23PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
--oracle 用户检查
[oracle@oradb1 OPatch]$ sh opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/app/11.2.0/grid/p16083653/16056266/ -oh /u01/app/oracle/product/11.2.0/dbhome_1/
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/dbhome_1//oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2013-05-24_14-22-14PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
--两个节点分别做
--如果存在EM Agent的情况停止服务
2.4 补丁应用
--为Oracle RAC Database Homes 和GI 一起安装PSU
--如果数据库家目录没有被共享并且ACFS没有被配置过
--root用户执行
# opatch auto -ocmrf
或者分别执行
--更新GI,然后在另一节点上同样执行
# opatch auto -oh -ocmrf
--更行DB,同样在另一节点上执行
--更新之后