By Mouhamadou Diaw

RU, MRP should be applied to database home as soon as possible. Usually we often nstall the base version and after install the RU on top on the base version

For example we want to have the version21.8

We usually

-Install  the

– And then apply the RU 21.8  34527084

But another method is to apply the RU during the installation of the Oracle software. Indeed, the runInstaller command has an option -applyRU that allows to do so

[oracle@oraadserver 21.3.0]$ /u01/app/oracle/product/21.3.0/dbhome_8/runInstaller -help | grep applyRU
        -applyRU - apply release update to the Oracle home.
[oracle@oraadserver 21.3.0]$

In this blog I am showing how we can use this option to directly install an Oracle 21.8

First download following files : base version : RU 21.8

As you may already know RU requests a minimum version of OPatch. You can have this information in the Readme of the RU

Then also download the latest OPatch

Below my files

oracle@oraadserver:/home/oracle/ [rdbms21c] ls -ltra *.zip
-rw-r--r--. 1 oracle oinstall 3109225519 Feb 10 18:39
-rw-r--r--. 1 oracle oinstall 1155081421 Feb 17 15:49
-rw-r--r--. 1 oracle oinstall  124347218 Feb 17 16:04
oracle@oraadserver:/home/oracle/ [rdbms21c]

The first step is to unpack the base version in your new Oracle Home

oracle@oraadserver:/home/oracle/ [rdbms21c] unzip -q -d /u01/app/oracle/product/21.3.0/dbhome_8

As specified earlier, you have to update your OPatch version. Just unpack the OPatch zip file in your new Oracle_home

oracle@oraadserver:/u01/app/oracle/product/21.3.0/dbhome_8/ [rdbms21c] pwd
oracle@oraadserver:/u01/app/oracle/product/21.3.0/dbhome_8/ [rdbms21c] mv OPatch/ OPatch.old
oracle@oraadserver:/u01/app/oracle/product/21.3.0/dbhome_8/ [rdbms21c] unzip -q -d . /home/oracle/

Validate the version of your OPatch

oracle@oraadserver:/home/oracle/ [rdbms21c] /u01/app/oracle/product/21.3.0/dbhome_8/OPatch/opatch version
OPatch Version:

OPatch succeeded.
oracle@oraadserver:/home/oracle/ [rdbms21c]

Unpack the RU zip file

oracle@oraadserver:/home/oracle/ [rdbms21c] unzip -q -d 218RU/

Then run following runInstaller command with the applyRU option

[oracle@oraadserver 21.3.0]$ /u01/app/oracle/product/21.3.0/dbhome_8/runInstaller -silent -applyRU /home/oracle/218RU/34527084/ -responseFile /home/oracle/db_21c.rsp
Preparing the home to patch...
Applying the patch /home/oracle/218RU/34527084/...
Successfully applied the patch.
The log can be found at: /u01/app/oraInventory/logs/InstallActions2023-02-18_08-45-01AM/installerPatchActions_2023-02-18_08-45-01AM.log
Launching Oracle Database Setup Wizard...

[WARNING] [INS-13014] Target environment does not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/InstallActions2023-02-18_08-45-01AM/installActions2023-02-18_08-45-01AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/InstallActions2023-02-18_08-45-01AM/installActions2023-02-18_08-45-01AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:

You can find the log of this install session at:

As a root user, execute the following script(s):
        1. /u01/app/oracle/product/21.3.0/dbhome_8/

Execute /u01/app/oracle/product/21.3.0/dbhome_8/ on the following nodes:

Successfully Setup Software with warning(s).
[oracle@oraadserver 21.3.0]$

As requested run the command

[root@oraadserver ~]# /u01/app/oracle/product/21.3.0/dbhome_8/
Check /u01/app/oracle/product/21.3.0/dbhome_8/install/root_oraadserver_2023-02-18_08-48-23-730223661.log for the output of root script
[root@oraadserver ~]#

The opatch command returns the level of RU on the new Oracle_Home 21.8

[oracle@oraadserver 21.3.0]$ /u01/app/oracle/product/21.3.0/dbhome_8/OPatch/opatch lspatches
34527084;Database Release Update : (34527084)

OPatch succeeded.
[oracle@oraadserver 21.3.0]$

Let’s create a database and let’s validate that the RU 21.8 has been applied.

[oracle@oraadserver ~]$ /u01/app/oracle/product/21.3.0/dbhome_8/bin/dbca -silent -createDatabase -responseFile /home/oracle/dbca_21c.rsp

Let’s create a database and let’s validate that the RU 21.8 has been applied.

SQL> select PATCH_ID,DESCRIPTION,STATUS from dba_registry_sqlpatch;

  PATCH_ID DESCRIPTION                                          STATUS
---------- ---------------------------------------------------- --------
  34527084 Database Release Update : (34527084) SUCCESS



Hope this blog helps. Note that you also can use the graphical tool instead of a response file.