You are on page 1of 25

12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.

5 – Quickfixlinux

BY SIVA · PUBLISHED APRIL 25, 2018 · UPDATED


MAY 3, 2018

In this Guide we
will see on How
to Install the
Oracle Database
12c Release 2 in
Redhat
Enterprise Linux
7.5 Server.
To Download the Oracle Database
Installer, Visit the below URL:

http://www.oracle.com/technetwork/database/enterprise-
edition/downloads/index.html

Prerequiste for Installation:

1. Download the Oracle


Database 12c installer
package.
2. The Swap Space size should
be 16GB .
3. Enable X11 Forwarding to
“yes” in sshd con guration
le.
4. Properly set the hostname.
5. Set the Kernel Parameters.

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 2/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

6. Set the ulimit values.


7. Install the required rpm
packages.

1] OS Release

[root@quick xlinux ~]#


cat /etc/redhat-release

Red Hat Enterprise Linux


Server release 7.5 (Maipo)

1.1] Set the Hostname


:
(a) Under /etc/hosts:
192.168.xx.xx   
quick xlinux.com

(b) Under /etc/hostname:


quick xlinux.com 

1.2] Set the SELINUX


to “Permissive”
[root@quick xlinux
~]#getenforce

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 3/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

Enforcing

[root@quick xlinux ~]#


setenforce 0

[root@quick xlinux
~]# getenforce

Permissive

1.3] Install the required


rpm packages:
[root@quick xlinux ~]# yum
install  -y binutils  compat-
libstdc++-33  compat-
libstdc++-33.i686  gcc   gcc-c++ 
glibc   glibc.i686  glibc-devel 
 glibc-devel.i686   ksh   libgcc
libgcc.i686  libstdc++ 
libstdc++.i686  libstdc++-devel 
libstdc++-devel.i686  libaio 
 libaio.i686  libaio-devel  libaio-
devel.i686   libXext 
 libXext.i686   libXtst 
libXtst.i686   libX11 libX11.i686 
 libXau libXau.i686  libxcb 
libxcb.i686  libXi  libXi.i686
make sysstat  unixODBC 
unixODBC-devel  zlib-devel 

1.4] Set the limits for


Oracle user in
http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 4/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

/etc/security/limits.co
nf le :
oracle   soft   nproc    131072

oracle   hard   nproc    131072

oracle   soft   no le   131072

oracle   hard   no le   131072

oracle   soft   core     unlimited

oracle   hard   core     unlimited

oracle   soft   memlock 


50000000

oracle   hard   memlock 


50000000

1.5] Set the Kernel


Parameters:
[root@quick xlinux ~]#
/sbin/sysctl -w kernel.sem=”250
32000 100 128″

kernel.sem = 250 32000 100 128

[root@quick xlinux ~]#


/sbin/sysctl -w fs.aio-max-
nr=1048576

fs.aio-max-nr = 1048576

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 5/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[root@quick xlinux
~]# /sbin/sysctl -w
kernel.shmmax=4398046511104

kernel.shmmax = 4398046511104

[root@quick xlinux ~]#


/sbin/sysctl -w
kernel.shmall=1073741824

kernel.shmall = 1073741824

[root@quick xlinux ~]#


/sbin/sysctl -w
net.core.wmem_max=1048586

net.core.wmem_max = 1048586

[root@quick xlinux ~]#


/sbin/sysctl -w
net.core.wmem_default=262144

net.core.wmem_default = 262144

[root@quick xlinux ~]#


/sbin/sysctl -w
net.core.rmem_max=4194304

net.core.rmem_max = 4194304

[root@quick xlinux
~]#/sbin/sysctl -w
net.core.rmem_default=262144

net.core.rmem_default = 262144

[root@quick xlinux ~]#


/sbin/sysctl -w

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 6/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

net.ipv4.ip_local_port_range=”9000
65500″

net.ipv4.ip_local_port_range =
9000 65500

[root@quick xlinux ~]#


/sbin/sysctl -w
kernel.shmmni=4096

kernel.shmmni = 4096

[root@quick xlinux ~]#


/sbin/sysctl -w
kernel.shmmax=8329226240

kernel.shmmax = 8329226240

[root@quick xlinux ~]# sysctl -p

[root@quick xlinux ~]#sysctl -a

1.6] Set the DISPLAY


Environment:
Now, as a root user:

(a) Make sure you have “Tick” the


Enable X11 forwarding in PUTTY.

(b) Launch the “Xming”


application from your local
machine.

(c) touch /root/.Xauthority

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 7/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

(d)  uncomment the


X11Forwarding and set to “yes” in
/etc/ssh/sshd_con g le.

(e) [root@quick xlinux ~]# xauth


list $DISPLAY

localhost.localdomain/unix:10 
MIT-MAGIC-COOKIE-1 
3a49e090537be8161b19526143ff2988

(f)[root@quick xlinux ~]# echo


$DISPLAY

[ IF the output shows nothing, set


the display env rst… ]

(e)[root@quick xlinux ~]# export


DISPLAY= localhost:10.0

[root@quick xlinux ~]# echo


$DISPLAY

localhost:10.0

Now, as a oracle user:

(a) [oracle@quick xlinux


~]$ touch .Xauthority

(b) [oracle@quick xlinux


~]$ xauth list $DISPLAY

(c) [oracle@quick xlinux


~]$ echo $DISPLAY

[ Both the xauth list and DISPLAY


shows NO output, Whereas, we
need to add it now. ]
http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 8/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

(d) [oracle@quick xlinux ~]$


xauth
add localhost.localdomain/unix:10 
MIT-MAGIC-COOKIE-1 
3a49e090537be8161b19526143ff2988

[Add the root MIT-MAGIC-COOKIE


in oracle user ]

(e) [oracle@quick xlinux


~]$export DISPLAY=
localhost:10.0

Now, try to issue the command


“xclock” and wait for it launch.

2] Create user and


groups:
[root@quick xlinux ~]# useradd
oracle

[root@quick xlinux ~]#


password oracle

[root@quick xlinux ~]#groupadd


oinstall

[root@quick xlinux ~]#usermod


-G oinstall oracle 

2.2] Create the folders:

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-li… 9/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[root@quick xlinux ~]# mkdir


/oracle

[root@quick xlinux ~]# chown -R


oracle:oinstall /oracle

[root@quick xlinux ~]# chmod -


R 775 /oracle

[root@quick xlinux ~]# chmod


g+s /oracle

If you didn’t set the above kernel


parameters for ulimit values, you
will be encountering errors while
installation as below :

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 10/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

Lets get into the


Oracle 12c
database
Installation now:
As a oracle user, get into the
respective path to install :

[oracle@quick xlinux ~]$ cd


/database/

[oracle@quick xlinux database]$


./runInstaller

Starting Oracle Universal


Installer…

Checking Temp space: must be


greater than 500 MB.   Actual
393933 MB    Passed

Checking swap space: must be


greater than 150 MB.   Actual
51199 MB    Passed

Checking monitor: must be


con gured to display at least 256
colors.    Actual 16777216   
Passed

Preparing to launch Oracle


Universal Installer from

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 11/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

/tmp/OraInstall2018-04-25_11-03-
07PM. Please wait …

[oracle@quick xlinux database]$

[STEP-1]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 12/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP-2]

[STEP-3]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 13/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP-4]

[STEP-5] There are two


ways to do the
installation, (1) Typical
Install or (2) Advanced
Install.. Here, rst we
will look into (1) & then
(2)

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 14/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP-6]

NOTE: password here can’t


contain any special characters:

[STEP-7]

[STEP-8]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 15/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP -5 – Advanced]
Now, we will look on
the Advanced Install
options:

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 16/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP -6 – Advanced]

[STEP -7 – Advanced]

[STEP -8 – Advanced]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 17/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP -9 – Advanced]

[STEP -10 – Advanced]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 18/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP -11 – Advanced]

[STEP -12 – Advanced]

[STEP -13 – Advanced]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 19/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP -14 – Advanced]

[STEP -15 – Advanced]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 20/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP -16 – Advanced]

[STEP -17 – Advanced]

[STEP -18 – Advanced]

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 21/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[STEP -19 – Advanced]

[STEP -20 – Advanced]


http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 22/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

As a root user: Now, Change the


/etc/oratab entry from  “N” to
 “Y”

orcl:/oracle/app/oracle/product/12.2.0/dbhome_1:Y

As a Oracle user: Now, add the


below Entries in .bash_pro le le :

export
ORACLE_HOSTNAME=quick xlinux

export ORACLE_UNQNAME=orcl

export
ORACLE_BASE=/u01/app/oracle

export
ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1

export ORACLE_SID=orcl

[oracle@quick xlinux ~]$ source


.bash_pro le

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 23/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[oracle@quick xlinux ~]$


./sqlplus

SQL*Plus: Release 12.2.0.1.0


Production on Thu Apr 26
01:46:19 2018

Copyright (c) 1982, 2016, Oracle. 


All rights reserved.

Enter user-name: SYS AS SYSDBA

Enter password: <password given


while installation>

Connected to an idle instance.

To start the oracle


LISTENER:
[oracle@quick xlinux ~]$ lsnrctl
status

LSNRCTL for Linux: Version


12.2.0.1.0 – Production on 03-
MAY-2018 02:27:22

Copyright (c) 1991, 2016, Oracle.


All rights reserved.

Connecting to (DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)
(HOST=192.168.21.1)

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 24/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

(PORT=1521)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux:
Version 12.2.0.1.0 – Production
Start Date 28-APR-2018 01:27:22
Uptime 5 days 0 hr. 59 min. 59 sec
Trace Level off
Security ON: Local OS
Authentication
SNMP OFF
Listener Parameter File
/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
Listener Log File
/oracle/app/oracle/diag/tnslsnr/test123/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=
(PROTOCOL=tcp)
(HOST=192.168.21.1)
(PORT=1521)))
(DESCRIPTION=(ADDRESS=
(PROTOCOL=ipc)
(KEY=EXTPROCORCL)))
The listener supports no services
The command completed
successfully

Resolution:
Edit the listener.ora le and
change the HOST  from IP
ADDRESS to server hostname …

http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 25/27
12/7/2018 Steps to Install Oracle Database 12c Release 2 in Redhat Linux 7.5 – Quickfixlinux

[oracle@quick xlinux ~]$ vim


/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

PREVIOUS

STORY

How to
Generate and
Update SSL
SAN
Certi cate in
Linux

YOU MAY ALSO LIKE...

0 0 0

How to
start the
How to [Solution] autofs in
setup Gnome Debug log
Logon failed to mode
Banners in start DECEMBER
Linux DECEMBER 27, 2016
APRIL 7, 5, 2016
2017
http://webcache.googleusercontent.com/search?q=cache:FmuljI7QlZEJ:www.quickfixlinux.com/linux/steps-to-install-oracle-database-12c-on-redhat-… 26/27

You might also like