I have tried following steps for RAC implementation... unfortunately it failed on Ubuntu 12.04 as Oracle Grid infrastructure is not been supported on Ubuntu drivers.
Going ahead, Oracle is no more supporting RAC on Red hat and SuSe starting with release Red hat 6.0 and SuSe 12. ( As per information I got so far)
Specification :
Pre-Installation :
2) Each of the Server should have 2 NIC cards
( we must have both of these group on different VLANs as above. all can co-exist on the same Physical switch; that should not be an issue )
3) Configure SCAN ( Single Client Access Name : http://www.oracle.com/technetwork/products/clustering/overview/scan-129069.pdf )
I have DNS setup in my network so I will use the same. If you don't have DNS setup you can hardcode these IP addresses under /etc/hosts file.
SCAN using DNS:
1) Add Scan entry on DNS server with 3 IP addresses for same host. Enable Round Robin on DNS
( Demo : http://www.oraclemasters.in/?p=1296#dns)
2) Once the entry is added in DNS test it from Local Client as
Server: 10.77.224.101
Address: 10.77.224.101#53
Address: 10.88.33.26
Address: 10.88.33.24
Address: 10.88.33.25
if you execute this command multiple time, you will notice that the list if IP addresses is varying in Round robin fashion.
3) These above 3 IP addresses are Virtual IPs. So your Ping should fail for each of them till the time we install Grid clusterware .
<< Execute following setups 4-9 on all the nodes >>
4) Make sure each of the node has following Packages Installed :
Oracle Software Prerequisites Install required packages
apt-get install build-essential
apt-get install expat
a.
$ wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-25ubuntu1_amd64.deb
( you may have to check the latest package available on site http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3 and following file paths may change as per package structure )
8) Modify the kernel parameter file
I have appended the following entries in /etc/sysctl.conf file.
Login as root and execute :
$echo "#">> /etc/sysctl.conf
$echo "# Oracle 11gR2 entries">> /etc/sysctl.conf
$echo "fs.aio-max-nr=1048576" >> /etc/sysctl.conf
$echo "fs.file-max=6815744" >> /etc/sysctl.conf
$echo "kernel.shmall=2097152" >> /etc/sysctl.conf
$echo "kernel.shmmni=4096" >> /etc/sysctl.conf
$echo "kernel.sem=250 32000 100 128" >> /etc/sysctl.conf
$echo "net.ipv4.ip_local_port_range=9000 65500" >> /etc/sysctl.conf
$echo "net.core.rmem_default=262144" >> /etc/sysctl.conf
$echo "net.core.rmem_max=4194304" >> /etc/sysctl.conf
$echo "net.core.wmem_default=262144" >> /etc/sysctl.conf
$echo "net.core.wmem_max=1048586" >> /etc/sysctl.conf
$echo "kernel.shmmax=2147483648" >> /etc/sysctl.conf
Issue the command to reload kernel parameter :
I have appended the following entries in /etc/sysctl.conf file.
Login as root and execute :
$echo "#">> /etc/sysctl.conf
$echo "# Oracle 11gR2 entries">> /etc/sysctl.conf
$echo "fs.aio-max-nr=1048576" >> /etc/sysctl.conf
$echo "fs.file-max=6815744" >> /etc/sysctl.conf
$echo "kernel.shmall=2097152" >> /etc/sysctl.conf
$echo "kernel.shmmni=4096" >> /etc/sysctl.conf
$echo "kernel.sem=250 32000 100 128" >> /etc/sysctl.conf
$echo "net.ipv4.ip_local_port_range=9000 65500" >> /etc/sysctl.conf
$echo "net.core.rmem_default=262144" >> /etc/sysctl.conf
$echo "net.core.rmem_max=4194304" >> /etc/sysctl.conf
$echo "net.core.wmem_default=262144" >> /etc/sysctl.conf
$echo "net.core.wmem_max=1048586" >> /etc/sysctl.conf
$echo "kernel.shmmax=2147483648" >> /etc/sysctl.conf
Issue the command to reload kernel parameter :
$ sysctl -p
root@PTS0009:~# sysctl -p
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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 = 1048586
kernel.shmmax = 2147483648
root@PTS0009:~#
root@PTS0009:~# sysctl -p
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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 = 1048586
kernel.shmmax = 2147483648
root@PTS0009:~#
a. Since Ubuntu does not have by default support of Oracle ASM you will have to download (http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html) and installation compatible to your kernel version.
1) Create group : dba, oinstall, asmadmin, asmdba, asmoper on all the nodes for Oracle software and ASM
2) Create users : Oracle ( for oracle software owner) and grid ( for oracle cluster owner) as follows :
$ id grid
$ id oracle
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.
Default user to own the driver interface []: grid
a. Check Current status
Then, thought, will go with Shared storage instead of ASM for Voting Disk and OCR (https://forums.oracle.com/forums/thread.jspa?threadID=2419105&messageID=10478176#10478176) And launch the installer but now I have following error L There is no support available for this issue on OTN.
Pretty interesting post! Thanks it was interesting. on website
ReplyDelete