Document 1064804.1
Apply Grid Infrastructure/CRS Patch in Mixed Version RAC Database Environment (Doc ID
1064804.1)
Modified: 07-Aug-2013
Type: HOWTO
In this Document
Goal
Solution
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.2.0.4 [Release 9.2 to 11.2]
Information in this document applies to any platform.
GOAL
This document provides manual steps to apply GI/CRS patch in mixed Oracle Clusterware (GI or CRS) and RAC
environment.
Refer to note 1474914.1 to find out which patch needs to be applied to which home.
SOLUTION
In this document, we'll provide two examples of of applying patch in mixed Grid Infrastructure and RAC environment.
Case 1: Apply GI/CRS patch to pre-11.2 DB home in mixed environment (11gR2 GI + pre-11.2 DB):
Example given below is to apply 11.1.0.7 CRS PSU2 to 11.1.0.7 DB home. To apply patch 9207257 to 11.1.0.7
database home, you will need to execute steps that only applies to database home:
# 1. Verify that the Oracle Inventory is properly configured.
#
# % opatch lsinventory -detail -oh <RDBMS_HOME>
#
###########################################################################
#
# 2. Unzip the PSE container file
#
# Refer to patch readme
#
###########################################################################
#
# 3.1 In configuration A, shut down all resources thats running off database home on
#
all nodes. Note that these steps must be run in the order specified.
#
#
3.1.1 To shutdown RDBMS on all nodes, run the following command:
#
#
% $ORACLE_HOME/bin/srvctl stop database -d dbname
#
#
3.1.2 To shutdown ASM instances on all nodes, run the following command
#
Execute only if ASM is running off database home - unusually in Grid Infrastructure.
#
#
% $ORACLE_HOME/bin/srvctl stop asm -n <node_name>
#
#
3.1.3 To shutdown listeners run the following command on each node:
#
Execute only if listener is running off database home - unusually in Grid Infrastructure.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=q1iylk9uz_172&id=1064804.1
1/4
12/20/2013
Document 1064804.1
#
Execute only if listener is running off database home - unusually in Grid Infrastructure.
#
#
% $ORACLE_HOME/bin/srvctl stop listener -l <listener_name> -n <node_name>
#
# 3.2 In configuration B, shut down all resources thats running off database home on local node
#
#
3.2.1 To shutdown RDBMS instance on the local node run the following command:
#
#
% $ORACLE_HOME/bin/srvctl stop instance -d dbname -i instance_name
#
#
Then run commands (3.1.2) through (3.1.3) mentioned above.
#
###########################################################################
#
# 4. Prior to applying this part of the fix, you must invoke this script as root to unlock protected files.
#
# Skip this step
#
###########################################################################
#
# 5. Invoke prepatch.sh:
#
# As the RDBMS software owner;
# % custom/server/9207257/custom/scripts/prepatch.sh -dbhome <RDBMS_HOME>
#
# Note: In configuration A, invoke this only on one node.
###########################################################################
#
# 6. Patch the Files
#
# 6.2 Patch the RDBMS home files.
#
# As the RDBMS software owner, from the directory where the patch was unzipped;
#
# % opatch napply custom/server/ -local -oh <RDBMS_HOME> -id 9207257
#
# Note: In configuration A, invoke this only on one node.
#
###########################################################################
#
# 7. Configure the HOME
#
# 7.2 Configure the RDBMS HOME
#
# As the RDBMS software owner execute the following;
#
# % custom/server/9207257/custom/scripts/postpatch.sh -dbhome <RDBMS_HOME>
#
# Note: In configuration A, invoke this only on one node.
#
###########################################################################
#
# 8. Now security settings need to be restored on the CRS Home. This script
# will also restart the CRS daemons. Invoke this script as root.
#
# Skip this step
#
###########################################################################
#
# 9. On success you can determine whether the patch has been installed by
# using the following command;
#
# % opatch lsinventory -detail -oh <RDBMS_HOME>
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=q1iylk9uz_172&id=1064804.1
2/4
12/20/2013
Document 1064804.1
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=q1iylk9uz_172&id=1064804.1
3/4
12/20/2013
Document 1064804.1
REFERENCES
NOTE:1339140.1 - FAQ: OPatch/Patch Questions/Issues for Oracle Clusterware (Grid Infrastructure or CRS) and RAC
Environments
NOTE:948456.1 - Pre 11.2 Database Issues in 11gR2 Grid Infrastructure Environment
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=q1iylk9uz_172&id=1064804.1
4/4