How to Apply Release Update (Patch 32507738 – April 2021 RU)

Oracle recently released its April 2021 Release Update for 12cR2 (Patch 32507738). This post is to cover patching of Oracle 12cR2 database with this latest RU. (For 19.11 RU please read How to Apply Release Update (Patch 32545013)). 

Step-1: Install Latest OPatch

First Step of Any Patching Process is to download and install the latest version of OPatch. You can follow How to Upgrade OPatch to Latest Version post to quickly upgrade OPatch to latest version.

Step 2: Download Patch 32545013 from Metalink.

From Metalink ( Download “Patch 32507738: DATABASE APR 2021 RELEASE UPDATE” relevant to your platform. 
oracle> opatch version
OPatch Version:

OPatch succeeded.

Step 3: Check for Patch Conflict

The move the zip file downloaded in Step 2 above to a directory where Oracle has relevant read/write permission and then unzip the file which would create a folder named 32507738. Navigate to this directory and call OPatch in prereq mode:

oracle> opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version
Copyright (c) 2021, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /apps/oracle/server/
Central Inventory : /apps/oracle/server/
   from           : /apps/oracle/server/
OPatch version    :
OUI version       :
Log file location : /apps/oracle/server/

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.

If the pre-requisite check is passed you can proceed further with applying the patch but in case it fails please take necessary actions until the pre-requisite check is passed.

Step-4: Shutdown Database

To minimize the downtime you can shutdown the database after invoking opatch apply but just to explicitly specify, I have created an additional step for this.

Once the database running from the Oracle Home that we are going to patch is shutdown, proceed further with next step.

Step-5: Apply OPatch

Navigate to the folder 32507738 and invoke the OPatch with apply mode.

oracle> $ORACLE_HOME/OPatch/opatch apply
oracle> opatch apply
Oracle Interim Patch Installer version
Copyright (c) 2021, Oracle Corporation.  All rights reserved.

Oracle Home       : /apps/oracle/server/
Central Inventory : /apps/oracle/server/
   from           : /apps/oracle/server/
OPatch version    :
OUI version       :
Log file location : /apps/oracle/server/

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   32507738

Do you want to proceed? [y|n]
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/apps/oracle/server/')

Is the local system ready for patching? [y|n]
User Responded with: Y
Backing up files...
Applying interim patch '32507738' to OH '/apps/oracle/server/'
ApplySession: Optional component(s) [ oracle.swd, ] , [ oracle.swd.opatchautodb, ] , [ oracle.swd.oui, ] , [ oracle.ons.cclient, ] , [ oracle.ons.eons.bwcompat, ] , [, ] , [ oracle.oid.client, ] , [ oracle.rdbms.drdaas, ] , [ oracle.ons.daemon, ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.rdbms.util,

Patching component oracle.rdbms,

Patching component,

Patching component oracle.rdbms.rsf,

Patching component oracle.ctx,

Patching component oracle.ctx.rsf,

Patching component oracle.dbdev,

Patching component oracle.dbtoolslistener,

Patching component oracle.duma,

Patching component oracle.has.common.cvu,

Patching component oracle.ldap.owm,

Patching component oracle.ldap.rsf,

Patching component oracle.nlsrtl.rsf,

Patching component oracle.oracore.rsf,

Patching component oracle.oraolap,

Patching component oracle.rdbms.dbscripts,

Patching component oracle.rdbms.deconfig,

Patching component oracle.rdbms.rsf.ic,

Patching component oracle.sdo,

Patching component oracle.sdo.locator,

Patching component oracle.sdo.locator.jrf,

Patching component oracle.tfa,

Patching component oracle.rdbms.dv,

Patching component oracle.assistants.acf,

Patching component,

Patching component oracle.assistants.deconfig,

Patching component oracle.xdk.rsf,

Patching component oracle.ons,

Patching component oracle.ons.ic,

Patching component oracle.rdbms.lbac,

Patching component oracle.xdk,

Patching component oracle.precomp.rsf,

Patching component,

Patching component oracle.install.deinstalltool,

Patching component oracle.sqlplus.ic,

Patching component oracle.ldap.rsf.ic,

Patching component oracle.rdbms.oci,

Patching component oracle.rdbms.install.plugins,

Patching component oracle.ldap.client,

Patching component oracle.sqlplus,

Patching component oracle.assistants.server,

Patching component oracle.rdbms.rman,

Patching component oracle.precomp.lang,

Patching component oracle.precomp.common,

Patching component oracle.jdk,
Patch 32507738 successfully applied.
Log file location: /apps/oracle/server/

OPatch succeeded.

Step-6: Start the Database

Start the database that you stopped during Step-5. Once the Database is started along with all the PDBs, proceed further with the next step of applying datapatch.

Step-7: Apply Datapatch (SQL Patching Tool)

oracle> $ORACLE_HOME/OPatch/datapatch -verbose
SQL Patching tool version Production on Sat Apr 24 19:36:35 2021
Copyright (c) 2012, 2021, Oracle.  All rights reserved.

Log file for this invocation: /apps/oracle/server/

Connecting to database...OK
Note:  Datapatch will only apply or rollback SQL fixes for PDBs
       that are in an open state, no patches will be applied to closed PDBs.
       Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
       (Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done

Current state of SQL patches:
Bundle series DBRU:
  ID 210420 in the binary registry and not installed in any PDB

Adding patches to installation queue and performing prereq checks...
Installation queue:
  For the following PDBs: CDB$ROOT PDB$SEED PDB112
    Nothing to roll back
    The following patches will be applied:
      32507738 (DATABASE APR 2021 RELEASE UPDATE

Installing patches...
Patch installation complete.  Total patches installed: 3

Validating logfiles...
Patch 32507738 apply (pdb CDB$ROOT): SUCCESS
  logfile: /apps/oracle/server/ (no errors)
Patch 32507738 apply (pdb PDB$SEED): SUCCESS
  logfile: /apps/oracle/server/ (no errors)
Patch 32507738 apply (pdb PDB112): SUCCESS
  logfile: /apps/oracle/server/ (no errors)
SQL Patching tool complete on Sat Apr 24 19:46:11 2021

That’s it the database has been patched.

Check for any invalid objects post this patching exercise and if needed repair the invalid objects using utlrp.sql

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.