Oracle Database 12c installation on linux

Oracle 12c Database installation step by step procedure on Linux:

1) Install OEL 5.7 Linux using the following link

Oracle Enterprise Linux 5.7 Installation

Here my hostname

[root@12cdb ~]# hostname

2) create user and group

[root@12cdb /]# groupadd dba
[root@12cdb /]# useradd -g dba oracle

3) Create required directory structure

[root@12cdb /]# mkdir -p /u01/app/oracle/product/12.1.0

4) Copy 12c Database software to /u01 directory

[root@12cdb Desktop]# cd /u01
[root@12cdb u01]# ls

5) Change ownerships & permissions to the created directories

[root@12cdb /]# chown -R oracle:dba /u01
[root@12cdb /]# chmod -R 755 /u01

6) Unzip the software

[root@12cdb u01]# unzip

[root@12cdb u01]# unzip
[root@12cdb u01]# ls
app database

7) open new terminal & run xhost + as a root user

[root@12cdb database]# xhost +
access control disabled, clients can connect from any host

8) Run runInstaller now

[root@12cdb database]# su – oracle
[oracle@12cdb ~]$ cd /u01/database/
[oracle@12cdb database]$ ls
install response rpm runInstaller sshsetup stage welcome.html
[oracle@12cdb database]$ ./runInstaller



Uncheck the box and click “Next”12cdb2

click yes12cdb3

Select “Skip software updates” and click “Next”12cdb4

Select “Create and configure a database”  and click “Next”12cdb5

Select “Desktop Class” and click “Next” 12cdb6

Fill the values as shown in the below screen shot

Oracle base : /u01/app/oracle
Software location : /u01/app/oracle/product/12.1.0/dbhome_1
Database file location: /u01/app/oradata
Database edition : Enterprise Edition
Character set : Unicode(AL32UTF8)
OSDBA group : dba
Global database name :
Administrative password: password
Confirm password : password

Pluggable database name: pdbprod


Select “Inventory Directory” path and click “Next”12cdb8

click “Install”12cdb9


[root@12cdb ~]# /u01/app/oraInventory/
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to dba.
The execution of the script is complete.
[root@12cdb ~]# /u01/app/oracle/product/12.1.0/dbhome_1/
Performing root user operation for Oracle 12c

The following environment variables are set as:
ORACLE_HOME= /u01/app/oracle/product/12.1.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of “dbhome” have not changed. No need to overwrite.
The contents of “oraenv” have not changed. No need to overwrite.
The contents of “coraenv” have not changed. No need to overwrite.
Creating /etc/oratab file…
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
[root@12cdb ~]#

Run these scripts and click “ok”



wait until dbca completion12cdb13

click close12cdb14

Check the database version

[oracle@12cdb dbs]$ . oraenv
ORACLE_SID = [PROD] ? prod
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@12cdb dbs]$ sqlplus / as sysdba

SQL*Plus: Release Production on Sat Jun 29 14:18:33 2013

Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release – 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> select status from v$instance;


SQL> select banner from v$version;

Oracle Database 12c Enterprise Edition Release – 64bit Production
PL/SQL Release – Production
CORE Production
TNS for Linux: Version – Production
NLSRTL Version – Production


Installation done successfully

Nagulu Polagani

"We are all apprentices in a craft where no one ever becomes a master."

Latest posts by Nagulu Polagani (see all)