Oracle Labs by Yuri Khazin, Oracle DBA

Virtual Oracle RAC. Task 5: Patching Oracle Enterprise Linux 5 for Oracle Installation

Link back: This guide is a part of the Virtual Oracle RAC project, the index to the whole project is here.

This part of the project provides instructions on preparing Oracle software installation in Oracle Enterprise Linux 5 (which itself is in Virtual Box).

In previous guides we have installed OEL5 U3 as a guest machine in Virtual Box. This is our first node of the RAC. Once we finished with all software installations on that node we will simply clone it, thus saving a lot of time and effort.

Network verification and configuration:

Please refer to the /etc/hosts file that was introduced in Openfiler installation and setup, it will be placed in all of our Linux machines.

Edit /etc/hosts on “odbn1” by copy and paste it or use ftp.

Notice, that node name(s) are not present in the loopback address. That’s right, they should not be there for the RAC to work properly.

Some adjustments must be done in the kernel for the network (those commands do not make the changes permanent):

sysctl -w net.core.rmem_default=1048576
sysctl -w net.core.rmem_max=1048576
sysctl -w net.core.wmem_default=262144
sysctl -w net.core.wmem_max=262144

Same changes have to be made permanently in /etc/sysctl.conf file, add following lines to the config file:


Verify that firewall is indeed stopped by running this command:

/etc/rc.d/init.d/iptables status

Use the command below if the firewall is active:

/etc/rc.d/init.d/iptables stop

Now is the time to install Linux packages needed by Oracle.

Attach the installation DVD to the “odbn1” machine (right click on CD image in the running guest window, select “more CD/DVD Images”):

Select the proper image (if it is not displayed you will have to launch Media Manager first and register the image file):

Use SSH terminal (PuTTY for instance) to log into “odbn1” with root credentials. It does not matter which interface you use now for the session, public or private.

Execute these commands:

mkdir -p /media/cdrom
mount -r /dev/cdrom /media/cdrom
cd /media/cdrom/Server

Now let’s run installation for all packages that needed by Oracle, if some of them are already here the particular command will be skipped.

rpm -Uvh binutils-2.*
rpm -Uvh elfutils-libelf-0.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh libaio-0.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh make-3.*
rpm -Uvh elfutils-libelf-devel-0.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh unixODBC-2.*
rpm -Uvh compat-libstdc++-296*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libXp-1.*
rpm -Uvh openmotif-2.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-devel-2.*

We can see that some of the packages were there and some were installed. Good.

Now we will install iSCSI package (supplied but not installed by default):

rpm -Uvh iscsi-initiator-utils-

Next chapter.

Leave a Comment »

No comments yet.

RSS feed for comments on this post.

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

Blog at

%d bloggers like this: