Skip to content

How to Install Oracle Database 21c on Windows

For Oracle database 19c installation on Windows, you may go for it.

Extract Oracle DB Home 21.3 Image

Since release 18c, all database software installation packages has become image-based to save installation time, so we start the procedure from uncompressing DB home 21c image to ORACLE_HOME.

Extract Oracle DB Home Image - 01
Extract Oracle DB Home Image - 01

You don't need to create the directory of ORACLE_HOME in advance, it will be created if there's no such directory.

Extract Oracle DB Home Image - 02
Extract Oracle DB Home Image - 02

In this case, ORACLE_HOME is:

C:\app\oracle\product\21.3.0\dbhome_1

As a result, all files are extracted to ORACLE_HOME.

Extract Oracle DB Home Image - 03
Extract Oracle DB Home Image - 03

To know if the server meets the requirements of Oracle product or not, we may perform a prerequisite check before installation.

Install Oracle Software 21.3

After the image has been extracted, you can click on "Setup.exe", or run it in CMD command line.

C:\Users\Administrator>cd C:\app\oracle\product\21.3.0\dbhome_1

C:\app\oracle\product\21.3.0\dbhome_1>setup.exe
Launching Oracle Database Setup Wizard...
Oracle Software 21.3 Installation on Windows - 01
Oracle Software 21.3 Installation on Windows - 01
Oracle Software 21.3 Installation on Windows - 02
Oracle Software 21.3 Installation on Windows - 02
Oracle Software 21.3 Installation on Windows - 03
Oracle Software 21.3 Installation on Windows - 03
Oracle Software 21.3 Installation on Windows - 04
Oracle Software 21.3 Installation on Windows - 04
Oracle Software 21.3 Installation on Windows - 05
Oracle Software 21.3 Installation on Windows - 05
Oracle Software 21.3 Installation on Windows - 06
Oracle Software 21.3 Installation on Windows - 06
Oracle Software 21.3 Installation on Windows - 07
Oracle Software 21.3 Installation on Windows - 07
Oracle Software 21.3 Installation on Windows - 08
Oracle Software 21.3 Installation on Windows - 08
Oracle Software 21.3 Installation on Windows - 09
Oracle Software 21.3 Installation on Windows - 09

Let's see what Oracle registries we have so far.

First of all, open registry editor, then navigate to the path:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDB21Home1
Oracle Database 21c Software Registries on Windows
Oracle Database 21c Software Registries on Windows

Did you see that? A new Oracle registry ORACLE_HOME_READONLY comes into play, it values Y. That's because Read-Only ORACLE_HOME is now the default feature since 21c.

Oracle's "Read-only Oracle home" does not really mean unchangeable, it means that the directory now become a place to store product binaries and patched updates only. All configuration files now go to a new place ORACLE_BASE_HOME.

By default, we derive the value from other variables.

ORACLE_BASE_HOME = <ORACLE_BASE>\homes\<ORACLE_HOME_NAME>

In this case, ORACLE_BASE_HOME is at C:\app\oracle\homes\OraDB21Home1.

To switch back to the original mode (read write), you need to move all configuration files back to ORACLE_HOME, change the value to N and then restart all database services.

Create Oracle Database

We click on Database Configuration Assistant (DBCA) to initiate the database creation process.

Run DBCA (Database Configuration Assistant)
Run DBCA (Database Configuration Assistant)

Please note that, don't directly run dbca in CMD command line, it'll fail later.

Oracle Database 21.3 Creation - 01
Oracle Database 21.3 Creation - 01
Oracle Database 21.3 Creation - 02
Oracle Database 21.3 Creation - 02
Oracle Database 21.3 Creation - 03
Oracle Database 21.3 Creation - 03
Oracle Database 21.3 Creation - 04
Oracle Database 21.3 Creation - 04
Oracle Database 21.3 Creation - 05
Oracle Database 21.3 Creation - 05
Oracle Database 21.3 Creation - 06
Oracle Database 21.3 Creation - 06
Oracle Database 21.3 Creation - 07
Oracle Database 21.3 Creation - 07
Oracle Database 21.3 Creation - 08
Oracle Database 21.3 Creation - 08
Oracle Database 21.3 Creation - 09-1
Oracle Database 21.3 Creation - 09-1
Oracle Database 21.3 Creation - 09-2
Oracle Database 21.3 Creation - 09-2
Oracle Database 21.3 Creation - 09-3
Oracle Database 21.3 Creation - 09-3
Oracle Database 21.3 Creation - 09-4
Oracle Database 21.3 Creation - 09-4
Oracle Database 21.3 Creation - 10
Oracle Database 21.3 Creation - 10
Oracle Database 21.3 Creation - 11
Oracle Database 21.3 Creation - 11
Oracle Database 21.3 Creation - 12
Oracle Database 21.3 Creation - 12
Oracle Database 21.3 Creation - 12-1
Oracle Database 21.3 Creation - 12-1
Oracle Database 21.3 Creation - 12-2
Oracle Database 21.3 Creation - 12-2
Oracle Database 21.3 Creation - 12-3
Oracle Database 21.3 Creation - 12-3
Oracle Database 21.3 Creation - 12-4
Oracle Database 21.3 Creation - 12-4
Oracle Database 21.3 Creation - 13-1
Oracle Database 21.3 Creation - 13-1
Oracle Database 21.3 Creation - 13-2
Oracle Database 21.3 Creation - 13-2
Oracle Database 21.3 Creation - 13-3
Oracle Database 21.3 Creation - 13-3
Oracle Database 21.3 Creation - 13-4
Oracle Database 21.3 Creation - 13-4
Oracle Database 21.3 Creation - 14
Oracle Database 21.3 Creation - 14
Oracle Database 21.3 Creation - 15
Oracle Database 21.3 Creation - 15

The database is running.

One last move is to open port 1521 for your incoming connections on windows server.

2 thoughts on “How to Install Oracle Database 21c on Windows”

Leave a Reply

Your email address will not be published. Required fields are marked *