1.以前在IDC机房没打成功的原因是现场环境太过浮躁,没有细心看README文档,导致使用了错误的命令,不过正确的命令确实不太好找,快到了文档的最后的CASE 5才能找到。
Case 5: Patching a Software Only GI Home Installation or Before the GI Home Is Configured
Apply the CRS patch using.
As the GI home owner execute:
$ /OPatch/opatch napply -oh -local /17475946
2.打这个补丁之前需要作以下的修改:
(1)确认GI_HOME目录的属主,本人的测试环境中/app/grid/product/11.2.0/grid目录的属主是root:oinstll,所以需要将属主先修改为grid:oinstall。
(2)GI_HOME/lib,GI_HOME/bin目录下存在属主是root:oinstall的文件,需要将此类文件的属主先修改为grid:oinstall。
3.应用补丁的过程:
grid@linux11sp3:/app/grid/product/11.2.0/grid/lib> $ORACLE_HOME/OPatch/opatch napply -oh $ORACLE_HOME -local /oraclesoft/17475946
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /app/grid/product/11.2.0/grid
Central Inventory : /app/oraInventory
from : /app/grid/product/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.4.0
Log file location : /app/grid/product/11.2.0/grid/cfgtoollogs/opatch/opatch2014-12-16_12-53-34PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 17475946
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/app/grid/product/11.2.0/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '17475946' to OH '/app/grid/product/11.2.0/grid'