You are on page 1of 16

Oracle 12c (12.1.0.2.

0) database step by Step


installation guide on redhat linux 5.6

Mohamed Azar

http://mohamedazar.com
Step 1: Download Software
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-
download-2240591.html

Step 2:
If you want to read complete installation guide from oracle network

http://docs.oracle.com/database/121/LADBI/toc.htm

Step 3 : Preinstallation tasks

Minimum kernel version

 Red Hat Enterprise Linux 5 Update 6: 2.6.18-238.0.0.0.1.el5 or later


 Red Hat Enterprise Linux 5 Update 6 with the Unbreakable Enterprise Kernel:
2.6.32-100.0.19 or later

[root@premiadb ~]# uname -a

Linux premiadb.xxx.com 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_6
4 GNU/Linux

Minimum Space :

Enterprise Edition : 6.4 GB

RAM : 1 GB

Swap : 2 GB

Host entry :

[root@premiadb ~]# cat /etc/hosts

# Do not remove the following line, or various programs


# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

::1 localhost6.localdomain6 localhost6

10.1.xx.xx premiadb.xxx.com premiadb

rpm package :

Install : rpm –ivh packagename

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

gcc-4.1.2

gcc-c++-4.1.2

glibc-2.5-58

glibc-2.5-58 (32 bit)

glibc-devel-2.5-58

glibc-devel-2.5-58 (32 bit)

ksh

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libaio-devel-0.3.106 (32 bit)

libgcc-4.1.2

libgcc-4.1.2 (32 bit)

libstdc++-4.1.2

libstdc++-4.1.2 (32 bit)


libstdc++-devel 4.1.2

libXext-1.0.1

libXext-1.0.1 (32 bit)

libXtst-1.0.1

libXtst-1.0.1 (32 bit)

libX11-1.0.3

libX11-1.0.3 (32 bit)

libXau-1.0.1

libXau-1.0.1 (32 bit)

libXi-1.0.1

libXi-1.0.1 (32 bit)

make-3.81

sysstat-7.0.2

unixODBC-2.2.11-7.1.i386.rpm

unixODBC-2.2.11-7.1.x86_64.rpm

unixODBC-devel-2.2.11-7.1.i386.rpm

unixODBC-devel-2.2.11-7.1.x86_64.rpm

Kernel

/etc/sysctl.conf

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 4294967295

kernel.shmmni = 4096
kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

[root@premiadb ~]# /sbin/sysctl –p

Security limits

[root@premiadb ~]# cat /etc/security/limits.conf

oracle soft nproc 16384

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft stack 10240

oracle hard stack 32768

Selinux

[root@premiadb ~]# vi /etc/selinux/config

[root@premiadb ~]# setenforce Permissive

setenforce: SELinux is disabled

[root@premiadb ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

# enforcing - SELinux security policy is enforced.

# permissive - SELinux prints warnings instead of enforcing.


# disabled - SELinux is fully disabled.

SELINUX=permissive

# SELINUXTYPE= type of policy in use. Possible values are:

# targeted - Only targeted network daemons are protected.

# strict - Full SELinux protection.

SELINUXTYPE=targeted

Firewall stop

[root@premiadb ~]# service iptables stop

[root@premiadb ~]# chkconfig iptables off

[root@premiadb ~]# service iptables status

Firewall is stopped.

[root@premiadb ~]#

User id and group

[root@premiadb ~]#groupadd oinstall

[root@premiadb ~]#groupadd dba

[root@premiadb ~]# useradd -g oinstall -G dba oracle

[root@premiadb ~]#passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

Directory creation for oracle database software installation

[root@premiadb ~]# mkdir -p /premia/app/12c/oracle/product/dbhome_1

[root@premiadb ~]# chown -Rf oracle:oinstall /premia/


[root@premiadb ~]# chmod -Rf 775 /premia/

Unzip database software as oracle user

[oracle@premiadb ~]$ unzip linuxamd64_12102_database_1of2.zip

[oracle@premiadb ~]$unzip linuxamd64_12102_database_2of2.zip

Step 4: Installation
Note : My server already database software existing, so no need to run orainstRoot.sh
[oracle@premiadb ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Wed Aug 20 10:53:29 2014

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> select name from v$database;

NAME

---------

ORADB

SQL>

You might also like