oracle 11.2.0.4 apply patch 17475946

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'


Patching component oracle.usm, 11.2.0.4.0...


Verifying the update...
Patch 17475946 successfully applied.
Log file location: /app/grid/product/11.2.0/grid/cfgtoollogs/opatch/opatch2014-12-16_12-53-34PM_1.log


OPatch succeeded.
grid@linux11sp3:/app/grid/product/11.2.0/grid/lib> 

4.deconfig crs要不然会提示配置了2个CRS

linux11sp3:/app/grid/product/11.2.0/grid/crs/install # ./rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: ./crsconfig_params
Usage: srvctl []
    commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade
    objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
  srvctl -h or
  srvctl -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
CRS-2613: Could not find resource 'ora.registry.acfs'.
CRS-4000: Command Stop failed, or completed with errors.
CRS-2613: Could not find resource 'ora.drivers.acfs'.
CRS-4000: Command Modify failed, or completed with errors.
CRS-2613: Could not find resource 'ora.drivers.acfs'.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4013: This command is not supported in a single-node configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware          #
################################################################
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node


5.再次执行GI_HOME/root.sh
linux11sp3:/app/grid/product/11.2.0/grid # ./root.sh
Performing root user operation for Oracle 11g 


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /app/grid/product/11.2.0/grid


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.


Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /app/grid/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE 
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE 
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node linux11sp3 successfully pinned.
Adding Clusterware entries to inittab


linux11sp3     2014/12/16 13:11:04     /app/grid/product/11.2.0/grid/cdata/linux11sp3/backup_20141216_131104.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
linux11sp3:/app/grid/product/11.2.0/grid # 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/280958/viewspace-1369424/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/280958/viewspace-1369424/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值