Académique Documents
Professionnel Documents
Culture Documents
Presented By :
Qari Kamran Siddique
Senior Database Consultant
CGI
What is CLUSTER
Enables Servers to Communicate with each other as a
COLLECTIVE UNIT.
A software that make clustered hardware to run
multiple instances against ONE database .
Database files are stored on disks that are either
physically or logically connected to each node.
Cluster Software hides the structure.
Disks are available for read and write by all nodes.
Operating system is the same on each machine.
This architecture enables users and applications to
benefit from the processing power of multiple
machines.
In case of crash of one node or instance, application
can still access to the surviving node.
Benefits
Scalability of applications
Use of less expensive commodity hardware
Ability to fail over
Ability to increase capacity over time by adding servers
Ability to program the startup of applications in a
planned order
Ability to monitor processes and restart them if they
stop
Resource Control
More Benefits
Eliminate unplanned downtime due to hardware
failures.
Reduce or eliminate planned downtime for software
maintenance.
Increase throughput for cluster-aware applications
Reduce the total cost of ownership
Basic RAC Components
Oracle 10g R1,R2,11g R1
Oracle Clusterware
Shared Storage
Oracle RAC Database
Basic RAC Components
RAC Database
Oracle Clusterware Hardware
Concepts and Requirements
One or more servers connected with each other with a network,
called INTERCONNECT
At least two network interface cards: one for a public network and
one for a private network
The interconnect network is a private network using a switch (or
multiple switches) that only the nodes in the cluster can access
No not support using crossover cables
At least two network interfaces for the public network, bonded to
provide one address
At least two network interfaces for the private interconnect
network
Oracle Clusterware supports NFS, iSCSI, Direct Attached Storage
DAS), Storage Area Network (SAN) storage, and Network
Attached Storage (NAS).
Oracle Clusterware Hardware
Concepts and Requirements
(Continue)
Consider the I/O requirements of the entire cluster when choosing
your storage subsystem.
At least one local disk that is internal to the server
This disk is used for the operating system and Oracle Software
binaries
Increase HA by providing safe side for binary corruption
Allows rolling upgrades, which reduce downtime.
Oracle Clusterware Operating System Concepts and
Requirements
(Product Certification)
Software Concepts
Voting Disks
Oracle Clusterware uses voting disk files to determine
which nodes are members of a cluster.
Can be configured on Oracle ASM ,or on shared storage
( Raw volumes).
In case of ASM, redundancy level defines number of
voting disks
Without ASM => Minimum THREE voting disks for
HA
Use external redundancy
Do not use more than five voting disks
The maximum number of voting disks that is supported
is 15.
Software Concepts
Oracle Cluster Registry (OCR)
Store and manage information about the components
that oracle clusterware controls , e.g; Rac Database,
listeners, virtual IP addresses (VIPs), services,
applications.
Can be configured on Oracle ASM ,or on shared storage
( Raw volumes)
stores configuration information in a series of key-value
pairs in a tree structure.
multiple OCR locations (multiplexing) should be defined
You can have up to five OCR locations
Each OCR location must reside on shared storage that is
accessible by all of the nodes in the cluster
Software Concepts
Virtual Internet Protocol Address (VIP)
Reference
Virtual hostname to provide for all clients connecting to the cluster (as
opposed to the vip hostnames in 10g and 11gR1).
Domain name registered to at least one and up to three IP addresses,
either in the domain name service (DNS) or the Grid Naming Service
(GNS).
By default, the name used as the SCAN is also the name of the cluster.
For installation to succeed, the SCAN must resolve to at least one
address.
Do not configure SCAN VIP addresses in the hosts file. But if you use
the hosts file to resolve SCAN name, you can have only one SCAN IP
address
If hosts file is used, Cluster Verification Utility failure at end of
installation.
Network Configuration Concepts
(Continue)
DNS Round Robin resolution to three addresses
RECOMMENDED
Add/remove nodes without reconfiguring clients
Adds location independence for the databases, so that client
configuration does not have to depend on which nodes are
running a particular database.
local listener LISTENER on all nodes to listen on local VIP, and
SCAN listener LISTENER_SCAN1 (up to three cluster wide) to
listen on SCAN VIP(s)
system/manager@cgi1-scan:1521/apps
jdbc:oracle:thin:@cgi-scan:1521/apps
Network Configuration Concepts
(Continue)
TEST. CGI.COM =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=SCAN-TEST.CGI.COM)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=11GR2TEST.CGI.COM))
)
TEST.CGI.COM =
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=TEST1-vip.CGI.COM)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=TEST2-vip.CGI.COM)(PORT=1521))
)
(CONNECT_DATA=(SERVICE_NAME=11GR2TEST.CGI.COM))
)
Network Configuration Concepts
(Continue)
The node VIP and the three SCAN VIPs are obtained from the
DHCP server when using GNS. If a new server joins the
cluster, then Oracle Clusterware dynamically obtains the
required VIP address from the DHCP server, updates the
cluster resource, and makes the server accessible through
GNS.
$ srvctl config scan
SCAN name: cgi-scan, Network:192.168.182.0/255.255.255.0/
SCAN VIP name: scan1, IP: /192.168.182.109
SCAN VIP name: scan2, IP: /192.168.182.110
SCAN VIP name: scan3, IP: /192.168.182.108
Node Instance Database Name
Name Name
cginode1 cgirac1 cgi.dbservices.ca
cginode2 cgirac2
Node Name Public IP Private IP VIP
SCAN NAME IP
SCAN VIP1 192.168.2.201
SCAN VIP2 192.168.2.202
SCAN VIP3 192.168.2.203
Oracle Clusterware startup sequence
Do not worry..
OCR and voting disk files can be placed either on Oracle ASM,or
on a cluster file system or NFS system
# su - grid
ORACLE_SID=+ASM1; export ORACLE_SID
ORACLE_BASE=/u01/app/grid;
export ORACLE_BASE
# Specifies the directory containing the Oracle Grid Infrastructure software.
ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_HOME
Oracle Automatic Storage Management Cluster
File System (Oracle ACFS)
improved performance
# mkdir -p /u01/app/11.2.0/grid
#chown grid:oinstall /u01/app/11.2.0/grid
#chmod -R 775 /u01/app/11.2.0/grid
# mkdir -p /u01/app/oracle
#chown -R oracle:oinstall /u01/app/11.2.0/oracle
#chmod -R 775 /u01/app/11.2.0/oracle
Storage Options
Whats Next !!!
Administering Oracle Clusterware, ASM and RAC databases
Oracle RAC Backup and Recovery
RAC Services
RAC , Oracle Clusterware and ASM tuning
Adding and Deleting RAC Nodes
Patch Management in RAC
Oracle Clusterware Cloning
Application high availability with clusterware
Oracle Clusterware utilities usage
Whole clusterware stack upgrade to 11g R2
RAC + Clusterware + ASM tips & tricks..and
Troubleshooting
Questions ???