Oracle 12cR1 2-node RAC on CentOS 6.4 on VMware Workstation 9 – Part III

Time Required: 20 minutes

Class Materials:

  • none

Next we need to configure the Linux kernel to support Oracle 12cR1.

Before we can install Oracle 12cR1 on our new VM, we need configure the Linux kernel. The following steps modify key settings to allow Oracle to execute.

Edit the /etc/sysctl.conf and add following lines:

# added for Oracle 12cR1
kernel.shmall = 2097152
kernel.shmmax = 3221225472
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
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

The kernel.shmall and kernel.shmmax parameters are already set in the default install. Comment out the existing values so they do not conflict.

Now execute sysctl -p command to apply the new settings:

Note that the kernel.shmmax must be at least half of the physical RAM. If you set your VM RAM to 4GB, this figure would have to be typically set at 2147483648. If you use a figure slightly higher than 4096MB then the kernel.shmmax must be increased accordingly.

Edit the /etc/pam.d/login file and add following line:

# added for Oracle 12cR1
session    required

Edit the /etc/security/limits.conf file and add following lines:

# added for Oracle 12cR1
oracle              soft   nproc   2047
oracle              hard   nproc   16384
oracle              soft   nofile  1024
oracle              hard   nofile  65536
oracle              soft   stack   10240
oracle              hard   stack   10240

Unlike 11g, Oracle 12c is designed to work with SE Linux, so this feature does not need to be disabled.

Next we are going to disable the Linux firewall, which will otherwise interfere with the RAC install. First let’s make sure the firewall service is stopped:

[root@localhost ~]# service iptables stop
Flushing firewall rules: [  OK  ]
Setting chains to policy ACCEPT: filter [  OK  ]
Unloading iptables modules: [  OK  ]


To permanently disable the firewall we will disable the service:

[root@localhost ~]# chkconfig iptables off

Now we have the Linux kernel ready for Oracle.

Article Quick Navigation
Previous Step Main Index Next Step

Leave a Reply

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

You are commenting using your 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