Nisarg Upadhyay
Oracle 19c enterprise home

Installing Oracle 19c on Windows Server 2019

October 13, 2021 by

In this article, we understand the step-by-step installation process of Oracle 19c on Windows Server 2019. The minimum hardware requirement to install an Oracle database server is following:

Server hardware requirements:

  1. Processor: Intel EM64T or AMD64
  2. RAM: Minimum 2 GB
  3. Available Disk space: 12 GB or more
  4. Swap (Virtual Memory): Same size as the physical memory size (Minimum 2GB)
  5. Screen Resolution: Minimum screen resolution must be 1024×768

Hard disk requirements:

The oracle recommends installing oracle home on the NTFS file system or ACFS. The amount of space required by the single instance of the oracle database is 12GB or higher. Space includes

  1. Temp space: 595 MB
  2. Oracle Home: 6.5 GB
  3. Oracle inventory files: 53 MB
  4. Oracle data files (oradata, admin data files, flash_recovery_area): 4.4 GB

The Oracle product family contains the following editions:

  1. Oracle database standard edition one
  2. Oracle database standard edition
  3. Oracle database enterprise edition
  4. Oracle database express editions

You can read Database Licensing Information User Manual to learn more about the licensing information and list of features supported by the above-listed editions.

Now, let us understand the installation process. For demonstration, I have created a virtual machine and installed Windows Server 2019 on it.

Download oracle database setup files

First, let us download the oracle setup files. The setup files are available on the Oracle download page. On the download page, you can see the various installation packages. We are installing the oracle database only, so click on the link under the Oracle Database 19c (19.3) for Microsoft Windows x64.

Oracle 19c download page

Install Oracle software and starter database

Once installation files are downloaded, copy them to the desired location and unzip the installation files. Once files are extracted, run the Setup.exe file to start the Oracle Universal Installer.

Oracle 19c setup files

The installation process begins. On the configuration options screen, you can choose any of the following installation options.

  1. Install oracle software and starter database
  2. Install oracle software

In our example, we are installing oracle software and starter database; therefore, select Create and configure single instance database option.

select configuration option screen

On the Select System Class screen, you can choose the class of machine on which you are installing the oracle database. If you are installing it on the server-class machine, select Server Class, and if you are installing it on the Desktop class machine, choose Desktop class. In our case, we are installing oracle on a workstation, so I have chosen the Desktop class.

Choose workstation class

On Specify oracle Home User screen, you can set up an account used to run the oracle services on Windows. You can choose any of the following options:

  1. Virtual Account: If you do not want to create a separate account for oracle home, you can choose the Virtual account. For enhanced security, Oracle recommends using a Virtual account
  2. Existing Windows User: If you have created an administrator or non-administrator Windows account and you want to use it, then select the Existing Windows User option. We must specify the username and password of the account
  3. Create New Windows User: If you want to create a new account, you can choose the Create New Windows User option. The Oracle Universal Installer will create a user. You must specify the desired username and password
  4. Use Windows Built-In account: If you want to use the account created by the Windows server, you can choose to use Windows built-in account option

In our case, we are creating a separate user for oracle services; then, I have selected Create New Windows User.

Configure Oracle Home user

In the Typical install Configuration screen, you can provide the values of the following parameters.

  1. Oracle base: Specify the location of the Oracle base directory. In our case, the location is C:\OracleBase
  2. Database file location: Specify the location where you want to keep the database files. In our case, the location is C:\OracleDBFiles
  3. Database edition: Specify the edition of the oracle software. You can choose Enterprise edition or standard edition. In our case, I have selected Enterprise Edition
  4. Character set: Specify the character set that you want to use. You can choose UNICODE or OS Locale. I have selected OS Locale
  5. Global database name: Specify the global database. The default database name is ORCL. I have not changed the global database name
  6. Password: Specify the password to access the global database
  7. Create as Container database: If you want to configure the database as a container database, you can enable the Create as Container database option. I have disabled it

Following is the screenshot of the configuration option.

Oracle 19c Installation configuration

On the performance prerequisite check screen, the wizard verifies minimum prerequisites to install oracle software are fulfilled or not. OUI check following parameters:

  1. Physical memory
  2. Available Physical memory
  3. Swap Size
  4. Free space on the disk

Check Prerequisites

On the Summary screen, you can view the summary of the configuration parameters. You can review the settings and, if required, make changes. Click install to begin the installation process of Oracle 19c.

Installation summary

The installation process begins. The time to complete the installation depends on the configuration of the Server/workstation.

Oracle 19c installation begins

Once installation completes, you can close the installer. The setup installs oracle enterprise manager. It is a web-based tool that is used to monitor and configure the Oracle 19c database.

Oracle database configuration completed

Connect to Oracle 19c Enterprise Manager Database Express

Let us take a quick look at an oracle Enterprise Manager Database express. In our case, we can launch it by accessing the https://localhost:5500/em URL.

First, the enterprise prompts for the username and password. Specify the SYS as username (It is created during the installation of the oracle) and master password used on the Typical Installation screen. Once authenticated, you can view the status of the Oracle services and performance and resource matrix.

Oracle 19c enterprise home

In the SQL monitor Section, you can view the top 20 SQL Queries along with the query execution duration, SQL Plan hash, Username, SQL Text, and IO requests. In our case, you will not see details of the queries because we have not run any query using the SYS account.

Connect to ORACLE using SQL*Plus

SQL*Plus is a command line utility that can run the queries and PL/SQL script on the oracle database. When we install oracle software, the SQL*Plus installs automatically. If you use client tools from a separate machine, you can download and install the SQL*Plus package from the official oracle download page.

When we execute the SQL*Plus utility, it prompts for the username and password. You must specify the appropriate username and password. Suppose we want to connect to the Oracle 19c instance using the sys user. To connect, open SQL*Plus and specify the appropriate username and password.

Connect to SQL*Plus

As you can see, we are connected to the oracle using the sys user. Now, let us run some simple queries.

Enable HR schema and Run basic Queries

We have installed a starter database, so we can use the HR schema to run a simple query. The HR user is disabled, so we must enable it. To do that, open SQL*Plus and connect to sysdba user.

Connect using sys user

Once connected, run the following query

SQL> alter user HR identified by tiger account unlock;

Enable HR user

Once the user is enabled, let us view the tables created in the HR schema. First, connect to HR user using SQL*Plus.

Connect using HR User

To view the tables, we can use user_tables. Run the following query:

SQL> select table_name from user_tables;

List of tables in HR schema

As you can see, the query has returned the list of the tables. Now, let us view the structure of the Employees table. To view the structure of any table in oracle, we can use DESCRIBE command.

Query:

SQL> Describe EMPLOYEES;

Output:

Table structure of EMPLOYEES table

As you can see, the query has returned the structure of the EMPLOYEES table.

Summary

In this article, we learned the step-by-step installation process of the Oracle 19c. This article covers the basic installation process and can be used by junior developers or DBAs who want to kick start their career in oracle. In my upcoming articles, we will learn advanced concepts of administrating the oracle database. Stay Tuned..!!

References

Nisarg Upadhyay
168 Views