Install A Patch With The Opatch Utility in Oracle RAC 19c
Install A Patch With The Opatch Utility in Oracle RAC 19c
• Security fixes
• Bug Fixes
• Adjusted Performance
• Bug fixes reported to Oracle by an actively supported customer
Patching in Oracle RAC is like applying in a Single Instance, but with a few more steps.
When downloading the patch to be applied, it is extremely important to read the Readme available
together in the same download location in Oracle Support, as it has the steps to be followed for the various
Oracle environments such as Single Instance with or without Oracle Restart, RAC, environments with Oracle
Data Guard, among others.
Below I will show in a summarized way how we can install a patch in an Oracle RAC environment with
two nodes in version 19.3.0.0.0 to version 19.21.0.0.0
1- As we can see the Oracle RAC environment is at version 19.3.0.0.00.
2- The necessary files are downloaded from Oracle support, in our case, as we are going to do from
19.3.0.0.0 to 19.21.0.0.0, we will download Patch p35642822_190000_Linux-x86-64 (19.21) and
p6880880_190000_Linux-x86-64 (OPatch version 12.2.0.1.45)
3- First check the version of our OPatch.
4- In the readme of Oracle Support informs that for the application of this patch the Opatch must be in
version 12.2.0.1.37 or higher, so we will have to update it.
6- The file p6880880_190000_Linux-x86-64.zip in /home/grid is unzipped from all RAC nodes with the root
user. A folder called OPatch will be generated as shown in the image below.
7- Em $GRID_HOME (/u01/app/19.3.0/grid) we rename the folder OPatch current for OPatch_old and
copy folder OPatch in /home/grid for $GRID_HOME (/u01/app/19.3.0/grid).
8- It turns out that OPatch is now at version 12.2.0.1.45.
10- We do the same process as the previous 2 steps for the oracle user, renaming the OPatch folder in
$ORACLE_HOME (/u01/app/oracle/product/19.3.0/db_1/), copying the OPatch folder from
/home/grid to $ORACLE_HOME and making the oracle user the owner of this folder.
11- Now, unzip the patch file p35642822_190000_Linux-x86-64.zip in /home/grid on all nodes.
12- The folder with the patch number will be generated, in case 35642822.
13- The patch_list_gihome.txt file is created in /tmp as directed in the installation readme with the
content below on all nodes.
/home/grid/35642822/35643107
/home/grid/35642822/35655527
/home/grid/35642822/35652062
/home/grid/35642822/35553096
/home/grid/35642822/33575402
14- A check is performed, where it will be analyzed if there is enough space for the patch to be executed
successfully.
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
15- With the root user we will export the path of our GRID_HOME on both nodes.
16- Now the analysis is executed, where it will not apply the patch, just do some validations to verify that
the environment is ready to receive the update, accessing the $GRID_HOME/OPatch folder and
executing the command as shown in the images below.
17- Now let's stop the Database, with the oracle user, to perform the Patch on GRID
18- With the root user and the update is performed, first on node 1 and then on node 2. This process can
be a bit time-consuming depending on the capabilities of your Environment.
19- Once finalized, it is verified that the Grid Infrastructure is at version 19.21.0.0.0 as desired on both
nodes.
20- After the Grid Infrastructure is updated, the Database Patch update process takes place.
21- With the oracle user, the patch_list_dbhome.txt check file is created and the content below is added.
/home/oracle/35642822/35643107
/home/oracle/35642822/35655527
22- With the root user we copied the uncompressed folder from the Patch previously for Grid
Infrastructure update to the oracle user's home on both nodes.
23- Changes the owner of the Folder to the oracle user on both nodes
With this, we have successfully completed the patching of Oracle RAC 19c using the OPatch utility.