• Arun Kumar

Oracle 11gR2 RAC Installation on Oracle Linux 6.5

In this article we will be installing 2 node 11gR2 RAC on Oracle Linux 6.5. We will be looking at below steps


Configure VM for Node 1


Open virtual box and create a new VM for node 1. We will be installing OEL 6.5 on both RAC nodes.


Create New VM


Open virtual box and click on New. Create first virtual machine with oraracn1 as the name

create virtual machine - name and operating system

Min RAM allocation should be 4 GB per RAC node

create virtual machine - memory size

Create a virtual disk now

create virtual machine - hard disk

Select VDI and click next

create virtual hard disk - virtualbox disk image

Select Dynamically allocated option and click next

create virtual hard disk - storage on physical hard disk

Allocate Min 80 GB HDD to your virtual machine. You can allocate even more if you have good hard disk space. Click on Create

create virtual hard disk - file location and size

Now your virtual machine should be created. This is how your virtual box will look like


Right click on virtual machine and select settings. Under System settings, make sure to set below bootorder

virtual machin settings - system settings

Under storage > Optical Drive > choose OEL 6.5 iso file from your system.

virtual machine - load iso file in settings

Under Network, make sure attached to is set to Bridged Adapter and Enable the Network Adapter

virtualbox network settings

In RAC, we need to have two network adapters. So, enable the second adapter same like the first one.

virtualbox network settings

Click on OK to complete the RAC node 1 setup.



Install OEL 6.5 on Node 1


Now that our virtual machine is ready, go ahead, start the virtual machine and install OEL 6.5

oracle 11gr2 rac installation - oracle linux 6

Skip media test

oracle 11gr2 rac installation - skip media test

Click next to continue

oracle 11gr2 rac installation - oracle linux 6

Go with default language > click next

oracle 11gr2 rac installation - language

Go with default keyboard type and click on next

oracle 11gr2 rac installation - select appropriate keyboard

Select Basic Storage Devices > Click Next

oracle 11gr2 rac installation - basic storage devices

Select Yes, Discard and data

oracle 11gr2 rac installation - discard

Give a hostname to your machine oraracn1.oraclgenesis.com

oracle 11gr2 rac installation - hostname

Click on configure network and assign a static IP

oracle 11gr2 rac installation - configure network connections

Assign public IP to your machine. In my case, I have assigned 192.168.0.101 as the machine IP

oracle 11gr2 rac installation - IP address

Select second network card and click on edit

oracle 11gr2 rac installation - second network card

Assign private IP to your node 1 on a different subnet mask. Leave Gateway blank

editing system eth0 - Assign private IP

Click next and select your timezone

prod_srv on oralab - Select Timezone

Give a root password

prod_srv on oralab - root

Select create custom layout and click next

prod_srv - create custom layout

Select Free disk space and click on create

prod_serv on oralab - mount point

Choose standard partition and click Create

prod_srv on oralab - select standard partition

Create boot partition with 512 MB size

create boot partition with 512 MB size

Once again choose free disk space and click on create

oracle free disk

Select file system type as Swap and give 15 GB size (Approx 15000 MB)

oracle file system type - swap

Again select free space and click on create

oracle 11gr2 rac installation - select free space

Give mount point as root (/) and chose option Fill to maximum allowable size

oracle 11gr2 rac installation - mount point /

Click next and choose Format option

oracle format

Select Write changes to disk

oracle 11gr2 rac installation - write changes to disk

No changes on below screen, just click next

oracle 11gr2 rac installation - oracle linux server

Choose customize now and just click next

oracle 11gr2 rac installation - basic server

From the list, select packages as below:


Base System

  • Base

  • Client management tools

  • Compatibility libraries

  • Hardware monitoring utilities

  • Large Systems Performance

  • Network file system client

  • Performance Tools

  • Perl Support

Servers

  • Server Platform

  • System administration tools

  • Desktops

  • Desktop

  • Desktop Platform

  • Fonts

  • General Purpose Desktop

  • Graphical Administration Tools

  • Input Methods

  • X Window System

Development

  • Additional Development

  • Development Tools

Applications

  • Internet Browser

oracle 11gr2 rac installation - oracle base

Click next and OEL installation will begin

oracle 11gr2 rac installation - begin oel installation

Once done, click on Reboot

oel installation reboot

After reboot, there are few post installation steps. Click on Forward

oracle post installation steps

Accept the license and click on Forward

oracle 11gr2 rac installation - Accept the license

Choose No and click on Forward

setup software updates

Select No thanks and proceed

firstboot - select no, thanks

Click forward

oracle 11gr2 rac installation - finish updates setup

Do not create any user at this stage, click forward

oracle 11gr2 rac installation - create user

Choose Yes

system

Check the Date and Time settings and click on forward

oracle change date and time

Nothing to choose under Kdump, click forward

oracle - kdump

OEL 6.5 installation is completed.



Configure VM for Node 2


You need to create Node 2 like how you have created Node 1 in virtual box. This will be a separate new virtual machine. I have used below configuration for node 2:

configure vm for node 2

Install OEL 6.5 on Node 2


Now that our virtual machine is ready, go ahead and start the virtual machine.

install oel 6.5 on Node 2

Start virtual machine and install OEL 6.5

Configure VM for Node 2 - install oel 6.5

Skip media test

Configure VM for Node 2 - skip media test

Click next to continue

oracle 11gr2 rac installation on oracle linux 6.5

Go with default language > click next

prod_srv on oracle - change language

Go with default keyboard type and click on next

Configure VM for Node 2 - select the appropriate keyboard

Select Basic Storage Devices > Click Next

Configure VM for Node 2 - select basic devices

Select Yes, Discard and data

Configure VM for Node 2 - select yes, discard any data

Give a hostname to your machine oraracn2.oraclgenesis.com

Configure VM for Node 2 - give hostname

Click on configure network and assign a static IP

Configure VM for Node 2 - configure network and assign static IP

Assign public IP to your machine. In my case, I have assigned 192.168.0.102 as the machine IP.

configure vm for node 2 - public IP

Select second network card and click on edit

configure vm for node 2 - select system eth1

Assign private IP to your node 2 on a different subnet mask. Leave Gateway blank

configure vm for node 2 - assign private ip to node 2

Click next and select your timezone

configure vm for node 2 - select time zone

Give a root password

configure vm for node 2 - give root password

Select create custom layout and click next

configure vm for node 2 - create custom layout

Select Free disk space and click on create

configure vm for node 2 - select free disk space

Choose standard partition and click Create

configure vm for node 2 - select standard partition

Create boot partition with 512 MB size

configure vm for node 2- create /boot partitions

Once again choose free disk space and click on create

configure vm for node 2 - choose free disk space

Select file system type as Swap and give 15 GB size (Approx 15000 MB)

configure vm for node 2 - select file system type as swap

Again select free space and click on create

configure vm for node 2 - free disk space

Give mount point as root (/) and chose option Fill to maximum allowable size

configure vm for node 2 - mount point /

Click next and chose Format option

configure vm for node 2 - select device

Select Write changes to disk

configure vm for node 2 - select write changes to disk

No changes on below screen, just click next

configure vm for node 2 - no changes boot loader

Choose customize now and just click next

oracle linux server - select customize now

From the list, select packages as below


Base System


select the package - base system
select the package - networking

Servers:Desktops

select the package - servers

Desktops

select the package - desktop - desktop platform

Applications

select the package - applications internet browser

Development

select the package - development tools

Click next and OEL installation will begin

install oel

Once done, click on Reboot

install oel - reboot

After reboot, there are few post installation steps. Click on Forward

oracle oel installation - post installation steps

Accept the license and click on Forward

configure vm for node 2 - accept the license

Choose No and click on Forward

configure vm for node 2 - setup software updates

Select No thanks and proceed

configure vm for node 2 - updates

Click forward

configure vm for node 2 - finish updates setup

Do not create any user at this stage, click forward

configure vm for node 2 - create user

Choose Yes

configure vm for node 2

Check the Date and Time settings and click on forward

configure vm for node 2 - check date and time

Nothing to choose under Kdump, click forward

configure vm for node 2 - kdump

OEL 6.5 installation on Node 2 is completed.

configure vm for node 2 - oel 6.5 installation


OS Prerequisites – All Nodes


Connect to both RAC nodes via putty and execute all the below commands on both nodes.


Check if your machine is able to speak to internet. You can ping yahoo.com. Then install below package to perform all oracle installation pre-requisites

yum -y install oracle-rdbms*

Install ASM packages

yum -y install oracleasm*
yum -y install kmod-oracleasm

Change password for oracle user

passwd oracle

Disable firewall

/etc/rc.d/init.d/iptables status
/etc/rc.d/init.d/iptables stop
service iptables stop
chkconfig iptables off
echo 0 > /selinux/enforce

Create directories to install grid and oracle software

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

mkdir -p /u02
chown -R oracle:oinstall /u02

Download Oracle 11.2.0.4 gird and database binaries. Copy it to /u02 location (Only on Node 1)

oracle 11g grid software installation


Setup Public & Private Network


We have below public and private network configuration for our RAC setup

setup public & private network - rac setup on node 1

Also, below are the Virtual IP and Scan IP details:

setup public & private network - rac setup on node 2

Depending upon your environment, change IP addresses and put below under /etc/hosts file on both oraracn1 and oraracn2 nodes

On both nodes:
==============
127.0.0.1 localhost.localdomain localhost

# Public Network	- (eth0)
192.168.0.101	oraracn1.oraclegenesis.com	oraracn1
192.168.0.102	oraracn2.oraclegenesis.com	oraracn2

# Private Interconnect - (eth1)
10.10.10.101	oraracn1-priv.oraclegenesis.com	oraracn1-priv
10.10.10.102	oraracn2-priv.oraclegenesis.com	oraracn2-priv

# Public Virtual	IP (VIP) addresses - (eth0:1)	
192.168.0.105	oraracn1-vip.oraclegenesis.com	oraracn1-vip
192.168.0.106	oraracn2-vip.oraclegenesis.com	oraracn2-vip

# Single Client Access Name (SCAN)	
192.168.0.110	orarac-scan.oraclegenesis.com	orarac-scan

Test the network configuration

On oraracn1:	
============	
# ping oraracn1          --> use Ctrl+C to exit from ping
# ping oraracn2	
# ping oraracn1-priv	
# ping oraracn2-priv	

On oraracn2:	
============	
# ping oraracn1          --> use Ctrl+C to exit from ping
# ping oraracn2	
# ping oraracn1-priv	
# ping oraracn2-priv

Note: You cannot ping VIP and SCAN IP. Those IPs can only be used by an application and are not ping-able!


Configure Shared Storage


At this stage, shutdown both the virtual machines. We will allocate shared disks to RAC nodes. Open oraracn1 virtual machine settings and select storage. Click on Adds Hard Disk button under SATA controller

Configure Shared Storage - adds hard disk

Choose Create new disk