Friday, 21 November 2014

Installing Oracle 12c Rac on VirtualBox - Part 2

Hi there,
following you'll find the second part of "Installing Oracle 12c Rac on VirtualBox".

1) Install the required RPM module :

yum install gcc
yum install kernel-uek-devel
yum search oracle-rdbms-server

2) Create the Oracle and Grid users and groups:

groupadd -g 1500 dba
groupadd -g 1501 oinstall
groupadd -g 1502 asmadmin
groupadd -g 1503 asmdba
groupadd -g 1504 asmoper


useradd  -u 1500 -p oracle -g oinstall -G dba,asmdba oracle
useradd  -u 1501 -p oracle -g oinstall -G dba,asmdba,asmadmin,asmoper grid


NB: According to Oracle reference book I decided to keep divided the Oracle software owner from the Grid software owner.

3) Create the ORACLE_HOME and ORACLE_BASE directory :

mkdir -p /u01/app/12.1.0/grid
mkdir -p /u01/app/grid
mkdir -p /u01/app/oracle
chown -R grid:oinstall /u01
chown oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/


4) Configure operating system kernel parameter :

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


5) Modify Grid and Oracle resource limit :

File : /etc/security/limits.conf
   
 grid   soft    nproc    2047
 grid   hard   nproc   16384
 grid   soft    nofile    1024
 grid   hard   nofile    65536
 grid   soft    stack    10240
 grid   hard   stack    10240
   
oracle   soft    nproc    2047
oracle   hard   nproc   16384
oracle   soft    nofile    1024
oracle   hard   nofile    65536
oracle   soft    stack    10240
oracle   hard   stack    10240



6) Configuring shared storage: 

Oracle clusterware needs to be able to work a shared storage, so it's necessary to configure the server machine and the linux server too.

Let's start with the virtual machine !

First of all you have to stop the linux server and then using the Oracle Virtual box client do the following:

1) Add a SCSI controller.

2) Create three new VDI disks with a fixed size.

 OcrVoting    6Gb
 ORADATA      6Gb
 ORAFRA       6Gb


3) From the menu FILE of Virtual box program open the Virtual Media Manager utility.

4) Mark all of then as sharable disks.

 All these steps end up creating sharable disks that we are going to use within our cluster which is made up with two linux server.

Let's get the ball rolling, shall we ?

First of all we have to configure new disks within the linux server. There are different tricks to do so. For example we can use UDEV rules or asmlib plus multipath daemon. Both of them turn out to make the disks persistent during a system reboot.

By the way, since this is only a Test environment I won't install and configure the multipath daemon but don't do it in a production environment it's dangerous !!!

To be continued.....

Byeee




No comments:

Post a Comment