WindowsMacSoftwareSettingsSecurityAndroidProductivityLinuxPerformanceAppleDevice Manageme.. All

How to Install Oracle Database on Windows

Edited 3 weeks ago by ExtremeHow Editorial Team

Oracle DatabaseInstallationWindowsDatabase ManagementSoftware SetupAdmin ToolsSystem ConfigurationPerformanceCloud ComputingEnterprise Solutions

How to Install Oracle Database on Windows

This content is available in 7 different language

Oracle Database is a powerful tool for managing and storing data developed by Oracle Corporation. It is widely used in enterprise environments worldwide. Installing it on the Windows platform may seem daunting, but with this comprehensive guide, you can set it up easily. Let's start by discussing the prerequisites needed to ensure a smooth installation process.

Prerequisites

Before starting the installation, make sure that your system meets the following requirements:

In addition, you will need an Oracle account to download the Oracle database installation files. You can create an account on the Oracle website.

Step 1: Download the Oracle Database

First, visit the Oracle database download page through your web browser. Choose the appropriate version for your system. The current database version can be Oracle 19c or the latest available Long-Term Support (LTS) version.

You'll likely find the following download options:

Once you’ve made your selection, download the files and make sure they’re saved in a directory where you can access them easily.

Step 2: Prepare Your System

After downloading, you need to prepare your Windows environment for Oracle database installation. Follow these instructions:

Create Directories

Create a directory where the Oracle database will reside. For example:

C:\oracle\product\19.0.0\dbhome

Extract the installation files

Extract the downloaded zip files to the directory you created. You can use any decompression tool like WinRAR or 7-Zip to do this.

Step 3: Install Oracle Database

Now, you can proceed with the installation:

Run setup

Go to the extracted folder, find 'setup.exe', right-click on it and select 'Run as administrator'. Running as administrator ensures that you have the proper permissions during the installation process.

Installer Wizard

The Oracle Database Installer Wizard starts and will guide you through the process. You must:

Choose configuration

Select from the following installation options:

System Class

Select your system type - Desktop Class or Server Class. Desktop Class is typically better suited for personal or small-scale installations, while Server Class is for larger setups, better suited for production environments.

Select Oracle Home User

Select an existing Windows user or create a new user. It is generally a good practice to create a dedicated user for Oracle database processes.

Specify the installation location

Point to the directory that you created earlier (for example, C:\oracle\product\19.0.0\dbhome).

General installation configuration

Provide the database name and administrative password. Choose some secure name for the password and remember it for later use.

Prerequisite Checks

Before proceeding, the installer will perform the necessary checks to make sure your system is ready. If any problems appear, fix them.

To install

When the check is complete and no issues are found, proceed by clicking Install. The process may take some time, so be patient.

Completing the configuration

After installation, some configuration tasks need to be completed, such as running some scripts prompted by the installer.

Step 4: Verify the installation

To verify the installation:

Log in to SQL*Plus

SQL*Plus is a command-line tool used for database management. Open CMD and navigate to the oracle installation bin directory (for example, C:\oracle\product\19.0.0\dbhome\bin\). Enter the following command:

sqlplus /nolog

When SQL*Plus starts, login using the following:

connect to sys as sysdba;

You will be asked to enter the password set during the installation process. If the connection is successful, it means your database is running.

Step 5: Connect with Oracle Database

After confirming the installation, you can start using the Oracle database. Here are some basic commands that you may find helpful as a beginner:

Create User

Create a new user by running:

CREATE USER identified by test password;

Grant permission

Grant the new user the necessary permissions to connect and interact with the database:

provide connect,resources for testing;

Create tables

You can now create tables and insert data. Here is how to create a sample table:

create table test_table (
    id number primary key,
    name VARCHAR2(50)
);

Enter data

You can insert data using SQL:

INSERT INTO test_table(id, name) VALUES(1, 'Sample name');

Troubleshooting common problems

If you encounter any problems during installation, consider the following:

Conclusion

By following these steps, you will be able to successfully install Oracle Database on your Windows machine. Always remember to use secure credentials and keep your database updated to ensure it remains secure and efficient. Explore Oracle's extensive features and enjoy structured data management and versatility.

If you find anything wrong with the article content, you can


Comments