How To Apply A Rolling Opatch: Rac How To... Fold Patch Installation Instructions Patch Deinstallation Instructions
How To Apply A Rolling Opatch: Rac How To... Fold Patch Installation Instructions Patch Deinstallation Instructions
How To Apply A Rolling Opatch: Rac How To... Fold Patch Installation Instructions Patch Deinstallation Instructions
Fold
Table of Contents
OVERVIEW
PATCH INSTALLATION INSTRUCTIONS
PATCH DEINSTALLATION INSTRUCTIONS
OVERVIEW
An Oracle OPatch for a RAC configuration can take take one of two forms, either as a
Minimum Downtime OPatch or as a Rolling Opatch. The instructions for applying the
former can be found here. Instructions for performing the latter can be found below.
In addition to being informed by Oracle Support, the type of OPatch can be determined by
checking the <Patch No>/etc/config/inventory file. If the the variable
online_rac_installable is set to true then the patch is a rolling patch.
The example output from the various commands has been abridged for readability.
1. Make sure all instances running under the ORACLE_HOME being patched are cleanly
shutdown before installing this patch. Also ensure that the tool used to terminate the
instance(s) has exited cleanly.
2. Ensure that the directory containing the opatch script appears in your $PATH. Execute
which opatch to confirm.
OPatch succeeded.
OPatch succeeded.
The above should list the components and the list of nodes. If the Oracle inventory is
not setup correctly the OPatch utility will fail.
6. Unzip the patch set container file, this will create one or more sub-directories.
% unzip p123456.zip
Archive: p123456.zip
creating: 123456/
...
7. Shut down the RDBMS and ASM instances, listeners and nodeapps followed by CRS
daemons on the local node.
To shutdown RDBMS instance on the local node run the following command:
9. Prior to applying this part of the fix, invoke the unlock script as root to unlock protected
files.
su -
10. Now invoke an additional script as the crs software installer/owner. This script will save
important configuration settings.
Note: Make sure the RDBMS portion is only applied to an RDBMS home that meets
all the pre-requiste versions.
11. After unlocking any protected files and saving configuration settings run opatch as the
Oracle Clusterware (CRS) software owner.
cd <patch directory>/123456
oracle:> opatch apply -local -oh /u01/crs/oracle/product/10/crs
Invoking OPatch 10.2.0.3.0
You selected -local option, hence OPatch will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local
system.
(Oracle Home = '/u01/crs/oracle/product/10/crs')
OPatch succeeded.
You selected -local option, hence OPatch will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local
system.
(Oracle Home = '/u01/app/oracle/product/db10.2.0')
OPatch succeeded.
% <patch directory>/123456/custom/server/123456/custom/scripts/postpatch.sh
-dbhome <RDBMS_HOME>
oracle:> <patch
directory>/123456/custom/server/123456/custom/scripts/postpatch.sh \
> -dbhome /u01/app/oracle/product/db10.2.0
Reading ...
...
Reapplying file permissions on
/u01/app/oracle/product/db10.2.0/lib/libsrvmhas10.so
14. Restore the security settings and restart CRS by running the following as root:
su -
Sourcing /root/.profile-EIS.....
root # cd <patch directory>/123456
root # custom/scripts/postrootpatch.sh -crshome /u01/crs/oracle/product/10/crs
Checking to see if Oracle CRS stack is already up...
Checking to see if Oracle CRS stack is already starting
WARNING: directory '/u01/crs/oracle/product/10' is not owned by root
WARNING: directory '/u01/crs/oracle/product' is not owned by root
WARNING: directory '/u01/crs/oracle' is not owned by root
Startup will be queued to init within 30 seconds.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)