重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: oracle 11.2.0.4 apply patch 17475946 [打印本页]

作者: 郑全    时间: 2015-8-22 01:28
标题: oracle 11.2.0.4 apply patch 17475946

 

1.文档在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 #






欢迎光临 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2