Oracle 12c Installation under Linux x86_64

The new release is here. We will check if there some changes in the installation process. For my demo i’vh used an Oracle Enterprise Linux 6.4 x86_64.

1. Check support state

The new Software is to new to support all plattforms now. So we will check the supportet plattforms:


2. Check prerequirements

The pre requirements are nearly the same as in 11g. Here the link

Here a list:

2.1 Hardware / OS Requirements

2.1.1 RAM

Minimum: 1 GB of RAM

2.1.2 Swapspace

Available RAM Swap Space Required
Between 1 GB and 2 GB 1.5 times the size of the RAM
Between 2 GB and 16 GB Equal to the size of the RAM
More than 16 GB 16 GB

2.1.3 /tmp Mountpoint

Since 11.2 there is a minimum of 2 GB required.

2.2 Software

2.2.1 Download

Oracle 12c software from Oracle Download Portal (OTN)

2.2.3 Unpack both ZIP Files in the same directory

There may be a question about overwritting –> Yes.


2.2.4 Check /etc/hosts

There are some bug’s if the local hostname can’t be resolved. Add the local full qualified hostname and ip address to the local hosts file:

[root@oracle12c ~]# cat /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4 oracle12c

2.2.5 Check the installed packages, kernel and user requirements

If you are using RHEL or a binary clone like OEL you can use the “oracle-rdbms-server-11gR2-preinstall” package from

Otherwise you can do it manually: Add and/or modify /etc/sysctl.conf

 fs.file-max = 6815744
 kernel.sem = 250 32000 100 128
 kernel.shmmni = 4096
 kernel.shmall = 1073741824
 kernel.shmmax = 4398046511104  More than half the physical memory (See My Oracle Support Note 567506.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

To activate the parameters submit /sbin/sysctl -p Add to /etc/security/limits.conf

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

yum install binutils compat-libcap1 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 -y Add oracle user

 groupadd oinstall
 groupadd dba
 #groupadd oper
 #groupadd backupdba
 #groupadd dgdba
 #groupadd kmdba
 #groupadd asmdba
 #groupadd asmoper
 #groupadd asmadmin
 useradd -g oinstall -G dba oracle
 passwd oracle Turn off firewall and selinux

[root@oracle12c ~]# cat /etc/sysconfig/selinux
# 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 - No SELinux policy is loaded.
 # SELINUXTYPE= can take one of these two values:
 # targeted - Targeted processes are protected,
 # mls - Multi Level Security protection.

–> If you don’t want to reboot submit: setenforce Permissive

And turn off firewall:

 [root@oracle12c ~]# service iptables stop
 [root@oracle12c ~]# service ip6tables stop
 [root@oracle12c ~]# chkconfig iptables off
 [root@oracle12c ~]# chkconfig ip6tables off

2.2.6 Create directories, unpack and start installation:

 mkdir -p /u01/app/oracle/product/12.1.0/db_1
 chown -R oracle:oinstall /u01
 chmod -R 775 /u01

Go to upacked software and start ./runInstaller in an X Session (VNC e.g)

1. The default installer screen is almost the same as before:

2. I’vh passed the update screens:

3. We will configure the database later, the database only now:

4. Just single instance:

5. Default languages:

6. To check all features we will test Enterprise Edition:

7. Check an OFA compliant location:

8. This is new. In 12c Oracle has introduced some more OS roles to split competence regions:
– OSDBA (sysdba as before)
– OSOPER (sysoper as before)
– OSBACKUP (Backup Administator)
– OSDGDBA (Dataguard Administrator)
– OSKMDBA (Encryption Key Management Administrator)


9. Summary & Process:

10. Done. We’vh installed the 12c software now.

Oracle OCM

On 28. May 2013 i started my journey to get Oracle Database 11g Administrator Certified Master.

From the exams before (Oracle Database Administrator Certified Associate and Professional), which weren’t a really problem, the master exam was a real challenge.

Together with my college, we traveled from Vienna to Munich to do the practical exam. After two days in highest concentration we have it done, but I havn’t no idea what was happens in future.

After one week my college got the result and passed the exam. In cause of complication with the course submittment forms after the exam, I got the results one month later. This was an unpleasant time.

But it have been done. I’m also a part of a small group of experts and I’m very proud to be it now.