Oracle 12c R1 software and database installation on Oracle Linux 7 64-bit

In this article I am going to cover installation of Oracle 12c Release-1 (i.e. 12.1.0.2.0)(64-bit) on Oracle Linux release 7 (64-bit)

Pre-requisite installation check are as follow:
Swap Size    :  Minimum 2 GB
IP Tables      :  Off
SeLinux        :  permissive

As per pre-requisite list, ensure your swap size with following Linux command, If swap memory don’t meet minimum requirement than increase it. Nice article on increasing swap size is here.

[root@OL712c ~]# free -m
 total used free shared buffers cached
Mem: 2969 2358 611 474 0 998
-/+ buffers/cache: 1359 1610
Swap: 3087 0 3087

Little more information about my environment:

[root@OL712c ~]# uname -a
Linux OL712c 3.8.13-35.3.1.el7uek.x86_64 #2 SMP Wed Jun 25 15:27:43 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@OL712c ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)

Update host file entry:

192.168.17.138     OL712c

Note: OL712c is my server name with associated private IP.

Update hostname entry in “/etc/hostname” file.

OL712c

Append following lines to “/etc/sysctl.conf” file.

fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500

In order to reflects above changes in current Linux environment, Issue following command:

[root@localhost ~]# /sbin/sysctl -p

Append following lines to “/etc/security/limits.conf” file.

oracle   soft   nofile   1024
oracle   hard   nofile   65536
oracle   soft   nproc    2047
oracle   hard   nproc    16384
oracle   soft   stack    10240
oracle   hard   stack    32768

Stop firewall:

[root@localhost ~]# systemctl stop firewalld

Disable firewall:

[root@localhost ~]# systemctl disable firewalld
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'

Set SeLinux Permissive by editing “/etc/selinux/config” file.

SELINUX=permissive

Note:
Take reboot in order to take effect.

Installed following packages with the help of YUM utility: Most of the packages are already installed while OS installation.

yum install binutils* compat-libstdc++* gcc* gcc-c++* glibc* glibc.i686* glibc-devel* ksh* libgcc* libstdc++* libstdc++-devel* libaio* libaio-devel* libXext* libXtst* libX11* libXau* libxcb * libXi* make* sysstat* unixODBC* unixODBC-devel* zlib-devel* -y

Create oracle groups and users:

[root@OL712c ~]# groupadd -g 54321 oinstall
[root@OL712c ~]# groupadd -g 54322 dba
[root@OL712c ~]# groupadd -g 54323 oper
[root@OL712c ~]# useradd -u 54321 -g oinstall -G dba,oper oracle
[root@OL712c ~]# passwd oracle

Create following directories for oracle home:

[root@OL712c ~]# mkdir -p /u01/app/oracle/product/12.1.0/
[root@OL712c ~]# chown -R oracle:oinstall /u01
[root@OL712c ~]# chmod -R 775 /u01

Download oracle 12c R1 from oracle site, here.

On GUI, open terminal prompt as a root user & issue the following command:

[root@OL712c ~]# xhost +
access control disabled, clients can connect from any host
[root@OL712c ~]# su - oracle
[oracle@OL712c ~]$ cd /opt/database/
[oracle@OL712c database]$ ll
total 24
drwxr-xr-x. 4 root root 4096 Nov 29 10:02 install
drwxrwxr-x. 2 root root 58 Jul 7 10:18 response
drwxr-xr-x. 2 root root 33 Jul 7 09:14 rpm
-rwxr-xr-x. 1 root root 8533 Jul 7 09:14 runInstaller
drwxrwxr-x. 2 root root 28 Jul 7 10:18 sshsetup
drwxr-xr-x. 14 root root 4096 Jul 7 10:19 stage
-rwxr-xr-x. 1 root root 500 Feb 6 2013 welcome.html

Run oracle universal installer and follow the steps by step screen shots as below:

[oracle@OL712c database]$ ./runInstaller

Un-check security updates check box and continue.

Oracle 12c on Oracle Linux 7 - Configure Security Updates

Oracle 12c on Oracle Linux 7 – Configure Security Updates

 

Select Installation Option, In my case i am creating as well as configuring database at a time:

Installation of Oracle 12c on Oracle Linux 7 - Select Installation Option

Installation of Oracle 12c on Oracle Linux 7 – Select Installation Option

 

Provide system class information, Select Server class if you are installing oracle on server, in my case I am using VM on my personal lappy.

Installation of Oracle 12c on Oracle Linux 7 - System Class

Installation of Oracle 12c on Oracle Linux 7 – System Class

 

Provide strong administrative password with pluggable database name, and continue.

Installation of Oracle 12c on Oracle Linux 7 - Typical Install Configuration

Installation of Oracle 12c on Oracle Linux 7 – Typical Install Configuration

Installation of Oracle 12c on Oracle Linux 7 - Create Inventory

Installation of Oracle 12c on Oracle Linux 7 – Create Inventory

Installation of Oracle 12c on Oracle Linux 7 - Perform Pre-requisite Check

Installation of Oracle 12c on Oracle Linux 7 – Perform Pre-requisite Check

 

All pre-requisite checks are succeeded in my case, It is recommended to satisfied all minimum requirements:

Installation of Oracle 12c on Oracle Linux 7 - Perform Pre-requisite Check

Installation of Oracle 12c on Oracle Linux 7 – Perform Pre-requisite Check

 

Ensure summary and continue with installation.

Installation of Oracle 12c on Oracle Linux 7 - summary

Installation of Oracle 12c on Oracle Linux 7 – summary

Installation of Oracle 12c on Oracle Linux 7 - Install Product

Installation of Oracle 12c on Oracle Linux 7 – Install Product

 

Execute following scripts as root users.

Installation of Oracle 12c on Oracle Linux 7 - Execute Configuration Script

Installation of Oracle 12c on Oracle Linux 7 – Execute Configuration Script

Oracle script

Oracle script

 

Oracle software installation is completed and now running database configuration assistant for database creation.

Installation of Oracle 12c on Oracle Linux 7 - Database Configuration Assistant

Installation of Oracle 12c on Oracle Linux 7 – Database Configuration Assistant

 

Unlock user by clicking password management button, or continue.

Installation of Oracle 12c on Oracle Linux 7 - configuration assistant

Installation of Oracle 12c on Oracle Linux 7 – configuration assistant

 

Oracle 12c installation on Oracle Linux 7 is successful.

Installation of Oracle 12c on Oracle Linux 7

Installation of Oracle 12c on Oracle Linux 7

 

Now, Export oracle environment variable by “Oracel” user to access sql prompt as below:

[oracle@OL712c ~]$ export ORACLE_SID=orcl
[oracle@OL712c ~]$ export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1/
[oracle@OL712c ~]$ export PATH=$PATH:/u01/app/oracle/product/12.1.0/dbhome_1/bin/

Access SQL prompt as below:

[oracle@OL712c ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Mon Dec 1 04:47:44 2014
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 2923920 bytes
Variable Size 838861424 bytes
Database Buffers 402653184 bytes
Redo Buffers 13852672 bytes
Database mounted.
Database opened.
SQL> select name,open_mode from v$database;
NAME OPEN_MODE
--------- --------------------
ORCL READ WRITE

If you wish to start your databases on every reboot then make following changes in “/etc/oratab” file for all databases.

orcl:/u01/app/oracle/product/12.1.0/dbhome_1:Y

 

Congratulations!! You have successfully install oracle 12c on oracle Linux 7 64-bit OS.

 

Related article on Oracle 12c installation on Oracle Linux 5 & 6 as below:

Oracle 12c installation on Oracle Linux release-6 (64-bit)

Oracle 12c installation on Oracle Linux release-5 (64-bit)

 

Leave a Reply