oracle 11.2.0.4 apply patch 17475946

lovestanford發表於2015-10-23
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:
$ <GI_HOME>/OPatch/opatch napply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/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 <command> <object> [<options>]
    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 <command> -h or
  srvctl <command> <object> -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/21754115/viewspace-1815956/,如需轉載,請註明出處,否則將追究法律責任。

相關文章