SlideShare a Scribd company logo
Presenter: Nikhil Kumar
RAC- Installing your First Cluster and
Database
WHO AM I ?
 Nikhil Kumar (DBA Manager)
6 Years of Experience in Oracle Databases
and Apps.
Oracle Certified Professional Oracle 9i and
11g.
Worked on Mission critical Telecom,
Financial ERP, Manufacturing and
Government Domain.
Agenda
 Introduction of RAC
 Installation of Clusterware.
 Creating diskgroup / Adding disk to Diskgroup using ASMCA.
 Creation of ACFS Volume.
 Installation of RAC Database using DBCA.
Introduction of RAC
A medium to provide high availability to database.
Why RAC?
High availability and scalability without any limitation:-
 OS Patching or Schedule bounce of OS.
 Database maintenance patch(CPU or PSU) .
 Static database parameter change (Due to bug or any
requirement by system).
 Hardware upgrade or change.
 Harddisk failure, power failure or system failure.
 Prevention from Single point of failure?
Identity`Home
Node
Host NodeGiven NameTypeAddressAddress
Assigned
By
Address
Resolved By
Node 1
Public
Node 1racnode1racnode1Public192.168.7.71FixedDNS
Node 1
VIP
Node 1Selected by
Oracle
Clusterware
racnode1-vipVirtual192.168.7.41FixedDNS and hosts
file
Node 1
Private
Node 1racnode1racnode1-privPrivate192.168.71.40FixedDNS and hosts
file, or none
Node 2
Public
Node 2racnode2racnode2Public192.168.7.72FixedDNS
Node 2
VIP
Node 2Selected by
Oracle
Clusterware
racnode2-vipVirtual192.168.7.41FixedDNS and hosts
file
Node 2
Private
Node 2racnode2racnode2-privPrivate192.168.71.41FixedDNS and hosts
file, or none
SCANNoneSelected by
Oracle
Clusterware
Racnode.linuxdc.comVirtual192.168.7.43
192.168.7.44
192.168.7.45
FixedDNS
Network Configuration:
For racnode1 and racnode2
Note : Manually assigning the proper IPs in /etc/host file is mandatory. Even if it resolved
through DNS. This is Oracle Requirement.
Cluster Overview
 Two Node cluster
 Operating System version RHEL 6.4
 Cluster and database software version 11.2.0.4.0
 Cluster Name: NIOUG
 Raw Disk size -- 10 Luns
 Diskgroups (Data,FRA,OCR)
 Creation of empty NIOUG database using DBCA.
Prerequisite
Prerequisite to followed by System/Network
Admin before delivering the server to DBA.
1.
Prerequisite Cont..
2. Verify that SELinux is running and set to ENFORCING:
As the root user,
# getenforce
Enforcing
If the system is running in PERMISSIVE or DISABLED mode, modify the
/etc/sysconfig/selinux file and set SELinux to enforcing as shown
below.
SELINUX=enforcing
The modification of the /etc/sysconfig/selinux file takes effect after a
reboot. To change the setting of SELinux immediately without a
reboot, run the following command:
# setenforce 1
Prerequisite Cont..
3. Need to upgrade selinux-policy rpm to make
SELINUX work current version of RPM Deliver with
RHEL 6.4
[root@STGW2 ~]# rpm -qa selinux-policy*
selinux-policy-3.7.19-195.el6.noarch
selinux-policy-targeted-3.7.19-195.el6.noarch
Need to upgrade with below mentioned package:-
[root@racnode1 ~]# rpm -qa selinux-policy*
selinux-policy-3.7.19-231.el6.noarch
selinux-policy-targeted-3.7.19-231.el6.noarch
Prerequisite Cont..
4. Make sure the shared memory file system is big
enough for Automatic Memory Manager to work.
EXAMPLES:
# umount tmpfs
# mount -t tmpfs tmpfs -o size=12g /dev/shm
( size is based upon 90% of physical memory)
Make the setting permanent by amending the "tmpfs" setting of the
"/etc/fstab" file to look like this.
tmpfs /dev/shm tmpfs defaults,size=12g 0 0
Prerequisite Cont..
5. Put the below entry in /etc/hosts of both node
[root@racnode1 bin]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.7.71 racnode1
192.168.7.72 racnode2
192.168.71.40 racnode1-priv
192.168.71.41 racnode2-priv
192.168.7.41 racnode1-vip
192.168.7.42 racnode2-vip
Prerequisite Cont..
6. Kernel Parameters:
Add the kernel parameters in
/etc/sysctl.conf file.
(Apply it using command sysctl -p
/etc/sysctl.conf)
kernel.shmall = shmmax / 4096
kernel.shmmax= 90% of physical memory
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route
= 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
fs.aio-max-nr= 3145728
fs.file-max = 6815744
kernel.msgmax = 8192
kernel.msgmnb= 65536
kernel.msgmni = 2878
kernel.sem = 250 32000 100 142
kernel.shmall = 2097152
kernel.shmmax= 7730941132
kernel.sysrq= 1
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576
net.ipv4.ip_local_port_range=9000
65500
Prerequisite Cont..
7. Adding Groups and users:
#groupadd -g 2011 asmdba
#groupadd -g 2012 asmadmin
#groupadd -g 2013 asmoper
#groupadd -g 2014 oper
#groupadd –g 2015 oinstall
#groupadd –g 2016 dba
#useradd -s /bin/bash -d /home/grid -g oinstall -G asmdba,asmadmin,asmoper,dba grid
#useradd -s /bin/bash -d /home/oracle -g oinstall -G asmdba,asmadmin,asmoper,dba oracle
#usermod -a -G asmdba,oper oracle
For example:
# id grid
uid=3010(grid) gid=2004(oinstall)
groups=2000(dba),2004(oinstall),2011(asmdba),2012(asmadmin),2013(asmoper)
#id oracle
uid=3000(oracle) gid=2004(oinstall) groups=2000(dba),2004(oinstall),2011(asmdba),2014(oper)
Prerequisite Cont..
8. Creating the Oracle Base directory
mkdir -p /u01/app/11.2.0/grid
mkdir -p /u01/app/grid
chown -R grid:oinstall /u01
chmod -R 775 /u01
mkdir -p /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
Prerequisite Cont..
9. Network Time Protocol Setting:
If you are using NTP, you must add the "-x" option into the following line in
the "/etc/sysconfig/ntpd" file.
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
Then restart NTP.
# chkconfig --level 2345 ntpd on
Start the Name Service Cache Daemon (nscd).
# chkconfig --level 2345 nscd on
# service nscd start
Prerequisite Cont..
10. Setting Resource
Limits Oracle users:
On each node, add the following lines
to the /etc/security/limits.conf file
(the following example shows the
software account owners oracle
and grid):
cat /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
Prerequisite Cont..
11. Setting login file:
As the root user, create a backup of /etc/pam.d/login
# cp /etc/pam.d/login /etc/pam.d/login.bkup
As the root user, add the following line within the /etc/pam.d/login file
session required pam_limits.so
12 .To install and configure ASMLib software packages:
1. Download the ASMLib packages to each node in your cluster.
2. Change to the directory where the package files were downloaded.
3. As the root user, use the rpm command to install the packages. For example:
# rpm -Uvh kmod-oracleasm
# rpm -Uvh oracleasmlib-2.0.4-1.el6.x86_64.rpm
# rpm -Uvh oracleasm-support-2.1.8-1.el6.x86_64.rpm
Prerequisite Cont..
After you have completed these commands, ASMLib is installed on the
system.
4.Repeat steps 2 and 3 on each node in your cluster.
Configuring asmlib:
a.) /usr/sbin/oracleasm configure -i (as root user run on all the nodes)
b.) oracleasm init (Load and initialize the ASMLib driver)
Load the kernel module using the following command.
# /usr/sbin/oracleasm init
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
Prerequisite Cont..
Using ASMLib to Create ASM Disks
c.) createdisk (only on the first node)
# /usr/sbin/oracleasm createdisk
disk_name device_partition_name
Mark the five shared disks as follows.
# /usr/sbin/oracleasm createdisk DISK1
/dev/sdb1
Writing disk header: done
Instantiating disk: done
If you need to unmark a disk that was
used in a createdisk command, you
can
use the following syntax:
# /usr/sbin/oracleasm deletedisk
disk_name
Prerequisite Cont..
d.) oracleasm scandisks ( on all
the nodes)
It is unnecessary, but we can run the
"scandisks" command to refresh
the ASM disk configuration.
# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
e.) oracleasm listdisks
We can see the disk are now visible
to ASM using the "listdisks"
command.
# /usr/sbin/oracleasm listdisks
Prerequisite Cont..
13. Ping to check the communication between each
node in cluster
ping racnode1
ping racnode2
ping racnode1-priv
ping racnode2-priv
Run the Cluvfy to check the prerequisite of cluster
installation. (Run from Grid user)
/software/grid/runcluvfy.sh stage -pre crsinst -n racnode1,racnode2 –
verbose
Prerequisite Cont..
14. SCAN name should be configured by network admin
before starting the installation.
SCAN can be verified by two ways:-
# host scan_name (It should show 3 ip address)
# nslookup scan_name (Run this command 2-3 times IP should
interchange)
Installation of Grid Infrastructure
Clusterware
Go to /software_directory/grid
run this on grid user
./runInstaller
Download Software Updates
Select the "Install and Configure Grid Infrastructure for
a Cluster" option, then click the "Next" button.
Select the "Advanced Installation" option, then
click the "Next" button.
Select Product Languages
Specify Cluster and SCAN name information,
click the “Next" button.
Enter the details of the second node in the
cluster, then click the "OK" button.
Provide password of grid to configure SSH
Click on “setup” tab to initiate the SSH
configuration between the nodes.
Check the Network interface and its segment
Select ASM for storage
Choose asm disk to create diskgroup
Provide password for ASM account
Skipping IPMI, Since we don’t have hardware to support this feature
Group information for ASM
Specify directory for Clusterware files
Specify the directory for central inventory
Prerequisite check is being performed
Result from prerequisite check
Ignoring some prerequisite checks
Click on “Install” to init
Installation is in process
Run root.sh scripts one at a time on the node
Run root.sh scripts one at a time on the node
Setting permission for orainventory
Running root.sh on first node of the cluster
root.sh on node one is complete
root.sh on node2 complete
Go back to OUI screen and click “OK”
Check Clusterware services on both nodes.
Grid Clusterware installation is complete
Creating Diskgroup using ASMCA
Invoking ASMCA Utility on grid user:-
Create new “DATA” diskgroup
Click “OK”
“DATA” diskgroup is created
Creating ACFS Volume
Create “archive” volume using “FRA” diskgroup
After selecting size click “OK”
Volume “archive” created
Now click “ASM Cluster File System” Tab
Now after clicking on “Create” tab, Select Volume
“Archive Which we created earlier. Provide the input
to “General Purpose File System” Which will be
mount on the Operating System.
/archive mountpoint of OS is created
Status of ACFS mount point
Check the “/archive” mountpoint on both node
Installation of Oracle Binaries
& Database Creation
Invoke “runInstaller” from Oracle user
Skipping Software Update
Use “Create and configure database” option to
install database binaries and dummy database
Select “Server Class” type for installation
Select both node for installation
Establish SSH connectivity for oracle user
Select “Advance install” type installation
Select default “English” Language
Select “Enterprise Edition” for database
Define directory structure for database binaries
Select the type of database
Provide input to Global database name and SID
Provide memory to Instance
Provide password for ASM
Skipping the backup part
Select diskgroup where database files needs to
be placed
Provide password to admin account of database
Group information
Prerequisite Check Complete
Prerequisite Check Complete
Click “Install” to initiate the installation
Installation is in process
Database creation is in process
Click “Ok”
Run root.sh script on both node of cluster
Running root.sh on database server nodes
Software installation and software creation is done
Checking Database Resource
RAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and Database

More Related Content

What's hot

Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
Emre Baransel
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Kristofferson A
 
tow nodes Oracle 12c RAC on virtualbox
tow nodes Oracle 12c RAC on virtualboxtow nodes Oracle 12c RAC on virtualbox
tow nodes Oracle 12c RAC on virtualbox
justinit
 
A Deep Dive into ASM Redundancy in Exadata
A Deep Dive into ASM Redundancy in ExadataA Deep Dive into ASM Redundancy in Exadata
A Deep Dive into ASM Redundancy in Exadata
Emre Baransel
 
Rac questions
Rac questionsRac questions
Rac questions
parvezsigan
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
maclean liu
 
Reducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQLReducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQL
Kenny Gryp
 
Oss4b - pxc introduction
Oss4b   - pxc introductionOss4b   - pxc introduction
Oss4b - pxc introduction
Frederic Descamps
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
Satishbabu Gunukula
 
Oracle Linux and Oracle Database - A Trusted Combination
Oracle Linux and Oracle Database - A Trusted Combination Oracle Linux and Oracle Database - A Trusted Combination
Oracle Linux and Oracle Database - A Trusted Combination
Guatemala User Group
 
RACATTACK Lab Handbook - Enable Flex Cluster and Flex ASM
RACATTACK Lab Handbook - Enable Flex Cluster and Flex ASMRACATTACK Lab Handbook - Enable Flex Cluster and Flex ASM
RACATTACK Lab Handbook - Enable Flex Cluster and Flex ASM
Maaz Anjum
 
Tips and Tricks for Operating Apache Kafka
Tips and Tricks for Operating Apache KafkaTips and Tricks for Operating Apache Kafka
Tips and Tricks for Operating Apache Kafka
All Things Open
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
Chien Chung Shen
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
Satishbabu Gunukula
 
Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats new
Nassyam Basha
 
High Availability in 37 Easy Steps
High Availability in 37 Easy StepsHigh Availability in 37 Easy Steps
High Availability in 37 Easy Steps
Tim Serong
 
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Ludovico Caldara
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
Oracle flex asm & flex cluster
Oracle flex asm & flex clusterOracle flex asm & flex cluster
Oracle flex asm & flex cluster
Ghanshyam Khetan
 
Galera Replication Demystified: How Does It Work?
Galera Replication Demystified: How Does It Work?Galera Replication Demystified: How Does It Work?
Galera Replication Demystified: How Does It Work?
Frederic Descamps
 

What's hot (20)

Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
 
tow nodes Oracle 12c RAC on virtualbox
tow nodes Oracle 12c RAC on virtualboxtow nodes Oracle 12c RAC on virtualbox
tow nodes Oracle 12c RAC on virtualbox
 
A Deep Dive into ASM Redundancy in Exadata
A Deep Dive into ASM Redundancy in ExadataA Deep Dive into ASM Redundancy in Exadata
A Deep Dive into ASM Redundancy in Exadata
 
Rac questions
Rac questionsRac questions
Rac questions
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
 
Reducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQLReducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQL
 
Oss4b - pxc introduction
Oss4b   - pxc introductionOss4b   - pxc introduction
Oss4b - pxc introduction
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Oracle Linux and Oracle Database - A Trusted Combination
Oracle Linux and Oracle Database - A Trusted Combination Oracle Linux and Oracle Database - A Trusted Combination
Oracle Linux and Oracle Database - A Trusted Combination
 
RACATTACK Lab Handbook - Enable Flex Cluster and Flex ASM
RACATTACK Lab Handbook - Enable Flex Cluster and Flex ASMRACATTACK Lab Handbook - Enable Flex Cluster and Flex ASM
RACATTACK Lab Handbook - Enable Flex Cluster and Flex ASM
 
Tips and Tricks for Operating Apache Kafka
Tips and Tricks for Operating Apache KafkaTips and Tricks for Operating Apache Kafka
Tips and Tricks for Operating Apache Kafka
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 
Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats new
 
High Availability in 37 Easy Steps
High Availability in 37 Easy StepsHigh Availability in 37 Easy Steps
High Availability in 37 Easy Steps
 
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 
Oracle flex asm & flex cluster
Oracle flex asm & flex clusterOracle flex asm & flex cluster
Oracle flex asm & flex cluster
 
Galera Replication Demystified: How Does It Work?
Galera Replication Demystified: How Does It Work?Galera Replication Demystified: How Does It Work?
Galera Replication Demystified: How Does It Work?
 

Viewers also liked

B1 reading comprehension
B1 reading comprehensionB1 reading comprehension
B1 reading comprehension
Kristina Alaverdyan
 
GRIEVANCE MECHANISM - Total
GRIEVANCE MECHANISM - TotalGRIEVANCE MECHANISM - Total
GRIEVANCE MECHANISM - Total
Ethical Sector
 
Boxnews 2015
Boxnews 2015Boxnews 2015
Boxnews 2015
MAGNET Media Holding
 
Lecture04 05
Lecture04 05Lecture04 05
Lecture04 05
Lã Văn Hải
 
Desiccant dehumidification system by destech.eu
Desiccant dehumidification system by destech.euDesiccant dehumidification system by destech.eu
Desiccant dehumidification system by destech.eu
UAB Desiccant Technologies Group
 
Conductive 3D Printer Filament
Conductive 3D Printer FilamentConductive 3D Printer Filament
Conductive 3D Printer Filament
3d printing filament materials - Filaments.ca
 
Dallas Wedding Venue
Dallas Wedding VenueDallas Wedding Venue
Dallas Wedding Venue
Seven for Parties
 
Disabili al lavoro, missione impossibile?
Disabili al lavoro, missione impossibile?Disabili al lavoro, missione impossibile?
Disabili al lavoro, missione impossibile?
Antonino Leone
 
Combined 2015 Editorials ROI
Combined 2015 Editorials ROICombined 2015 Editorials ROI
Combined 2015 Editorials ROI
Enda Ahern
 
Additional Skills
Additional SkillsAdditional Skills
Additional Skills
Ravi Bandekar
 
Okino.ua 2016
Okino.ua 2016Okino.ua 2016
Okino.ua 2016
MAGNET Media Holding
 
How I made my digipack
How I made my digipackHow I made my digipack
How I made my digipack
joewilson1997
 
Теории мотиваци
Теории мотивациТеории мотиваци
Теории мотиваци
Anastasia Engelhardt
 
Visualizing and drawing of symmetrical designs
Visualizing and drawing of symmetrical designsVisualizing and drawing of symmetrical designs
Visualizing and drawing of symmetrical designs
Ellen Cruz
 
Tin hoc là mot nghanh khoa ho
Tin hoc là mot nghanh khoa hoTin hoc là mot nghanh khoa ho
Tin hoc là mot nghanh khoa hoLã Văn Hải
 
Fashion as branding ppt
Fashion as branding pptFashion as branding ppt
Fashion as branding ppt
Nikki Vergakes
 
Baocaocuoiki
BaocaocuoikiBaocaocuoiki
Baocaocuoikihogphuc92
 
Desafio das Estimativas - Utilizando métricas científicas com Kanban
Desafio das Estimativas - Utilizando métricas científicas com KanbanDesafio das Estimativas - Utilizando métricas científicas com Kanban
Desafio das Estimativas - Utilizando métricas científicas com Kanban
Bruno Brandes
 
Govt. sector jobs
Govt. sector jobsGovt. sector jobs
Govt. sector jobs
Ashish Narang
 

Viewers also liked (20)

B1 reading comprehension
B1 reading comprehensionB1 reading comprehension
B1 reading comprehension
 
GRIEVANCE MECHANISM - Total
GRIEVANCE MECHANISM - TotalGRIEVANCE MECHANISM - Total
GRIEVANCE MECHANISM - Total
 
Boxnews 2015
Boxnews 2015Boxnews 2015
Boxnews 2015
 
Lecture04 05
Lecture04 05Lecture04 05
Lecture04 05
 
Desiccant dehumidification system by destech.eu
Desiccant dehumidification system by destech.euDesiccant dehumidification system by destech.eu
Desiccant dehumidification system by destech.eu
 
Conductive 3D Printer Filament
Conductive 3D Printer FilamentConductive 3D Printer Filament
Conductive 3D Printer Filament
 
Dallas Wedding Venue
Dallas Wedding VenueDallas Wedding Venue
Dallas Wedding Venue
 
Disabili al lavoro, missione impossibile?
Disabili al lavoro, missione impossibile?Disabili al lavoro, missione impossibile?
Disabili al lavoro, missione impossibile?
 
Combined 2015 Editorials ROI
Combined 2015 Editorials ROICombined 2015 Editorials ROI
Combined 2015 Editorials ROI
 
Additional Skills
Additional SkillsAdditional Skills
Additional Skills
 
Gagadget 2015.
Gagadget 2015.Gagadget 2015.
Gagadget 2015.
 
Okino.ua 2016
Okino.ua 2016Okino.ua 2016
Okino.ua 2016
 
How I made my digipack
How I made my digipackHow I made my digipack
How I made my digipack
 
Теории мотиваци
Теории мотивациТеории мотиваци
Теории мотиваци
 
Visualizing and drawing of symmetrical designs
Visualizing and drawing of symmetrical designsVisualizing and drawing of symmetrical designs
Visualizing and drawing of symmetrical designs
 
Tin hoc là mot nghanh khoa ho
Tin hoc là mot nghanh khoa hoTin hoc là mot nghanh khoa ho
Tin hoc là mot nghanh khoa ho
 
Fashion as branding ppt
Fashion as branding pptFashion as branding ppt
Fashion as branding ppt
 
Baocaocuoiki
BaocaocuoikiBaocaocuoiki
Baocaocuoiki
 
Desafio das Estimativas - Utilizando métricas científicas com Kanban
Desafio das Estimativas - Utilizando métricas científicas com KanbanDesafio das Estimativas - Utilizando métricas científicas com Kanban
Desafio das Estimativas - Utilizando métricas científicas com Kanban
 
Govt. sector jobs
Govt. sector jobsGovt. sector jobs
Govt. sector jobs
 

Similar to RAC-Installing your First Cluster and Database

Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
Voeurng Sovann
 
Mysql
Mysql Mysql
Mysql
Mindtree
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Osama Mustafa
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
mengjiagou
 
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
NETWAYS
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
MuhammadShoaibHussai2
 
Powervc upgrade from_1.3.0.2_to_1.3.2.0
Powervc upgrade from_1.3.0.2_to_1.3.2.0Powervc upgrade from_1.3.0.2_to_1.3.2.0
Powervc upgrade from_1.3.0.2_to_1.3.2.0
Gobinath Panchavarnam
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting
Aleksey Korzun
 
OTRS
OTRSOTRS
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid Infrastructure
Ilmar Kerm
 
在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5
maclean liu
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Raheel Syed
 
How to install squid proxy on server or how to install squid proxy on centos o
How to install squid proxy on server  or how to install squid proxy on centos oHow to install squid proxy on server  or how to install squid proxy on centos o
How to install squid proxy on server or how to install squid proxy on centos o
Proxiesforrent
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
kmsa
 
Oracle11g on fedora14
Oracle11g on fedora14Oracle11g on fedora14
Oracle11g on fedora14
Khalid Matar Albuflasah
 
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Simon Boulet
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
Chanaka Lasantha
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stack
RootGate
 
How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7
VCP Muthukrishna
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPM
Alexander Shopov
 

Similar to RAC-Installing your First Cluster and Database (20)

Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
Mysql
Mysql Mysql
Mysql
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
 
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
 
Powervc upgrade from_1.3.0.2_to_1.3.2.0
Powervc upgrade from_1.3.0.2_to_1.3.2.0Powervc upgrade from_1.3.0.2_to_1.3.2.0
Powervc upgrade from_1.3.0.2_to_1.3.2.0
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting
 
OTRS
OTRSOTRS
OTRS
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid Infrastructure
 
在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
 
How to install squid proxy on server or how to install squid proxy on centos o
How to install squid proxy on server  or how to install squid proxy on centos oHow to install squid proxy on server  or how to install squid proxy on centos o
How to install squid proxy on server or how to install squid proxy on centos o
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
 
Oracle11g on fedora14
Oracle11g on fedora14Oracle11g on fedora14
Oracle11g on fedora14
 
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stack
 
How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPM
 

Recently uploaded

RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
PuktoonEngr
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 

Recently uploaded (20)

RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 

RAC-Installing your First Cluster and Database

  • 1. Presenter: Nikhil Kumar RAC- Installing your First Cluster and Database
  • 2. WHO AM I ?  Nikhil Kumar (DBA Manager) 6 Years of Experience in Oracle Databases and Apps. Oracle Certified Professional Oracle 9i and 11g. Worked on Mission critical Telecom, Financial ERP, Manufacturing and Government Domain.
  • 3. Agenda  Introduction of RAC  Installation of Clusterware.  Creating diskgroup / Adding disk to Diskgroup using ASMCA.  Creation of ACFS Volume.  Installation of RAC Database using DBCA.
  • 4. Introduction of RAC A medium to provide high availability to database. Why RAC? High availability and scalability without any limitation:-  OS Patching or Schedule bounce of OS.  Database maintenance patch(CPU or PSU) .  Static database parameter change (Due to bug or any requirement by system).  Hardware upgrade or change.  Harddisk failure, power failure or system failure.  Prevention from Single point of failure?
  • 5. Identity`Home Node Host NodeGiven NameTypeAddressAddress Assigned By Address Resolved By Node 1 Public Node 1racnode1racnode1Public192.168.7.71FixedDNS Node 1 VIP Node 1Selected by Oracle Clusterware racnode1-vipVirtual192.168.7.41FixedDNS and hosts file Node 1 Private Node 1racnode1racnode1-privPrivate192.168.71.40FixedDNS and hosts file, or none Node 2 Public Node 2racnode2racnode2Public192.168.7.72FixedDNS Node 2 VIP Node 2Selected by Oracle Clusterware racnode2-vipVirtual192.168.7.41FixedDNS and hosts file Node 2 Private Node 2racnode2racnode2-privPrivate192.168.71.41FixedDNS and hosts file, or none SCANNoneSelected by Oracle Clusterware Racnode.linuxdc.comVirtual192.168.7.43 192.168.7.44 192.168.7.45 FixedDNS Network Configuration: For racnode1 and racnode2 Note : Manually assigning the proper IPs in /etc/host file is mandatory. Even if it resolved through DNS. This is Oracle Requirement.
  • 6. Cluster Overview  Two Node cluster  Operating System version RHEL 6.4  Cluster and database software version 11.2.0.4.0  Cluster Name: NIOUG  Raw Disk size -- 10 Luns  Diskgroups (Data,FRA,OCR)  Creation of empty NIOUG database using DBCA.
  • 7. Prerequisite Prerequisite to followed by System/Network Admin before delivering the server to DBA. 1.
  • 8. Prerequisite Cont.. 2. Verify that SELinux is running and set to ENFORCING: As the root user, # getenforce Enforcing If the system is running in PERMISSIVE or DISABLED mode, modify the /etc/sysconfig/selinux file and set SELinux to enforcing as shown below. SELINUX=enforcing The modification of the /etc/sysconfig/selinux file takes effect after a reboot. To change the setting of SELinux immediately without a reboot, run the following command: # setenforce 1
  • 9. Prerequisite Cont.. 3. Need to upgrade selinux-policy rpm to make SELINUX work current version of RPM Deliver with RHEL 6.4 [root@STGW2 ~]# rpm -qa selinux-policy* selinux-policy-3.7.19-195.el6.noarch selinux-policy-targeted-3.7.19-195.el6.noarch Need to upgrade with below mentioned package:- [root@racnode1 ~]# rpm -qa selinux-policy* selinux-policy-3.7.19-231.el6.noarch selinux-policy-targeted-3.7.19-231.el6.noarch
  • 10. Prerequisite Cont.. 4. Make sure the shared memory file system is big enough for Automatic Memory Manager to work. EXAMPLES: # umount tmpfs # mount -t tmpfs tmpfs -o size=12g /dev/shm ( size is based upon 90% of physical memory) Make the setting permanent by amending the "tmpfs" setting of the "/etc/fstab" file to look like this. tmpfs /dev/shm tmpfs defaults,size=12g 0 0
  • 11. Prerequisite Cont.. 5. Put the below entry in /etc/hosts of both node [root@racnode1 bin]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.7.71 racnode1 192.168.7.72 racnode2 192.168.71.40 racnode1-priv 192.168.71.41 racnode2-priv 192.168.7.41 racnode1-vip 192.168.7.42 racnode2-vip
  • 12. Prerequisite Cont.. 6. Kernel Parameters: Add the kernel parameters in /etc/sysctl.conf file. (Apply it using command sysctl -p /etc/sysctl.conf) kernel.shmall = shmmax / 4096 kernel.shmmax= 90% of physical memory net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 fs.aio-max-nr= 3145728 fs.file-max = 6815744 kernel.msgmax = 8192 kernel.msgmnb= 65536 kernel.msgmni = 2878 kernel.sem = 250 32000 100 142 kernel.shmall = 2097152 kernel.shmmax= 7730941132 kernel.sysrq= 1 net.core.rmem_default=4194304 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048576 net.ipv4.ip_local_port_range=9000 65500
  • 13. Prerequisite Cont.. 7. Adding Groups and users: #groupadd -g 2011 asmdba #groupadd -g 2012 asmadmin #groupadd -g 2013 asmoper #groupadd -g 2014 oper #groupadd –g 2015 oinstall #groupadd –g 2016 dba #useradd -s /bin/bash -d /home/grid -g oinstall -G asmdba,asmadmin,asmoper,dba grid #useradd -s /bin/bash -d /home/oracle -g oinstall -G asmdba,asmadmin,asmoper,dba oracle #usermod -a -G asmdba,oper oracle For example: # id grid uid=3010(grid) gid=2004(oinstall) groups=2000(dba),2004(oinstall),2011(asmdba),2012(asmadmin),2013(asmoper) #id oracle uid=3000(oracle) gid=2004(oinstall) groups=2000(dba),2004(oinstall),2011(asmdba),2014(oper)
  • 14. Prerequisite Cont.. 8. Creating the Oracle Base directory mkdir -p /u01/app/11.2.0/grid mkdir -p /u01/app/grid chown -R grid:oinstall /u01 chmod -R 775 /u01 mkdir -p /u01/app/oracle chown oracle:oinstall /u01/app/oracle
  • 15. Prerequisite Cont.. 9. Network Time Protocol Setting: If you are using NTP, you must add the "-x" option into the following line in the "/etc/sysconfig/ntpd" file. OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid" Then restart NTP. # chkconfig --level 2345 ntpd on Start the Name Service Cache Daemon (nscd). # chkconfig --level 2345 nscd on # service nscd start
  • 16. Prerequisite Cont.. 10. Setting Resource Limits Oracle users: On each node, add the following lines to the /etc/security/limits.conf file (the following example shows the software account owners oracle and grid): cat /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 oracle hard stack 32768 grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 grid soft stack 10240 grid hard stack 32768
  • 17. Prerequisite Cont.. 11. Setting login file: As the root user, create a backup of /etc/pam.d/login # cp /etc/pam.d/login /etc/pam.d/login.bkup As the root user, add the following line within the /etc/pam.d/login file session required pam_limits.so 12 .To install and configure ASMLib software packages: 1. Download the ASMLib packages to each node in your cluster. 2. Change to the directory where the package files were downloaded. 3. As the root user, use the rpm command to install the packages. For example: # rpm -Uvh kmod-oracleasm # rpm -Uvh oracleasmlib-2.0.4-1.el6.x86_64.rpm # rpm -Uvh oracleasm-support-2.1.8-1.el6.x86_64.rpm
  • 18. Prerequisite Cont.. After you have completed these commands, ASMLib is installed on the system. 4.Repeat steps 2 and 3 on each node in your cluster. Configuring asmlib: a.) /usr/sbin/oracleasm configure -i (as root user run on all the nodes) b.) oracleasm init (Load and initialize the ASMLib driver) Load the kernel module using the following command. # /usr/sbin/oracleasm init Loading module "oracleasm": oracleasm Mounting ASMlib driver filesystem: /dev/oracleasm
  • 19. Prerequisite Cont.. Using ASMLib to Create ASM Disks c.) createdisk (only on the first node) # /usr/sbin/oracleasm createdisk disk_name device_partition_name Mark the five shared disks as follows. # /usr/sbin/oracleasm createdisk DISK1 /dev/sdb1 Writing disk header: done Instantiating disk: done If you need to unmark a disk that was used in a createdisk command, you can use the following syntax: # /usr/sbin/oracleasm deletedisk disk_name
  • 20. Prerequisite Cont.. d.) oracleasm scandisks ( on all the nodes) It is unnecessary, but we can run the "scandisks" command to refresh the ASM disk configuration. # /usr/sbin/oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... e.) oracleasm listdisks We can see the disk are now visible to ASM using the "listdisks" command. # /usr/sbin/oracleasm listdisks
  • 21. Prerequisite Cont.. 13. Ping to check the communication between each node in cluster ping racnode1 ping racnode2 ping racnode1-priv ping racnode2-priv Run the Cluvfy to check the prerequisite of cluster installation. (Run from Grid user) /software/grid/runcluvfy.sh stage -pre crsinst -n racnode1,racnode2 – verbose
  • 22. Prerequisite Cont.. 14. SCAN name should be configured by network admin before starting the installation. SCAN can be verified by two ways:- # host scan_name (It should show 3 ip address) # nslookup scan_name (Run this command 2-3 times IP should interchange)
  • 23. Installation of Grid Infrastructure Clusterware
  • 24. Go to /software_directory/grid run this on grid user ./runInstaller
  • 26. Select the "Install and Configure Grid Infrastructure for a Cluster" option, then click the "Next" button.
  • 27. Select the "Advanced Installation" option, then click the "Next" button.
  • 29. Specify Cluster and SCAN name information, click the “Next" button.
  • 30. Enter the details of the second node in the cluster, then click the "OK" button.
  • 31. Provide password of grid to configure SSH
  • 32. Click on “setup” tab to initiate the SSH configuration between the nodes.
  • 33.
  • 34. Check the Network interface and its segment
  • 35. Select ASM for storage
  • 36. Choose asm disk to create diskgroup
  • 37. Provide password for ASM account
  • 38. Skipping IPMI, Since we don’t have hardware to support this feature
  • 40. Specify directory for Clusterware files
  • 41. Specify the directory for central inventory
  • 42. Prerequisite check is being performed
  • 47. Run root.sh scripts one at a time on the node
  • 48. Run root.sh scripts one at a time on the node
  • 49. Setting permission for orainventory
  • 50. Running root.sh on first node of the cluster
  • 51. root.sh on node one is complete
  • 52. root.sh on node2 complete
  • 53. Go back to OUI screen and click “OK”
  • 54. Check Clusterware services on both nodes.
  • 57. Invoking ASMCA Utility on grid user:-
  • 62.
  • 63. Create “archive” volume using “FRA” diskgroup
  • 64. After selecting size click “OK”
  • 66. Now click “ASM Cluster File System” Tab
  • 67. Now after clicking on “Create” tab, Select Volume “Archive Which we created earlier. Provide the input to “General Purpose File System” Which will be mount on the Operating System.
  • 68. /archive mountpoint of OS is created
  • 69. Status of ACFS mount point
  • 70. Check the “/archive” mountpoint on both node
  • 71. Installation of Oracle Binaries & Database Creation
  • 74. Use “Create and configure database” option to install database binaries and dummy database
  • 75. Select “Server Class” type for installation
  • 76. Select both node for installation
  • 77. Establish SSH connectivity for oracle user
  • 78. Select “Advance install” type installation
  • 81. Define directory structure for database binaries
  • 82. Select the type of database
  • 83. Provide input to Global database name and SID
  • 84. Provide memory to Instance
  • 85.
  • 88. Select diskgroup where database files needs to be placed
  • 89. Provide password to admin account of database
  • 93. Click “Install” to initiate the installation
  • 95. Database creation is in process
  • 97. Run root.sh script on both node of cluster
  • 98. Running root.sh on database server nodes
  • 99. Software installation and software creation is done