- Grid Infrastructure Installation and Upgrade Guide
- Upgrading Oracle Grid Infrastructure
- Applying Patches to Oracle Grid Infrastructure
- Patching and Switching Oracle Grid Infrastructure Homes
Patching and Switching Oracle Grid Infrastructure Homes
Perform an out-of-place Oracle Restart patching by switching from the current Oracle Grid Infrastructure home to a patched Oracle Grid Infrastructure home.
- Download the 19.3 Oracle Grid Infrastructure base release image files.
- As the
griduser, extract the downloaded image files into a new Oracle Grid Infrastructure home directory.$ mkdir -p /u01/app/oracle/product/19.17.0/grid $ chown grid:oinstall /u01/app/oracle/product/19.17.0/grid $ cd /u01/app/oracle/product/19.17.0/grid $ unzip -q download_location/grid.zipHere:/u01/app/oracle/product/19.17.0/gridis the new Grid home./u01/app/oracle/product/19.16.0/gridis the old Grid home.
- As the
griduser, download and install the latest version of the OPatch utility in the new Grid home.https://updates.oracle.com/download/6880880.html
$ mv /u01/app/oracle/product/19.17.0/grid/OPatch /u01/app/oracle/product/19.17.0/grid/bak_OPatch $ unzip latest_Opatch.zip -d /u01/app/oracle/product/19.17.0/grid/ - Download the Oracle Database RU version that you want to apply from My Oracle Support. In this example, Oracle Database 19.17 RU.For more information, see, Downloading Release Update Patches
- Start the Oracle Grid Infrastructure installer to perform a software-only Oracle Restart installation. You can apply the optional
-applyRUor-applyOneOffflags to apply Release Updates (RUs) during the installation.$ /u01/app/oracle/product/19.17.0/grid/gridSetup.sh [-applyRU patch_directory_location] [-applyOneOffs comma_separated_list_of_patch_directory_locations] - Follow the steps in the configuration wizard to complete the Oracle Grid Infrastructure installation.
- As the
rootuser, run the following command to prepare the new home for the out-of-place patching:# /u01/app/oracle/product/19.17.0/grid/crs/install/roothas.sh -prepatch -dstcrshome /u01/app/oracle/product/19.17.0/gridThis command does not shut down any services. - Run the following command to switch to the new Oracle Grid Infrastructure home and perform the out of place patching:
# /u01/app/oracle/product/19.17.0/grid/crs/install/roothas.sh -postpatch -dstcrshome /u01/app/oracle/product/19.17.0/gridThis command shuts down the old Oracle Grid Infrastructure home and starts resources from the new Oracle Grid Infrastructure home. All Oracle Grid Infrastructure services start running from the new Grid home. - Update the Oracle central inventory (oraInventory).
$ /u01/app/oracle/product/19.17.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/oracle/product/19.17.0/grid CRS=TRUE $ /u01/app/oracle/product/19.16.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/oracle/product/19.16.0/grid CRS=FALSE - If the patching fails, then perform the following steps to rollback the patch:
- As the
rootuser, run theprepatchscript.#/u01/app/19.17.0/grid/crs/install/rootcrs.sh-prepatch -dstcrshome Old_GI_Home -rollback - As the
rootuser, run thepostpatchscript.#/u01/app/19.17.0/grid/crs/install/rootcrs.sh-postpatch -dstcrshome Old_GI_Home -rollback
- As the
- If you have successfully switched to the new Grid home on all nodes and want to switch back to the old Grid home, then perform the following steps:
- As the
rootuser, run theprepatchscript.# Old_GI_Home/crs/install/rootcrs.sh-prepatch -dstcrshome Old_GI_Home - As the
griduser, run thepostpatchscript.# Old_GI_Home/crs/install/rootcrs.sh-postpatch -dstcrshome Old_GI_Home - Update the Oracle central inventory (oraInventory).
$ /u01/app/oracle/product/19.16.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/oracle/product/19.16.0/grid CRS=TRUE $ /u01/app/oracle/product/19.17.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=/u01/app/oracle/product/19.17.0/grid CRS=FALSE
- As the
Parent topic: Applying Patches to Oracle Grid Infrastructure