Steps for Applying the Patch
Note: You must stop the EM agent processes running from the database home, prior to patching the Oracle RAC database or GI Home. Execute the following command on the node to be patched.As the Oracle RAC database home owner execute: |
Execute the following on each node of the cluster in non-shared CRS and DB home environment to apply the patch.
If this is a GI Home environment, as the database home owner execute:
$ /bin/srvctl stop home -o -s -n
If this is an Oracle Restart Home environment, as the database home owner execute:
$ /bin/srvctl stop home -o -s
Note: You need to make sure that the Oracle ACFS file systems are unmounted (see My Oracle Support document 1494652.1 How to Mount or Unmount ACFS File System While Applying GI Patches?) and all other Oracle processes are shutdown before you proceed. |
If this is a GI Home, as the root user execute: (不执行打补丁,一些文件无法覆盖,无权限)
# /crs/install/rootcrs.pl -unlock
If this is an Oracle Restart Home, as the root user execute:
# /crs/install/roothas.pl -unlock
As the GI home owner execute:
$ /OPatch/opatch napply -oh -local //
As the GI home owner execute:
$ /OPatch/opatch napply -oh -local //
As the GI home owner execute:
$ /OPatch/opatch apply -oh -local //
As the database home owner execute:
$ ///custom/server//custom/scripts/prepatch.sh -dbhome
As the database home owner execute (Generate response file, if needed, using the emocmrsp and specify using -ocmrf option):
$ /OPatch/opatch napply -oh -local ///custom/server/
$ /OPatch/opatch apply -oh -local //
As the database home owner execute:
$ ///custom/server//custom/scripts/postpatch.sh -dbhome
As the root user execute:
# /rdbms/install/rootadd_rdbms.sh
If this is a GI Home, as the root user execute:
# /crs/install/rootcrs.pl -patch
If this is an Oracle Restart Home, as the root user execute:
# /crs/install/roothas.pl -patch
If this is a GI Home environment, as the database home owner execute:
$ /bin/srvctl start home -o -s -n
If this is an Oracle Restart Home environment, as the database home owner execute:
$ /bin/srvctl start home -o -s
Execute the following on each node of the cluster in non-shared CRS and DB home environment to rollback the patch.
If this is a GI Home environment, as the database home owner execute:
$ /bin/srvctl stop home -o -s -n
If this is an Oracle Restart Home environment, as the database home owner execute:
$ /bin/srvctl stop home -o -s
Note: You need to make sure that the Oracle ACFS file systems are unmounted (see My Oracle Support document 1494652.1 How to Mount or Unmount ACFS File System While Applying GI Patches?) and all other Oracle processes are shut down before you proceed. |
If this is a GI Home, as the root user execute:
# /crs/install/rootcrs.pl -unlock
If this is an Oracle Restart Home, as the root user execute:
# /crs/install/roothas.pl -unlock
As the GI home owner execute:
$ /OPatch/opatch rollback -local -id -oh
$ /OPatch/opatch rollback -local -id -oh
$ /OPatch/opatch rollback -local -id -oh
As the database home owner execute:
$ ///custom/server//custom/scripts/prepatch.sh -dbhome
As the database home owner execute:
$ /OPatch/opatch rollback -local -id -oh
$ /OPatch/opatch rollback -local -id -oh
As the database home owner execute:
$ ///custom/server//custom/scripts/postpatch.sh -dbhome
As the root user execute:
# /rdbms/install/rootadd_rdbms.sh
If this is a GI Home, as the root user execute:
# /crs/install/rootcrs.pl -patch
If this is an Oracle Restart Home, as the root user execute:
# /crs/install/roothas.pl -patch
If this is a GI Home environment, as the database home owner execute:
$ /bin/srvctl start home -o -s -n
If this is an Oracle Restart Home environment, as the database home owner execute:
$ /bin/srvctl start home -o -s
Patching an Oracle RAC Home Installation Manually
Note that USM only patches cannot be applied to a Database home.
Run the pre script for DB component of the patch.
As the database home owner execute:
$ ///custom/server//custom/scripts/prepatch.sh -dbhome
Apply the DB patch.
As the database home owner execute (Generate response file, if needed, using the emocmrsp and specify using -ocmrf option):
$ /OPatch/opatch napply -oh -local ///custom/server/
$ /OPatch/opatch apply -oh -local //
Run the post script for DB component of the patch.
As the database home owner execute:
$ ///custom/server//custom/scripts/postpatch.sh -dbhome
Rolling Back the Patch from an Oracle RAC Home Installation Manually
Run the pre script for DB component of the patch.
As the database home owner execute:
$ ///custom/server//custom/scripts/prepatch.sh -dbhome
Roll back the DB patch from the database home.
As the database home owner execute:
$ /OPatch/opatch rollback -local -id -oh
$ /OPatch/opatch rollback -local -id -oh
Run the post script for DB component of the patch.
As the database home owner execute:
$ ///custom/server//custom/scripts/postpatch.sh -dbhome
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
.
Access to Oracle Support
Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info
or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.
Oracle Grid Infrastructure 11.2.0.4.x Patch Set Update SUPPLEMENTAL README
Copyright � 2006, 2013, Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.