Installing Oracle Database 12c On Windows
Installing Oracle Database 12c On Windows
Installing Oracle Database 12c On Windows
Windows
Overview
Purpose
This tutorial shows you how to install the Oracle Database 12c software on
Microsoft Windows along with a default instance of an Oracle Database that
contains example schemas ( including the HR schema).
Time to Complete
Approximately 1 hour.
Introduction
The Oracle Universal Installer (OUI) is used to install the Oracle Database
software. OUI is a graphical user interface utility that enables you to:
During the installation process, OUI will start the Oracle Database
Configuration Assistant (DBCA) which can install a precreated default
database that contains example schemas or can guide you through the
process of creating and configuring a customized database.
If you do not create a database during installation, you can invoke DBCA
after you have installed the software, to create one or more databases.
In this section, you will be downloading the files required to install Oracle
database on a Windows environment.
The software downloads page displays the files required to download the
database. It lists a set of software files to install software such as, Oracle
Database Grid Infrastructure and Oracle Database Gateways with the
Oracle database. Each set displays a short description of what the file
includes. You can choose to download any set of software depending on
your requirement.
In this OBE, we install Oracle Database 12c. Accept the license agreement
and click the files under Oracle Database 12c Release ... for Microsoft
Windows (x64) to download.
<="" figcaption="" title="images/t10105_a.jpg">
Log into your Oracle web account. If you do not have an Oracle account,
click the "Sign Up" link to create one. Then choose the location where you
want to download the .zip files.
After downloading the files, use the default built-in extraction tool provided
by Windows, or tools such as 7-zip to extract the .zip files. In this OBE, we
use the built-in extractor to extract the software files.
Choose the folder of your choice and click Extract. In this OBE, we extract
the file to the F:\windows_db_12c\winx64_12c_database_1of2 folder.
The file winx64_12c_database_2of2.zip must be extracted into the same folder
where the first file was extracted. Right click
winx64_12c_database_2of2.zip, select the Extract All... option and
specify the same location where the first file was extracted. In this OBE, we
extract the files to the F:\windows_db_12c\winx64_12c_database_1of2
folder. Click Extract.
In this section, you will be installing the Oracle Database and creating an
Oracle Home User account.
Expand the database folder that you extracted in the previous section.
Double-click setup.
Click Yes in the User Account Control window to continue with the
installation.
The Select Installation Option window appears with the following options:
The System Class window appears. Select Desktop Class or Server Class
depending on the type of system you are using. In this OBE, we will perform
the installation on a desktop/laptop. Select Desktop class and click Next.
The Oracle Home User Selection window appears. Starting with Oracle
Database 12c Release 1 (12.1), Oracle Database on Microsoft Windows
supports the use of an Oracle Home User, specified at the time of
installation. This Oracle Home User is used to run the Windows services for
a Oracle Home, and is similar to the Oracle User on Oracle Database on
Linux. This user is associated with an Oracle Home and cannot be changed
to a different user post installation.
Note:
o Different Oracle homes on a system can share the same Oracle Home User
or use different Oracle Home Users.
o The Oracle Home User is different from an Oracle Installation User. The
Oracle Installation User is the user who requires administrative privileges to
install Oracle products. The Oracle Home User is used to run the Windows
services for the Oracle Home.
o If you select "Use Existing Windows User", the user credentials provided
must be a standard Windows user account (not an administrator).
If this is a single instance database installation, the user can be a
local user, a domain user, or a managed services account.
If this is an Oracle RAC database installation, the existing user must
be a Windows domain user. The Oracle installer will display an error
if this user has administrator privileges.
o If you select "Create New Windows User", the Oracle installer will create a
new standard Windows user account. This user will be assigned as the
Oracle Home User. Please note that this user will not have login privileges.
This option is not available for an Oracle RAC Database installation.
o If you select "Use Windows Built-in Account", the system uses the Windows
Built-in account as the Oracle Home User.
Select the Create New Windows User option. Enter the user name as
OracleHomeUser1 and password as Welcome1. Click Next.
and then the balloon icon ( )to know more about the field. Note that by
default, the installer creates a container database along with a pluggable
database called "pdborcl". The pluggable database contains the sample HR
schema. Change the Global database name to orcl. Enter the
"Administrative password" as Oracle_1. This password will be used later to
log into administrator accounts such as SYS and SYSTEM. Click Next.
Navigate to
C:\app\OracleHomeUser1\product\12.1.0\dbhome_1\NETWORK\ADMIN .
Double-click tnsnames.ora to view the network configuration
settings.
You see that a connect alias called " ORCL" has been created. This
"ORCL" alias points to the container database with the service name
"ORCL".
Create a database connect alias called " PDBORCL" and specify the
network configuration settings to access the pluggable database
"PDBORCL" that we created during installation. Copy the following
code and paste it in the tnsnames.ora file. If necessary, modify the
host and port to match the values in the ORCL alias.
PDBORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pdborcl)
)
)
Save and close the file.
In this section, you will be connecting to the pluggable database using the
SQL*Plus utility.
connect hr/hr@pdborcl
select count(*) from employees;
The EMPLOYEES table contains 107 rows. This verifies that the HR schema
was created successfully when the database was installed.
Summary
Resources
o An Oracle White Paper entitled Introducing the Oracle Home User in Oracle
Database 12c for Microsoft Windows
o The documentation entitled Oracle® Database Installation Guide 12c
Release 1 (12.1) for Microsoft Windows
Credits