Mini VMWare Oracle RAC (3GB) on RedHat Linux

Links: http://www.dbatools.net/experience/mini_vmware_oracle_rac.html

    I created a 4GB disk for the first node, choose the minimum installation of OS (RedHat Advanced Server 4 Update 5), and then installed the development packages and X-Window packages. But for the second node, I just created a 3GB disk for it, partitioned as following.

/boot : 64MB
swap  : 384MB
/     : 2578MB

    Then manually installed the development packages.

rpm -i gcc-3.4.6-8.i386.rpm \
       cpp-3.4.6-8.i386.rpm \
       glibc-devel-2.3.4-2.36.i386.rpm \
       glibc-headers-2.3.4-2.36.i386.rpm  \
       glibc-kernheaders-2.4-9.1.100.EL.i386.rpm
rpm -i compat-libstdc++-33-3.2.3-47.3.i386.rpm \
       compat-gcc-32-3.2.3-47.3.i386.rpm
rpm -i libaio-0.3.105-2.i386.rpm

    Oracle installer require gcc 3.2, the default is gcc 3.4, so we need to do some changes as following.

cd /usr/bin
mv gcc gcc34
ln -s gcc32 gcc

    You will found that both CRS and DB software have three common directory, "jdk", "jre" and "perl". For space saving, you can share the jdk directory with soft links. And also removed the DB template files and the classes.bin of java VM option. After this changes, the whole CRS and DB binary files take about 1.2GB disk space.

cd $ORACLE_HOME
mv jdk ..
\rm -fr jdk
\rm -fr jre
ln -s ../jdk jdk
ln -s ../jdk/jre jre
ln -s ../jdk/jre JRE
cd $ORA_CRS_HOME
\rm -fr jdk
\rm -fr jre
ln -s ../jdk jdk
ln -s ../jdk/jre jre
ln -s ../jdk/jre JRE

    Actually I just copy the CRS and DB binary from the first node with rsync utility. The next step is installing OCFS2, you can download the RPM files from Oracle.

rpm -i ocfs2-2.6.9-55.ELsmp-1.2.7-1.el4.i686.rpm \
       ocfs2-tools-1.2.7-1.el4.i386.rpm

    Then add the new node into CRS registry, by the following command.

clscfg -add -nn ... -pn ... -hn ...

    In the new installed node, run the following command to configure and start the CRS software.

$ORA_CRS_HOME/install/rootinstall
$ORA_CRS_HOME/rootconfig -crshome=$ORA_CRS_HOME

    Then make some changes to the database parameter file, and create undo and redo thread for the new node, you can open the database on the second node easily.

Post a comment

« Previous | Main | Next »

Powered by
Movable Type 3.36