8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 1/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 1
11gR2 RAC/GI New Features
Gász Róbert
WEBváltó Kft.
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 2/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 2
Oracle Grid Infrastructure
• ASM and Oracle Clusterware are installed into a singlehome directory called Oracle Grid Infrastructure 11g
Release 2.• This directory is referred to as the Grid Infrastructure
home.
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 3/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 3
What Is a Cluster?
• A group of independent, but interconnected, computersthat act as a single system
• Usually deployed toincrease availability andperformance orto balance a dynamically
changing workload
Storage Network
Interconnect
Users
Network
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 4/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 4
What Is Clusterware?
Software that provides various interfaces and services for acluster. Typically, this includes capabilities that:
• Allow the cluster to be managed as a whole
• Protect the integrity of the cluster
• Maintain a registry of resources across the cluster
• Deal with changes to the cluster• Provide a common view of resources
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 5/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 5
Oracle Clusterware
Oracle Clusterware is:
• A key part of Oracle Grid Infrastructure
• Integrated with OracleAutomatic StorageManagement (ASM)
• The basis for ASM ClusterFile System (ACFS)
• A foundation for OracleReal Application Clusters
(RAC)• A generalized cluster
infrastructure for all kindsof applications
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 6/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 6
Oracle Clusterware Architecture and Services
• Shared disk cluster architecture supporting applicationload balancing and failover
• Services include: – Cluster management
– Node monitoring
– Event services
– Time synchronization
– Network management
– High availability
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 7/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 7
• Oracle Clusterware is started by the OS init daemon.
• Oracle Clusterware installation modifies the
/etc/inittab file to restart ohasd in the event of acrash.
Oracle Clusterware Startup
/etc/init.d/init.ohasd
ohasd.bin oclskd.bin
octssd.bin crsd.binoraagent.bin gipcd.bin
diskmon.bin mdnsd.bin
ocssd.bin gpnpd.bin
evmd.bin scriptagent.bin
cssdagent oraagent.binorarootagent.bin
init
Clusterwarestartup script
Oracle Clusterware processesOperating systeminit daemon
# cat /etc/inittab..h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 8/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 8
Oracle Clusterware Process Architecture
Clusterware processes are organized into several component groups.They include:
Component Processes Owner
Cluster Ready Service (CRS) crsd root
Cluster Synchronization Service (CSS) ocssd,cssdmonitor, grid owner,cssdagent root, root
Event Manager (EVM) evmd, evmlogger grid owner
Cluster Time Synchronization Service(CTSS)
octssd root
Oracle Notification Service (ONS) ons, eons grid owner
Oracle Agent oraagent grid owner
Oracle Root Agent orarootagent root
Grid Naming Service (GNS) gnsd root
Grid Plug and Play (GPnP) gpnpd grid owner
Multicast domain name service (mDNS) mdnsd grid owner
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 9/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 9
Single Client Access Name
• The single client access name (SCAN) is the address usedby clients connecting to the cluster.
• The SCAN is a fully qualified host name located in the GNS
subdomain registered to three IP addresses.
• The SCAN provides a stable, highly available name forclients to use, independent of the nodes that make up the
cluster.
# dig @192.0.2.155 cluster01-scan.cluster01.example.com
...
;; QUESTION SECTION:
;cluster01-scan.cluster01.example.com. IN A
;; ANSWER SECTION:cluster01-scan.cluster01.example.com. 120 IN A 192.0.2.244
cluster01-scan.cluster01.example.com. 120 IN A 192.0.2.246
cluster01-scan.cluster01.example.com. 120 IN A 192.0.2.245
;; AUTHORITY SECTION:
cluster01.example.com. 10800 IN A 192.0.2.155
;; SERVER: 192.0.2.155#53(192.0.2.155)
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 10/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 10
Connection Examples
ERP=(DESCRIPTION= ## Using VIPs ## (LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=node1-vip)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=node2-vip)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=node3-vip)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=ERP)))
url="jdbc:oracle:oci:@ERP" ## Thick JDBC ##
url="jdbc:oracle:thin:@cluster01-scan:1521/ERP" ## Thin JDBC ##
ERP=(DESCRIPTION= ## Using the SCAN ## (LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=cluster01-scan)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=ERP)))
ERP=(DESCRIPTION= ## Using VIPs ## (LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=node1-vip)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=node2-vip)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=node3-vip)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=ERP)))
ERP=(DESCRIPTION= ## Using the SCAN ## (LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=cluster01-scan)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=ERP)))
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 11/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 11
How GPnP Works: Client Database Connections
Database client
DNS
SCAN
listener
Listener1
Listener2
Listener3 SCAN listener
SCAN listener
GNS
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 12/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 12
ASM for OCR and Vote
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 13/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 13
ASM Configuration Assistant
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 14/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 14
ADVM: ASM Dynamic Volume Manager
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 15/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 15
ACFS: ASM Cluster File System
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 16/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 16
Cluster Resource Status
[oracle@rac11gr2node2 ~]$ crsctl stat res -t--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE rac11gr2node1
ONLINE ONLINE rac11gr2node2
ora.LISTENER.lsnr
ONLINE ONLINE rac11gr2node1
ONLINE ONLINE rac11gr2node2
ora.OCRVOTE.dg
ONLINE ONLINE rac11gr2node1
ONLINE ONLINE rac11gr2node2
ora.asm
ONLINE ONLINE rac11gr2node1 Started
ONLINE ONLINE rac11gr2node2
ora.eons
ONLINE ONLINE rac11gr2node1ONLINE ONLINE rac11gr2node2
ora.gsd
OFFLINE OFFLINE rac11gr2node1
OFFLINE OFFLINE rac11gr2node2
...
8/2/2019 Oracle 11gR2 RAC_GI New Feature
http://slidepdf.com/reader/full/oracle-11gr2-racgi-new-feature 17/17
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.F - 17
Questions and Answers
Thank you for listening!
Gász Róbert
WEBváltó Kft.