Build 2 Node Oracle RAC 11gR2 Clear Steps
Build 2 Node Oracle RAC 11gR2 Clear Steps
The four virtual machines, OEL64A, OEL64B, OEL64C and OEL64D, will be configured for RAC nodes
each with:
3GB RAM
100GB bootable disk (Disk space will be dynamically allocated nota fixed size pre-allocation)
NIC – bridged for public interface in RAC with address192.168.2.21/22/23/24 (first IP 192.168.2.21 on
oel64a, second IP192.168.2.22 on node oel64b, 192.168.2.23 on oel64c and 192.168.2.24 on oel64d).
These are public interface in RAC.
NIC – bridged for private interface in RAC with address10.10.2.21/22/23/24 (first IP 10.10.2.21 on
oel64a, second IP10.10.2.22 on node oel64b, 192.10.2.23 on oel64c and 192.10.2.24 on oel64d).
These are private interface in RAC.
NIC – bridged for private interface in RAC with address10.10.5.21/22/23/24 (first IP 10.10.5.21 on
oel64a, second IP 10.10.5.22 on node oel64b, 10.10.5.23 on oel64c and 10.10.5.24 on oel64d). These
are private interface in RAC.
NIC – bridged for private interface in RAC with address10.10.10.21/22/23/24 (first IP 10.10.10.21 on
oel64a,second IP10.10.10.22 on node oel64b, 10.10.10.23 on oel64c and 10.10.10.24 on oel64d).
These are private interface in RAC.
10 2GB attached shared disks for the ASM storage. (ExternalRedundancy ASM disk groups will be
deployed).
oel64
1.Create an OEL64 VM with OEL 6.4 as guest OS for node oel64.
2.Configure the OEL64A VM to meet the prerequisites for GI and RAC
12.1.0.2deployment.
3.Clone OEL64 to OEL64A.
4.Clone OEL64A to OEL64B.
5. Clone OEL64A to OEL64C
6. Clone OEL64A to OEL64D
6.Setup DNS and DHCP server on OEL64.
7.Install GI 12.1.0.2 on oel64a,oel64b,oel64c and oel64d.
7.Install RAC RDBMS 12.1.0.2 on oel64a, el64b, oel64c and oel64d.
8.Create a policy managed database RACDB sule1 and sule2.
9.Verify database creation and create a service.
Note Here: Nodes OEL64A and OEL64B are Hub Nodes and will have ASM and DB instances. OEL64C and
OEL64D will be Leaf Nodes for Application Deployment
OEL64
OEL64A RAC OEL64B RAC OEL64A RAC OEL64B RAC Network
Storage,
node node node node Type
DNS and DHCP
Reboot oel64server.
Set up DNS
The steps in this section are to be executed as root user only on oel64. Only/etc/resolv.conf needs to be
modified on all three nodes as root.
2.168.192.in-addr.arpa
10.10.10.in-addr.arpa
5.10.10.in-addr.arpa
radical.com.
[root@oel64]# vi /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
// allow-recursion { any;};
// allow-recursion-on { any;};
// allow-query-cache { any; };
// allow-query { any; };
// dnssec-enable yes;
// dnssec-validation yes;
// dnssec-lookaside auto;
zone "2.168.192.in-addr.arpa" IN {
type master;
file "radical.com.reverse";
allow-update { none; };
};
zone "10.10.10.in-addr.arpa" IN {
type master;
file "priv1.com.reverse";
allow-update { none; };
};
zone "5.10.10.in-addr.arpa" IN {
type master;
file "priv2.com.reverse";
allow-update { none; };
};
zone "2.10.10.in-addr.arpa" IN {
type master;
file "priv3.com.reverse";
allow-update { none; };
};
zone "radical.com." IN {
type master;
file "radical.zone";
notify no;
};
zone "." IN {
type hint;
file "/dev/null";
};
include "/etc/named.rfc1912.zones";
[root@oel64 named]#
[root@oel64 ]# cd /var/named/
$ORIGIN radical.com.
@ IN SOA oel64.radical.com. root (
43 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS oel64
oel64 IN A 192.168.2.20
oel64a IN A 192.168.2.21
oel64b IN A 192.168.2.22
oel64c IN A 192.168.2.23
oel64d IN A 192.168.2.24
dns CNAME radical.com.
oel64a-priv1 IN A 10.10.10.21
oel64b-priv1 IN A 10.10.10.22
oel64c-priv1 IN A 10.10.10.23
oel64d-priv1 IN A 10.10.10.24
oel64a-priv2 IN A 10.10.5.21
oel64b-priv2 IN A 10.10.5.22
oel64c-priv2 IN A 10.10.5.23
oel64d-priv2 IN A 10.10.5.24
oel64a-priv3 IN A 10.10.2.21
oel64b-priv3 IN A 10.10.2.22
oel64c-priv3 IN A 10.10.2.23
oel64d-priv3 IN A 10.10.2.24
$ORIGIN grid.radical.com.
@ IN NS gns.grid.radical.com.
;; IN NS oel64.radical.com.
gns.grid.radical.com. IN A 192.168.2.52
oel64a IN A 192.168.2.21
oel64b IN A 192.168.2.22
oel64c IN A 192.168.2.23
oel64d IN A 192.168.2.24
[root@oel61 named]#
[root@oel64 named]#
[root@oel61 named]#
[root@oel61 named]#
Make sure that you enable named service for auto-start issuing the following command.
Disable the firewall by issuing the following command onall nodes oel61, oel64a and oel64b as root.
For production systems it is strongly recommended to adjust the iptablesrules so that you can have access to
the DNS server listening on port 53.
Modify the /etc/resolv.conf file to reflect the DNS IP address specified bynameserver parameter and the
domain specified by search parameteron allnodes (oel61, oel64a)
[root@oel64]# vi /etc/resolv.conf
# Generated by NetworkManager
search radical.com
nameserver 192.168.2.20
nameserver 10.10.2.20
nameserver 10.10.10.20
# NOTE: the libc resolver may not support more than 3 nameservers.
# Thenameservers listed below may not be recognized.
nameserver 10.10.5.20
options timeout:3
options attempts:2
Name: oel64.radical.com
Address: 192.168.2.20
Name: oel64a.radical.com
Address: 192.168.2.21
Name: oel64b.radical.com
Address: 192.168.2.22
Set up DHCP
[root@oel64]# vi /etc/dhcp/dhcpd.conf
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
ddns-update-style interim;
ignore client-updates;
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.20;
option subnet-mask 255.255.255.0;
option domain-name "grid.radical.com";
option domain-name-servers 192.168.2.52;
option time-offset -18000; # Eastern Standard Time
range 192.168.2.100 192.168.2.150;
default-lease-time 86400;
}
WARNING: Re-reading the partition table failed with error 16: Device or
resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@oel65 ~]#
You will see that /dev/sda4 – is extended partitionAnd /dev/sda5 is the new partition of around 64G
Create luns
[root@oel64 ]# chkconfigtgtd on
Hostname change
IP Address change
Reboot OEL64a
Discover and login using iscsi
Format all Disks from oel64a. In example I have shown only one.
Format the remaining disks as per above disk /dev/sdb, /dev/sdc, /dev/sdd, /dev/sde, /dev/sdf, /dev/sdg
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Name: oel65.radical.com
Address: 192.168.2.20
Name: oel65a.radical.com
Address: 192.168.2.21
Name: oel65b.radical.com
Address: 192.168.2.22
In installation for fixing the errors and make the changes in both the nodes (OEL64, OEL64a and OEL64b)
[root@oel64a ~]# cd /etc/
[root@oel64a etc]# rm ntp.conf
rm: remove regular file `ntp.conf'? yes
[root@oel64a etc]#
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
if you are loogged in as a root then you should fire the below command before to install the runInstaller.
Click Add.
add the oel64b.radica.com
AUTO
Click SSH Connectivity.
click on setup
click on test
Select 192.168.2 as public and all 10.10 as private. Press Next to continue.
run the script in root /tmp/CVU_11.2.0.4.0_grid/runfixup.sh in both the machines (OEL64a and OEK64b) as
below and then click ok.
you will receive below screen and make sure if the fixable is yes then you need to do again fix and check again
once that done it will give the script and need to run in both the machines.
but in below screen there is an errors and those are not fixable and just you need to ignore them by clicking
ignore all button.
click next button
click yes
click to install
Wait until prompted for running scripts as root.
Run both the scripts in both machines (if one script is complete in OEL64a then go to OEL64b) and same as
other script.
Check OS processes:
SQL>
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 10239 10144 0 10144 0 N FRA/
MOUNTED EXTERN N 512 4096 1048576 30717 30317 0 30317 0 Y OCR_VOTE/
MOUNTED EXTERN N 512 4096 1048576 10239 10144 0 10144 0 N ORADATA/
ASMCMD>
ASM GRID Database Software Creation Steps
[root@oel64a ~]# cd /home/
[root@oel64a home]# ll
total 12
drwxr-xr-x 6 grid oinstall 4096 Jan 28 23:19 grid
drwx------. 4 54321 54321 4096 Jan 23 22:58 oracle
drwx------. 4 xguest xguest 4096 Jan 23 22:58 xguest
[root@oel64a home]# ll
total 12
drwxr-xr-x 6 grid oinstall 4096 Jan 28 23:19 grid
drwx------. 4 oracle oinstall 4096 Jan 23 22:58 oracle
drwx------. 4 xguest xguest 4096 Jan 23 22:58 xguest
[root@oel64a home]# cd
[root@oel64b home]# ll
total 12
drwx------ 6 grid oinstall 4096 Jan 29 00:18 grid
drwx------. 4 54321 54321 4096 Jan 23 22:58 oracle
drwx------. 4 xguest xguest 4096 Jan 23 22:58 xguest
[root@oel64b home]# cd
[oracle@oel64a database]$ ll
total 2487208
-rwxr-x--- 1 oracle oinstall 1395582860 Jan 29 19:12 p13390677_112040_Linux-x86-64_1of7.zip
-rwxr-x--- 1 oracle oinstall 1151304589 Jan 29 19:14 p13390677_112040_Linux-x86-64_2of7.zip
[oracle@oel64a database]$ ll
total 60
drwxr-xr-x 4 oracle oinstall 4096 Aug 27 2013 install
-rw-r--r-- 1 oracle oinstall 30016 Aug 27 2013 readme.html
drwxr-xr-x 2 oracle oinstall 4096 Aug 27 2013 response
drwxr-xr-x 2 oracle oinstall 4096 Aug 27 2013 rpm
-rwxr-xr-x 1 oracle oinstall 3267 Aug 27 2013 runInstaller
drwxr-xr-x 2 oracle oinstall 4096 Aug 27 2013 sshsetup
drwxr-xr-x 14 oracle oinstall 4096 Aug 27 2013 stage
-rw-r--r-- 1 oracle oinstall 500 Aug 27 2013 welcome.html
On OEL64b Node
[root@oel64b ~]# /u01/app/oracle/product/11.2.0.4/db_1/root.sh
Performing root user operation for Oracle 11g
PATH=$PATH:$HOME/bin
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
To correct:
5. Check asm disk permissions, with two users it should be : grid — asmadmin
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
SQL>