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:

supported12c

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.

unzip linuxamd64_12c_database_1of2.zip
unzip linuxamd64_12c_database_2of2.zip

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
 127.0.0.1 localhost localhost.localdomain
 127.0.0.1 localhost4 localhost4.localdomain4
 192.168.0.59 oracle12c oracle12c.fqdn.org

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 http://public-yum.oracle.com

Otherwise you can do it manually:

2.2.5.1 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

2.2.5.2 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

2.2.5.3 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

2.2.5.4 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

2.2.5.5 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.
 SELINUX=disabled
 # SELINUXTYPE= can take one of these two values:
 # targeted - Targeted processes are protected,
 # mls - Multi Level Security protection.
 SELINUXTYPE=targeted

–> 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:
install1

2. I’vh passed the update screens:
install2install3

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

4. Just single instance:
install5

5. Default languages:
install6

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

7. Check an OFA compliant location:
install8

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)

install9

9. Summary & Process:
install10install11

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s