Oracle 19c | Applying Patch

Much of the times I use latest Oracle technologies for learning & they hardly make to any of the PRODUCTION environments those I support at work. Recently I wanted to see how to patch Oracle 19c installation on Windows and to be frank, it was buttery smooth.

Let us quickly see how to apply a patch to a Windows installation of Oracle 19c database.

Shutdown all instances & Windows services for Oracle. Make sure you have taken adequate number of backups for the database(s).

Check you computer’s PATH variable. Insure you have %ORACLE_HOME%\perl\bin, in my case “D:\Oracle\19c\perl\bin” as the first entry for PERL.

This is how the PATH information before I make the above changes to it.

Here 11g 32Bit client is the first Oracle software in the PATH, we will modify it like below

Once the patching done, you can rollback the PATH variable according to your requirements.

Visit Oracle support and download the patch, the latest patch for Oracle Database 19c is “32409154”. Patch is only available to customers with a valid support contract.

Extract the archive.

I’ve extracted the archive within the Download folder and the path is


Now open an elevated command prompt and switch to the folder with patch number as it’s name. Check the below image for details.

Now we are ready to apply the patch.

Call the opatch utility from here, like given example below.

Microsoft Windows [Version 10.0.19043.985]
(c) Microsoft Corporation. All rights reserved.

C:\Oracle19c_Patch\p32409154_190000_MSWIN-x86-64\32409154>d:\Oracle\19c\OPatch\opatch apply
Oracle Interim Patch Installer version
Copyright (c) 2021, Oracle Corporation.  All rights reserved.

Oracle Home       : d:\Oracle\19c
Central Inventory : C:\Program Files\Oracle\Inventory
   from           :
OPatch version    :
OUI version       :
Log file location : d:\Oracle\19c\cfgtoollogs\opatch\opatch2021-06-23_10-47-41AM_1.log

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

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 = 'd:\Oracle\19c')

Is the local system ready for patching? [y|n]
User Responded with: Y
Backing up files...
Applying interim patch '32409154' to OH 'd:\Oracle\19c'
ApplySession: Optional component(s) [ oracle.assistants.usm, ] , [ oracle.rdbms.ic, ] , [ oracle.rdbms.tg4ifmx, ] , [ oracle.has.deconfig, ] , [ oracle.swd.oui, ] , [ oracle.has.cfs, ] , [ oracle.rdbms.tg4tera, ] , [, ] , [, ] , [ oracle.rdbms.tg4msql, ] , [ oracle.ons.daemon, ] , [ oracle.options.olap.awm, ] , [ oracle.rdbms.tg4db2, ] , [ oracle.assistants.asm, ] , [ oracle.usm, ] , [ oracle.swd.oui.core.min, ] , [, ] , [ oracle.options.olap, ] , [, ] , [ oracle.tfa, ] , [ oracle.has.cvu, ] , [ oracle.rdbms.tg4sybs, ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.sdo,

Patching component oracle.rdbms.rman,

Patching component oracle.aspnet_2,

Patching component oracle.dbjava.ic,

Patching component oracle.ons,

Patching component oracle.ntoramts,

Patching component oracle.rdbms.dbscripts,

Patching component oracle.nlsrtl.rsf,

Patching component,

Patching component oracle.rdbms,

Patching component oracle.blaslapack,

Patching component oracle.rdbms.oci,

Patching component oracle.assistants.acf,

Patching component oracle.duma,

Patching component oracle.sdo.locator.jrf,

Patching component oracle.tfa.db,

Patching component,

Patching component oracle.ctx.atg,

Patching component oracle.xdk.rsf,

Patching component oracle.precomp.common,

Patching component oracle.dbjava.jdbc,

Patching component oracle.rdbms.hsodbc,

Patching component oracle.sqlplus.ic,

Patching component oracle.oracore.rsf,

Patching component oracle.rsf,

Patching component oracle.precomp.common.core,

Patching component,

Patching component oracle.precomp.lang,

Patching component oracle.install.deinstalltool,

Patching component oracle.ctx,

Patching component oracle.dbjava.ucp,

Patching component oracle.javavm.client,

Patching component,

Patching component oracle.ntoledb.odp_net_2,

Patching component oracle.rdbms.util,

Patching component oracle.rdbms.lbac,

Patching component oracle.usm.deconfig,

Patching component oracle.assistants.server,

Patching component oracle.rdbms.deconfig,

Patching component oracle.ntoledb,

Patching component oracle.has.common,

Patching component oracle.assistants.deconfig,

Patching component oracle.ldap.rsf,

Patching component oracle.ovm,

Patching component oracle.has.db,

Patching component oracle.rdbms.plsql,

Patching component oracle.precomp.rsf,

Patching component oracle.xdk.xquery,

Patching component oracle.javavm.server,

Patching component oracle.xdk,

Patching component oracle.dbdev,

Patching component oracle.sdo.locator,

Patching component oracle.rdbms.install.plugins,

Patching component oracle.rdbms.olap,

Patching component oracle.rdbms.scheduler,

Patching component oracle.rdbms.rsf.ic,

Patching component oracle.ldap.owm,

Patching component oracle.rdbms.rsf,

Patching component oracle.mgw.common,

Patching component,

Patching component oracle.oraolap,

Patching component oracle.clrintg.ode_net_2,

Patching component oracle.rdbms.dv,

Patching component oracle.has.rsf,

Patching component oracle.odbc.ic,

Patching component oracle.sqlplus,

Patching component oracle.has.common.cvu,
Patch 32409154 successfully applied.
Log file location: d:\Oracle\19c\cfgtoollogs\opatch\opatch2021-06-23_10-47-41AM_1.log

OPatch succeeded.

As usual, based on your computer’s hardware capabilities, the patch would finish sooner or later. There will be 2 prompts those you need to say Yes in order to progress the patching.

Simple & neat right? Share your experience in the comments area.

Install Oracle Database 19c on Windows 10

This time let us see how to install Oracle database 19c on Windows 10. This installation is not much different from Oracle 18c installation.

You can download the 19c Installation media for Windows from the below link.

Database Software Downloads | Oracle

Once downloaded, you have to extract the package to a folder. Please note, the extracted folder or the folder from which you will execute “Setup.exe” is going to be 19c Oracle Home. So, name the folder wisely. For example, I have extracted the files to a folder D:\Oracle\19c

You can start the installation by right clicking the Setup.exe and running as “Administrator”.

This will kick start the installation.

We will not create a database along with the software installation. Hence select “Set Up Software Only”

I suggest you to create a normal user (no administrator privileges) “oracle”, that will be used for all your future Oracle software installations. If you don’t have an account explicitly created yet for Oracle, the installation gives you an interface to create one. It’s your choice.

Please remember, earlier I said, the folder where you have extracted the installation media is going to be Oracle 19c home, aka Oracle Home. Rename the folder with an appropriate name before going ahead with the installation.

You will be asked to provide a location for Oracle Base. To content within the Oracle Home, you can specify a path like “D:\Oracle\19c\database” or “D:\Oracle\19c\db” or a folder name of your choice.

After few basic checks, the installation will proceed now. I strongly suggest you to assign a STATIC IP for your computer, prior continuing.

That’s it. No hacks, no modifications to config files or anything such to get the software installed on Windows!.

You can use “Database Configuration Assistant” for creating new database. We will see how to create a new database now. This time we will be creating a CDB (Container Database) and one PDB (Pluggable Database). You may go ahead with creating a single instance database when asked to choose between.

Select “Advanced Configuration”

You can choose between a normal database or Container database with PDB at next step. If you don’t wish to create the database as a container, uncheck the option “Create as Container database”. If you chose to continue with creating your database as container, I suggest you to leave the defaults as it is, other than the PDB name. If you need more PDBs, may add later to the container.

Leave the defaults, unless you know what you are doing.

If you are setting up the database for the LAB/Learning purposes, you may ignore these. However, for production instances, you must configure the Recovery area & setup archiving.

You can create a LISTENER for your database now. If you other Oracle database LISTENERs already running, choose a port number that wouldn’t raise a conflict.

Optionally you can setup Database Vault & Label Security at this step ;)

Okay, we need your attention here. Oracle automatically allocates 40% of total available physical memory for the newly created database. As I mentioned in the previous step, if you have more than one database running from the same computer, you must adjust the available memory to avoid choking the resources.

You may leave the defaults untouched here & you can change this value as sys admin when needed.

WebLogic Repos insist upon “AL32UTF8” Character Set & unless you have specific reasons to change the Character set, leave the defaults. If you are planning to migrate a legacy application that uses a different character set like Arabic (AR8MSWIN1256), please read this post

As per the post, you can use a different character set for a PDB starting from Oracle database versions 12.2.

We do love Scott bit too much, if yes, go with sample schemas (Trust me, you need it)

Enterprise Manager configuration is totally optional. If you choose to, will install an Express edition of Oracle Enterprise Manager (means more resources)

As usual, for a LAB environment I will go with same password for all accounts.

I would suggest you to accept the defaults at next step & change the passwords and unlock accounts as and when needed.

That should complete the installation and creation of database for 19c. Have comments? Please post them to me.