0% found this document useful (0 votes)
28 views7 pages

2. RAC_Setup

Uploaded by

Online admin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views7 pages

2. RAC_Setup

Uploaded by

Online admin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

bcdedit /set hypervisorlaunchtype off - stop

restart

bcdedit /set hypervisorlaunchtype auto - start


restart

Oracle 12c RAC Setup:


=====================

=> Disabling firewalls

service firewalld stop


chkconfig firewalld off

service iptables stop


chkconfig iptables off

Installation of RAC:
====================
1. We are assuming 2 linux rac(2 vm's using vmware) with 1 shared storage(Open
filer) , NFS share, ISCSI(Openfiler), NAS & SAN()
2 linux rac

software
--------
-> Vmware
-> Linux OS - 2 vm's(linux)
RAM - min 4gb
networks - 2 (1 public, 1 private)
hard disk - 50gb each linux

-> Openfiler -SAN - shared storage - 1


RAM - 1g
network - 1 (1 private)
hard disk - 2 (1(10g) to install openfiler, 2(min 80g -> 100G) is to setup the
shared storage for creation of RAC(ocr,voting,database))

-> Grid software s/w 12.1.0.2(ocr&voting) - oracle


-> Oracle database s/w 12.1.0.2(crd) - oracle

2. set hostnames & Ip address to the cluster linuxs( eth0 - public, - eth1 -
private)

hostname -
ifconfig -

NIC1 - eth0 - public linux 1 ---- linux2 eth0 public


NIC2 - eth1 - private eth1 private

3. edit /etc/hosts with the linux details


12.1.0.2 - /etc/hosts or dns server
/etc/resolve.conf

/etc/hosts

#Public Ip's
192.168.1.101 linux1 linux1.example.com
192.168.1.102 linux2 linux2.example.com

#Private Ip's
192.168.2.101 linux1-priv linux1-priv.example.com
192.168.2.102 linux2-priv linux2-priv.example.com

#Virtual Ip's (VIP)


192.168.1.201 linux1-vip linux1-vip.example.com
192.168.1.202 linux2-vip linux2-vip.example.com

#SCAN Ip
192.168.1.151 rac-scan rac-scan.example.com
192.168.1.152 rac-scan rac-scan.example.com
192.168.1.153 rac-scan rac-scan.example.com

#SAN(openfiler)
192.168.2.150 openfiler openfiler.example.com

4. Install the required RPM's in the linux server - RHEL 6 * 11GR2

#rpm -ivh packagename.rpm - .exe - redhat package manager(rpm)

yum install binutils* compat-libstdc* elfutils* gcc* glibc* ksh* libaio* libgcc*
libstdc* make* pdksh* sysstat* *libcap* unixODBC* rsh* firefox* iscsi* -y

5. Edit the kernel values

# cat /etc/sysctl.conf RAM/2 = database memory

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 25097152
kernel.shmmax = 8536870912
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 = 1048576

#sysctl -p

6. create oracle users


GI s/w = $oracle user
RDBMS = $oracle user
#root
userdel -r user
mkdir -p /u01/app/oracle/product/12.1.0/db_home
mkdir -p /u01/app/oraInventory
mkdir -p /u01/app/12.1.0/grid
mkdir -p /u01/app/grid
groupadd -g 1001 oinstall
groupadd -g 1002 dba
groupadd -g 1003 oper
groupadd -g 1004 asmadmin
groupadd -g 1006 asmdba
groupadd -g 1007 asmoper
useradd -g oinstall -G dba,oper,asmdba,asmadmin,asmoper oracle
chown -R oracle:oinstall /u01/app/oraInventory
chown -R oracle:oinstall /u01/app/12.1.0/grid
chown -R oracle:oinstall /u01/app/grid
chown -R oracle:oinstall /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle/product/12.1.0/db_home
chmod -R 775 /u01/app/oraInventory
chmod -R 775 /u01/app/12.1.0/grid
chmod -R 775 /u01/app/oracle
chmod -R 775 /u01/app/oracle/product/12.1.0/db_home
chmod -R 775 /u01/app/grid
chmod -R 775 /u01/app/12.1.0
passwd oracle

8. edit security files with appropriate

Add the following lines to the /etc/security/limits.conf file:

oracle soft nproc 2047


oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

9. Add or edit the following line in the /etc/pam.d/login file, if it does not
already exist:

session required pam_limits.so

[root@dbhost1 ~]# more /etc/sysconfig/network

# Added NOZEROCONF as pre-requisite for 12c RAC

NOZEROCONF=yes

NETWORKING=yes

NETWORKING_IPV6=yes

HOSTNAME=dbhost1.paramlabs.com
10. Enable ssh(secure shell ) passwordless connectivity( oracle) - trusted
relationship
$ssh-keygen rsa
$ssh-keygen dsa
$pwd
$cd ~/.ssh
$pwd
/home/oracle/.ssh or /home/oracle/.grid
$cd .ssh
$ls
dsa.pub rsa.pub
cat dsa.pub > lix1
cat rsa.pub >> lix1
scp lix1

linux 2: do the same lix2


cat lix1 > authorized_key
cat lix2 >> authorized_key
scp authorized_key linux1:

ssh linux2 (yes/no)


ssh linux2ss

Note: Lets copy the software from your host to guest os.

11. Openfiler -- keeping asm disk are ready( configure and setup Openfiler and
register the linuxs )
setup ASM disks using udev,oracleasm,device multipath..et
NTFS, VFAT, EXT3,EXT4 , XFS
ASM - RAW DEVICES

open filer should configure as per below

yum install iscsi* -y .

SAN BOX - openfiler


vi /etc/initiators.deny

comment the line (#) the value

service iscsi restart

#iscsiadm -m discovery -t sendtargets -p 192.168.2.150


#iscsiadm -m linux -p 192.168.2.150 -l

iscsiadm -m discovery -t sendtargets -p 192.168.2.150

3 - ocr & voting - each of 5gb


2 - data - 10gb
2 - fra - 10gb

+ASM
+DATA
+FRA

UDEV rules:
----------
#iscsiadm -m discovery -t sendtargets -p 192.168.2.150
#iscsiadm -m node -p 192.168.2.150 -l

iscsiadm --mode linux --logoutall=all

vi /etc/udev/rules.d/99-oracle-asm.rules

10g - 1st drive - OS - /dev/sda


50gb - 2nd drive - db - /dev/sdb (we are using /sdb)

KERNEL=="sdb*", SUBSYSTEM=="block", OWNER="oracle", GROUP="asmadmin", MODE="0660"

-> to reload the rules


udevadm control --reload-rules

----From here DBA job-------

GI - grid_home = clusterware + asm

RDBMS - oracle_home = database

12. run cluvy to check the user equivalence & linux reachability.
login as grid user and go to the grid software location and run the below command.
Prerequisites,

$./runcluvfy.sh stage -pre crsinst -n linux1,linux2 -verbose

$cluvy - user equilence -


linux reachability

passwordless connectivity - we have to configure now..

13. Install the Grid s/w as a oracle user = Clusterware + ASM =


/u01/app/12.1.0/grid/{}
export LD_BIND_NOW=1
./runInstaller

$asmca - creating asm diskgroup(+DATA, +FRA)


/dev/sdb1
/dev/sdc1

create ASM diskgroups(+DATA , +FRA) using ASMCA


14. Install oracle database (RDBMS) s/w as a oracle user

15. dbca - create database(CRD ) - +DATA +FRA

. oraenv
/etc/oratab

$sqlplus / as sysdba

3 to 4 hrs of time

====================================

00:0C:29:33:4F:8A
00:0C:29:33:4F:94

HWADDR=00:0C:29:33:4F:8A
TYPE=Ethernet
BOOTPROTO=none
# Server IP #
IPADDR=192.168.1.101
PREFIX=24
GATEWAY=192.168.1.0
DNS1=192.168.1.101
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=ens33
# This is system specific and can be created using 'uuidgen eth0' command #
UUID=41171a6f-bce1-44de-8a6e-cf5e782f8bd6
DEVICE=ens33
ONBOOT=yes

HWADDR=00:0C:29:33:4F:94
TYPE=Ethernet
BOOTPROTO=none
# Server IP #
IPADDR=192.168.2.101
PREFIX=24
GATEWAY=192.168.2.0
DNS1=192.168.2.101
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=ens37
# This is system specific and can be created using 'uuidgen eth0' command #
UUID=b606865d-7a09-4089-becf-9aaf4c98b8a5
DEVICE=ens37
ONBOOT=yes
00:0C:29:2C:0E:6E
00:0C:29:2C:0E:78

You might also like