Oracle 12cR1 Database Installation on Oracle Linux 6

1. Introduction
2. Installation Requirements
3. Pre-installation tasks
4. Installation procedure


This article explains the requirements and step by step procedure to install Oracle 12cR1 ( Database Software on Oracle Enterprise Linux 6.

Installation Requirements:

Operating System Requirements:

Perform the Installation of Oracle Enterprise Linux 6 x86-64. Refer the Oracle Enterprise Linux 6 installation Document for the Installation. 

Hardware Requirements:

A. Please verify that the processor architecture matches the Oracle software release to install. If you do not see the expected output, then you cannot install the software on this system. Please verify it by using the below command.
 # uname -m
B. At least 1.0 GB of physical RAM. Command to check amount of RAM installed on the system is,
$ free -m (or) $ grep MemTotal  /proc/meminfo
C. A minimum of 4 GB swap space or more is required for the grid installation. Swap size should be proportional to RAM size as follows,
Swap space equal to Double the RAM size (if RAM < 4GB) 
Swap space equal to RAM size (if RAM > 4GB)
Swap space equal to 16GB (If RAM More than 16GB)
Check the Swap size by using,
$ free -m (or) $ grep SwapTotal  /proc/meminfo
D. Minimum of 1.0 GB free space in  /tmp directory is required and maximum of 2 TB free space. To check the amount of free space in /tmp,
$ df -h /tmp
E. More than 6.4 GB free space is required on the mount point to install oracle 12c database enterprise edition. The recommended space for total Database Installation is to have a minimum of 50 GB free space in the server.

Software Requirements:

Download Oracle 12c Release 1 database for Linux x86-64 software from and copy the zip files to Linux server.

Pre-installation tasks:

A. Set selinux to either permissive or disabled by using the below command.
 # setenforce 0
To permanently disable selinux, edit /etc/selinux/config and set value for SELINUX to "disabled".

B. Configure Shared Memory to the file system. Change the size of  /dev/shm by running the following command as root user.
# mount -o remount,size=4G /dev/shm  
Add following line in /etc/fstab file for shared memory file system. Modify the value of size based on the amount of memory you will be using for your SGA.
tmpfs                   /dev/shm                tmpfs   default,size=4g        0 0
C. Disable the firewall by using the below commands.
# service iptables save
# service iptables stop
# chkconfig iptables off
# service ip6tables save
# service ip6tables stop
# chkconfig ip6tables off

D. Create the new groups and users by using below commands.
# groupadd -g 54321 oinstall
# groupadd -g 54322 dba
# useradd -u 54321 -g oinstall -G dba oracle
Set the password for oracle user in each node.
# passwd oracle
E. We can perform automatic configuration by using yum command. If you want to do manual configuration, skip this step and go to next step.
Execute following command to perform all prerequisites automatically. The below command will install all required packages which are needed for RDBMS software installation.
# yum install oracle-rdbms-server-12cR1-preinstall –y
Add the following lines to the /etc/security/limits.conf file.
# Oracle user
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
F. Skip this step if you have followed above step, otherwise perform following tasks on each node.
Install following RPM packages (or latest version) from either yum repository or from Linux 6 media
binutils- (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (i686)
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (i686)
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (i686)
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6 (i686)
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6 (i686)
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6 (i686)
libXext-1.1 (x86_64)
libXext-1.1 (i686)
libXtst- (x86_64)
libXtst- (i686)
libX11-1.3 (x86_64)
libX11-1.3 (i686)
libXau-1.0.5 (x86_64)
libXau-1.0.5 (i686)
libxcb-1.5 (x86_64)
libxcb-1.5 (i686)
libXi-1.3 (x86_64)
libXi-1.3 (i686)
sysstat-9.0.4-11.el6 (x86_64)
On each node, edit /etc/sysctl.conf and add following entries to set kernel parameters
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
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
Execute following command after adding above lines in /etc/sysctl.conf file as root user.
# /sbin/sysctl -p
On each nodes, edit the /etc/security/limits.conf file to set shell limits for oracle user.
# Oracle user
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
G. Create the required directories for Oracle Inventory, Oracle base and Database Software installation. Set the required permission on the created directories.

Installation procedure:

1. Now login as oracle user and go to the oracle database stage area directory. Now start the Oracle universal installer (OUI) by using the following command.
$ ./runInstaller

2. The below screen is for configuring the Oracle Support credentials, which are required for Oracle Configuration Manager. If you have valid credentials and the server is connected to the Internet, then you should provide these details. Otherwise, you can skip this option and configure them after installation.

3. Three options are available here in this screen. Create and Configure, Install only and Upgrade. You are performing a fresh software installation only, so you should choose Install database software only. Click on Next button.

4. As we are going to perform the installation on a single node, choose the options as Single Instance database installation. Click on Next button.

5. In this screen the installer will display the available languages. Select the languages from the list in which you want the oracle product to run. You can Select multiple languages if you want to run database in different localizations. Click on Next button.

6. Now the database edition window will be shown as below, Select the database edition as Enterprise Edition and click on Next button.

7. Specify the path for Oracle Base and Software Location and click on Next button.

8. If this is the first installation on your Linux server, then you will be presented with a below screen. Specify the path for Inventory directory and specify the orainventory group from the drop down list. Now click on Next button.

9. It requires the operating system groups for installing Oracle RDBMS ( Home and the database for OS authentication. Select the desired operating system groups and click on next button.

10. Now the installer will perform prerequisite checks and list the errors and warning. If there are no warning it displays the summary information. Please resolve the issues, before going to next step if you have any.

11. Now you will be presented with a Summary screen as below. Click on Install button to start the installation.

12. The installation will be processed as shown below. Wait for the installation to complete.

13. Execute the root scripts as a root user when prompted to run the scripts. Once you are done click on OK button.

14. The successful installation shows the below screen. Click on Close button to exit the installer.
This completes the successful Oracle 12cR1 Database Installation.


Post a Comment