SlideShare a Scribd company logo
1
Oracle Real Application Clusters 19c:
Best Practices and Secret Internals
Copyright © 2019 Oracle and/or its affiliates.
Anil Nair
Sr Principal Product Manager,
Oracle Real Application Clusters (RAC)
@RACMasterPM
http://www.linkedin.com/in/anil-nair-01960b6
http://www.slideshare.net/AnilNair27/
Guest speaker:
Paresh Patel
Senior Member of Technical Staff,
PayPal
The preceding is intended to outline our general product direction. It is intended for information purposes
only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code,
or functionality, and should not be relied upon in making purchasing decisions. The development,
release, timing, and pricing of any features or functionality described for Oracle’s products may change
and remains at the sole discretion of Oracle Corporation.
Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and
prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed
discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and
Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q
under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website
at http://www.oracle.com/investor. All information in this presentation is current as of September
2019 and Oracle undertakes no duty to update any statement in light of new information or future events.
Safe Harbor
Copyright © 2019 Oracle and/or its affiliates.
Session Survey
Help us make the content even
better. Please complete the
session survey in the Mobile
App.
Session id is TRN 4851
Copyright © 2019 Oracle and/or its affiliates.
Agenda
Best Practices to Upgrade to Oracle 19c
Oracle 19c Grid Infrastructure (GI) New Features
What’s new with Cache Fusion?
1
2
5
3
Agenda
Best Practices to Upgrade to Oracle 19c1
2
6
3
• Execution of ./gridSetup.sh on old
OS releases may fail
• Failure is reported as a perl error
message
• perl has hard dependency on
glibc
• Similar message reported by DB
installer
• Additional details in URL below
https://www.linkedin.com/pulse/high-level-
steps-upgrade-oracle-19c-rac-anil-nair/
Oracle 19c Upgrade requires Linux 7
Upgrade to Linux 7 with least downtime
Drain
delNode
Linux7
addNode
For each Node perform the following
until last node
Linux6 Linux6 Linux6 Linux6
Services
$srvctl relocate service
–drain_timeout
*Inline Upgrade depends on initial configuration
Upgrade to Linux 7 with least downtime
Drain
delNode
Linux7
addNode
For each Node perform the following
until last node
Linux6 Linux6 Linux6 Linux6
Services
$srvctl relocate service
–drain_timeout
*Inline Upgrade depends on initial configuration
Upgrade to Linux 7 with least downtime
Drain
delNode
Linux7
addNode
For each Node perform the following
until last node
Linux6 Linux6 Linux6 Linux6
Services
$srvctl relocate service
–drain_timeout
$./delNode ….
*Inline Upgrade depends on initial configuration
Upgrade to Linux 7 with least downtime
Drain
delNode
Linux7
addNode
For each Node perform the following
until last node
Linux6 Linux6 Linux6 Linux6Linux7
Services
$srvctl relocate service
–drain_timeout
$./delNode ….
Upgrade or
Reinstall
*Inline Upgrade depends on initial configuration
Upgrade to Linux 7 with least downtime
Drain
delNode
Linux7
addNode
For each Node perform the following
until last node
Linux6 Linux6 Linux6 Linux6Linux7
Services
$srvctl relocate service
–drain_timeout
$./delNode ….
Upgrade or
Reinstall
$./addNode ….
*Inline Upgrade depends on initial configuration
• Download latest orachk and benefit
from the latest checks
• No need to individually
download autoupgrade.jar or
cluvfy
• Single report with results from
autoupgrade.jar, orachk and cluvfy
checks
• *orachk also includes other
components like Application
Continuity and Security related
checks
ORAchk=ORAchk+cluvfy+Autoupgrade.jar*
Cluvfy PreUpgrade
ORAchk
ORAchk autoupgrade includes autoupgrade.jar
checks and cluvfy pre-upgrade checks
One command for all Autoupgrade checks
Report includes results from all components with appropriate options
• orachk -preupgrade -targetversion 19.3.0.0.0 –showpass
• cluvfy –stage pre/post
• orachk includes preupgrade.jar and cluvfy pre-upgrade checks
One command for all Autoupgrade checks
Report includes results from all components with appropriate options
• orachk -preupgrade -targetversion 19.3.0.0.0 –showpass
• cluvfy –stage pre/post
• orachk includes preupgrade.jar and cluvfy pre-upgrade checks
One command for all Autoupgrade checks
Report includes results from all components with appropriate options
• orachk -preupgrade -targetversion 19.3.0.0.0 –showpass
• cluvfy –stage pre/post
• orachk includes preupgrade.jar and cluvfy pre-upgrade checks
One command for all Autoupgrade checks
Report includes results from all components with appropriate options
• orachk -preupgrade -targetversion 19.3.0.0.0 –showpass
• cluvfy –stage pre/post
• orachk includes preupgrade.jar and cluvfy pre-upgrade checks
• Grid Infrastructure Management
Repository (GIMR) aka mgmtDB is
NO longer mandatory with starting
with Oracle 19c
• Limited AHF functionality by
utilizing filesystem without GIMR
• No support for CHA GUI chactl
• Trace File Analyzer (TFA) will
provide limited graphical view
State of the GIMR
• Grid Infrastructure Management
Repository (GIMR) aka mgmtDB is
NO longer mandatory with starting
with Oracle 19c
• Limited AHF functionality by
utilizing filesystem without GIMR
• No support for CHA GUI chactl
• Trace File Analyzer (TFA) will
provide limited graphical view
State of the GIMR
Choose to install GIMR: Thanks to Your
Feedback
• Upgrades depend on Initial GIMR configuration
• Choose to Install Grid Infrastructure Management Repository (GIMR)
• Eventual goal is to move GIMR into its own new separate home
20
Only for New Installations
-dryRunForUpgrade: Thanks to Your
Feedback
21
gridSetup now can be used with the –dryRunForUpgrade option for dry run
testing of Oracle Grid Infrastructure upgrades
$./gridSetup.sh –dryRunForUpgrade
GIMR state during upgrade
From
Version
To Version
GIMR
state in
source OH
GIMR
State in
dest OH
Comments
Standalone Cluster Upgrade (Not Cluster Domain)
Pre-
12.2
12.2 Jan
2019 RU
No Yes/No Choice to select Yes/No to configure GIMR during upgrade
Pre-18c 18.5 Yes Yes No Choice to change state of GIMR during upgrade
Pre-19c 19.3 Yes Yes No Choice to change state of GIMR during upgrade
Pre-19c 19.3 No No No Choice to change state of GIMR during upgrade
Fresh Install
12.2 JAN
2019 RU
Yes/No Choice to select Yes/No
18.5 Yes/No Choice to select Yes/No
19.3 - Yes/No To add GIMR post Installation use mgmtca
Read Only Oracle HOME (ROOH)
• ROOH enabled Oracle Database homes store configuration
files outside of the Oracle Home
• Faster cloning of Oracle software home with ROOH as
environment specific configuration files are stored outside of
Oracle home
• Improves security as running processes cannot create new
files under Oracle Home
• Oracle RAC DB Home is ROOH
• $roohctl can be used in versions 18c and 19c for manual
conversion
• Only pertinent to Oracle Database Home (Not GI home)
• Plan to remove configuration files used by application before
converting to ROOH such as
• tnsnames.ora
• Apply patch to a new grid
home while stack continues to
run from current home
• Reduces downtime as stack is
up and running during the
copy process
• Reduces errors caused by
common issues such as “Out
of space”
• Easy fallback in case of issues
Patch faster with -SwitchHome
/u01/app/19.0/grid
/u01/app/19.3/grid
Summary of Best Practices for Upgrade
Always download the latest version of orachk/exachk from
• https://support.oracle.com/epmos/faces/DocContentDisplay?id=1268927.2
• https://support.oracle.com/epmos/faces/DocContentDisplay?id=1070954.1
Consider storage requirements of GIMR
Apply latest OS patches
• orachk includes the DBSAT (Oracle Database security assessment tool)
Add user defined checks to benefit from a single report
Find environment specific files in ORACLE_HOME such as
password, tnsnames.ora, pfile) and other files that may affect using
ROOH
Agenda
Oracle 19c Grid Infrastructure (GI) New Features
1
2
26
3
New GI Resource Modeling for PDBs
• Optimize management of resources such as database instance, listener on
nodes
• Include the ability to startup, stop, prioritize, relocate resources
• define pdb2 as more critical and therefore start pdb2 before other pdbs
• Utilizes Service(s) to drive
workload placement
• Services implicitly opens PDB
Instance(s)
• Order of PDB open based on
service definition
• Defined using Preferred,
Available attributes
• Default modeling after
upgrades
Resource Modeling Today
Services trigger PDB open
Services
• Utilizes Service(s) to drive
workload placement
• Services implicitly opens PDB
Instance(s)
• Order of PDB open based on
service definition
• Defined using Preferred,
Available attributes
• Default modeling after
upgrades
Resource Modeling Today
Services trigger PDB open
Services
• Environment changes,
incorrect permissions of
binaries can prevent stack
startup
• Oracle 19c Clusterware stack
attempts to auto-diagnose
unsuccessful startup issues
• Provides detailed logging in
case of failures
CRS-41053: checking Oracle Grid Infrastructure for file permission
issues
PRVG-2031 : Owner of file ”…gipcd.bin" did not match the
[Expected="grid(54320)" Found="oracle(54325)"]
Oracle Clusterware start Diagnostics
init
cssdAgent
cssdmonitor
ohasd
oraAgent
cssd
crsd
ctssd
HAIP
ACFS
mdnsd
gipcd
evmd
ASM
*NOT all daemons are shown in illustration above
oraRootAgent
Clusterware runtime Diagnostics
• Oracle 19c Clusterware processes maintains histograms, statistics
such as trace file rotation frequency, time taken for rotation
• Preserves critical information on very busy systems
• Severity tagging provides human readable criticality of messages
• 2019-08-20 08:36:13.142 : CSSD:1871161088: [ ERROR]
clssgmclienteventhndlr: (SENDCOMPLETE) No proc found for ClientID
• 2019-08-20 08:36:13.188 : CSSD:1871161088: [ INFO] clssgmDeadProc:
Removing clientID 2:43454:0 (0x7fda802df820), with GIPC
• New diagnostics monitor thread ensures in-memory logs (UTS) are
periodically written to ensure diagnostics are available in case of
process crash
Private Network Interface Check
• Oracle 19c recommends using bonding mode 0 Balance-RR, 1-
Active Backup when HAIP is not used for network redundancy
• Recommendation is based on greater tolerance to network
jitters with different combination of interface, switch, OS
• Check also ensures every node of the cluster has same
bonding mode
• The check is a warning
• It is possible but not recommended to use other modes
Private Network Interface Check
• Oracle 19c recommends using bonding mode 0 Balance-RR, 1-
Active Backup when HAIP is not used for network redundancy
• Recommendation is based on greater tolerance to network
jitters with different combination of interface, switch, OS
• Check also ensures every node of the cluster has same
bonding mode
• The check is a warning
• It is possible but not recommended to use other modes
• Clusterware processes
communicate with each
other using gIPC
• gIPC today utilizes TLS
(Transport Layer
Security)
• Easy configuration of
any future secure
communication
protocol
Oracle Clusterware Ciphers
$crsctl get cluster security tls
ON
$crsctl get cluster tlsciphersuite
enabled
Summary of Clusterware features
Plan to utilize the New Resource modelling capabilities
Clusterware start failure(s) will trigger environment checks with
detailed logging to help pinpoint probable mis-configurations
• Permission
• Network/Storage
Human readable messages in trace files during runtime failures
for faster issue resolution
Additional checks to ensure cluster interconnect is configured
correctly
Agenda
What’s new with Cache Fusion?
1
2
36
3
Cache Fusion: A long Journey
BufferB
B
B
Private
Network
Private
Network B
Private
Network
B
Before Cache Fusion
Cache Fusion
• Multiple LMSs
• Higher Priority
• Auto Tune # of LMS
• BOC Synchronization
• Integration with DRF
• Dynamic GRD resizing
Oracle 8i Oracle 19c
B
2
3
1
2
B
1
• During Startup
• Resources are distributed across nodes
• GRD maintains information on these
resources
• Resource Master may or may not be on
same node as the resource
• Steady State
• DRM (Dynamic Re-Mastering) helps
moves Resource Master to same node
as Resource
38
Optimize Resource Master placement
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
B BB B
M MM M
M MM M
M MM M
M MM M
M MM M
M MM M
M MM M
M MM M
Goal is to reduce 3- way communication providing performance equal to Single Instance
Global Resource Directory
B Buffer M MasterB M
Oracle RAC Performance Automation
• Note 1619155.1 Best Practices and Recommendations for RAC
databases with SGA size over 100GB
• Automatic configuration in 19c
• Dynamic CR slaves to deal with changing workload
• LMS CR slaves (_max_cr_rollbacks deprecated) (1630755.1)
• Reduce “LMS process busy” event in AWR report
• LMS CR Slaves
• Dynamic DLM ticket adjustment to prevent hangs
• remove _lm_tickets
• Subnet Manager for Fast
Node Death detection
• Network (Subnet Manager)
• Disk (Diskmon)
• Utilize low latency RDMA
• Read/Write to remote memory
without CPU
• More details available at
• https://www.slideshare.net/AnilNair2
7/oracle-rac-features-on-exadata
Oracle RAC Exadata optimizations
0.8
30
0
10
20
30
40
Exadata Generic Systems
Fast Node Death Detection
Exafusion
Smart Fusion
Block Transfer
Oracle RAC at PayPal
At PayPal, we put people at the
center of everything we do.
150+
Oracle RAC Clusters
Characteristics of Database platform
5M+
Execs/Sec
25% Y-o-Y
DB Storage Growth
50+ PB
Total DB Storage
Across Databases
18M+
Logical Reads/Sec
4 x Oracle X7-8
(768 Cores, 24 TB memory)
200k
Execs/Sec
300k
GC/GE messages/Sec
Extremely Busy OLTP RAC Cluster
2M+
IC packets sent/received
< 0.250 µs
Avg GC message latency
< 4ms
Avg SQL call latency
75K
Execs/Sec on a table
Why PayPal adopted
Oracle RAC
Scalability limits
Unpredictable availability
Active/Passive configuration
Single instance databases
Does not meet business goals
Capacity wastage
How did PayPal achieve HA and scalability?
o Introduction of new technology and concepts
Ø Oracle Real Application Clusters(RAC) on Oracle x86 server with IB for interconnect
Ø Smart routing of read/write calls to instances on primary database
Ø Shrinking buffer cache to reduce reconfiguration duration during maintenance
Ø Oracle RAC based ADG/GG reader farms for read only and latency tolerant applications
Ø Fail fast Read Only cluster to failover traffic to secondary cluster in < 10 seconds
o Benefits
Ø Elastic scalability
Ø Availability improved by 10x
Ø Eliminated Single Point Of Failure(SPOF)
Ø Primary database Instance failover improved by 10x
Ø Leverage all allocated capacity means reduced CAPEX
Oracle 19c RAC features addressing our needs/problems?
o Availability improvement by 4x by introducing,
Ø more LMS processes where enough compute capacity available
Ø optimized algorithms reducing Oracle RAC reconfiguration duration
Ø DBMS_CACHEUTIL helping with grab and dissolve resource affinity
Ø Instance pairing for crash redo recovery
o Improvements in scalability and Performance,
Ø Oracle RAC scalable sequences
Ø improved cache locality reducing interconnect traffic
Ø Smart fusion block transfer eliminating redo log write latency on Exadata
Ø commit cache for recent transactions reducing block transfers between nodes
o Exadata Adoption
Ø Benefit from Oracle RAC features on Exadata
Summary
• Oracle RAC is the proven choice for Scalability and Availability without any application changes

More Related Content

PDF
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Sandesh Rao
 
PDF
Oracle RAC 19c and Later - Best Practices #OOWLON
Markus Michalewicz
 
PDF
Understanding oracle rac internals part 1 - slides
Mohamed Farouk
 
PDF
Understanding oracle rac internals part 2 - slides
Mohamed Farouk
 
PDF
Exadata master series_asm_2020
Anil Nair
 
PDF
Oracle RAC - New Generation
Anil Nair
 
PDF
Oracle Extended Clusters for Oracle RAC
Markus Michalewicz
 
PDF
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Glen Hawkins
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Sandesh Rao
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Markus Michalewicz
 
Understanding oracle rac internals part 1 - slides
Mohamed Farouk
 
Understanding oracle rac internals part 2 - slides
Mohamed Farouk
 
Exadata master series_asm_2020
Anil Nair
 
Oracle RAC - New Generation
Anil Nair
 
Oracle Extended Clusters for Oracle RAC
Markus Michalewicz
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Glen Hawkins
 

What's hot (20)

PDF
Scaling paypal workloads with oracle rac ss
Anil Nair
 
PDF
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
Markus Michalewicz
 
PPTX
Oracle RAC features on Exadata
Anil Nair
 
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
SrirakshaSrinivasan2
 
PDF
New Generation Oracle RAC Performance
Anil Nair
 
PPTX
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
PDF
Performance Stability, Tips and Tricks and Underscores
Jitendra Singh
 
PDF
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
Sandesh Rao
 
PDF
Smart monitoring how does oracle rac manage resource, state ukoug19
Anil Nair
 
PPTX
Oracle ASM Training
Vigilant Technologies
 
PDF
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Markus Michalewicz
 
PDF
Oracle RAC 19c - the Basis for the Autonomous Database
Markus Michalewicz
 
PDF
MAA for Oracle Database, Exadata and the Cloud
Markus Michalewicz
 
PDF
Oracle RAC Internals - The Cache Fusion Edition
Markus Michalewicz
 
PDF
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Markus Michalewicz
 
PDF
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder
 
PDF
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Markus Michalewicz
 
PDF
Zero Data Loss Recovery Applianceのご紹介
オラクルエンジニア通信
 
PDF
Same plan different performance
Mauro Pagano
 
PDF
The Oracle RAC Family of Solutions - Presentation
Markus Michalewicz
 
Scaling paypal workloads with oracle rac ss
Anil Nair
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
Markus Michalewicz
 
Oracle RAC features on Exadata
Anil Nair
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
SrirakshaSrinivasan2
 
New Generation Oracle RAC Performance
Anil Nair
 
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
Performance Stability, Tips and Tricks and Underscores
Jitendra Singh
 
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
Sandesh Rao
 
Smart monitoring how does oracle rac manage resource, state ukoug19
Anil Nair
 
Oracle ASM Training
Vigilant Technologies
 
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Markus Michalewicz
 
Oracle RAC 19c - the Basis for the Autonomous Database
Markus Michalewicz
 
MAA for Oracle Database, Exadata and the Cloud
Markus Michalewicz
 
Oracle RAC Internals - The Cache Fusion Edition
Markus Michalewicz
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Markus Michalewicz
 
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder
 
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Markus Michalewicz
 
Zero Data Loss Recovery Applianceのご紹介
オラクルエンジニア通信
 
Same plan different performance
Mauro Pagano
 
The Oracle RAC Family of Solutions - Presentation
Markus Michalewicz
 
Ad

Similar to Oracle RAC 19c: Best Practices and Secret Internals (20)

PDF
Exachk Customer Presentation
Sandesh Rao
 
PDF
Oracle ORAchk & EXAchk overview
Gareth Chapman
 
PPT
Upgrade 11gR2 to 12cR1 Clusterware
Nikhil Kumar
 
PDF
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Markus Michalewicz
 
PDF
Oracle RAC 12c Rel. 2 Under the Hood and Best Practices
Markus Michalewicz
 
PDF
Maximizing Oracle RAC Uptime
Markus Michalewicz
 
PDF
real-application-clusters-installation-guide-linux-and-unix.pdf
MitJiu
 
PDF
Oracle ORAchk - An Overview Guide to Oracle Stack Health Checks
Gareth Chapman
 
PPTX
Con8780 nair rac_best_practices_final_without_12_2content
Anil Nair
 
PDF
Upgrade19c_HOL_Overview.04232020.pdf
HectorAndrade40
 
PDF
Reporting _ Erica Harris _ Upgrading Oracle EPM from v11.1.1 to v11.1.2.pdf
InSync2011
 
PDF
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
Sandesh Rao
 
PDF
Oracle database 12c 2 day + real application clusters guide
bupbechanhgmail
 
PPTX
Database Upgrades Automation using Enterprise Manager 12c
Hari Srinivasan
 
PDF
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Markus Michalewicz
 
PDF
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Markus Michalewicz
 
PDF
Presentation 12c grid_upgrade
Jacques Kostic
 
PDF
New in Oracle Universal Installer (OUI)
Markus Michalewicz
 
PDF
Oracle Cloud – Application Performance Monitoring
MarketingArrowECS_CZ
 
PDF
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
Miguel Araújo
 
Exachk Customer Presentation
Sandesh Rao
 
Oracle ORAchk & EXAchk overview
Gareth Chapman
 
Upgrade 11gR2 to 12cR1 Clusterware
Nikhil Kumar
 
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Markus Michalewicz
 
Oracle RAC 12c Rel. 2 Under the Hood and Best Practices
Markus Michalewicz
 
Maximizing Oracle RAC Uptime
Markus Michalewicz
 
real-application-clusters-installation-guide-linux-and-unix.pdf
MitJiu
 
Oracle ORAchk - An Overview Guide to Oracle Stack Health Checks
Gareth Chapman
 
Con8780 nair rac_best_practices_final_without_12_2content
Anil Nair
 
Upgrade19c_HOL_Overview.04232020.pdf
HectorAndrade40
 
Reporting _ Erica Harris _ Upgrading Oracle EPM from v11.1.1 to v11.1.2.pdf
InSync2011
 
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
Sandesh Rao
 
Oracle database 12c 2 day + real application clusters guide
bupbechanhgmail
 
Database Upgrades Automation using Enterprise Manager 12c
Hari Srinivasan
 
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Markus Michalewicz
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Markus Michalewicz
 
Presentation 12c grid_upgrade
Jacques Kostic
 
New in Oracle Universal Installer (OUI)
Markus Michalewicz
 
Oracle Cloud – Application Performance Monitoring
MarketingArrowECS_CZ
 
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
Miguel Araújo
 
Ad

More from Anil Nair (8)

PDF
Using Machine Learning to Debug complex Oracle RAC Issues
Anil Nair
 
PDF
Rac 12c rel2_operational_best_practices_sangam_2017_as_pdf
Anil Nair
 
PDF
Using Machine Learning to Debug Oracle RAC Issues
Anil Nair
 
PPTX
Rac 12c rel2_operational_best_practices_sangam_2017
Anil Nair
 
PDF
New availability features in oracle rac 12c release 2 anair ss
Anil Nair
 
PPTX
Collaborate 17 Oracle RAC 12cRel 2 Best Practices
Anil Nair
 
PDF
Step by Step instructions to install Cluster Domain deployment model
Anil Nair
 
PPTX
Anil nair rac_internals_sangam_2016
Anil Nair
 
Using Machine Learning to Debug complex Oracle RAC Issues
Anil Nair
 
Rac 12c rel2_operational_best_practices_sangam_2017_as_pdf
Anil Nair
 
Using Machine Learning to Debug Oracle RAC Issues
Anil Nair
 
Rac 12c rel2_operational_best_practices_sangam_2017
Anil Nair
 
New availability features in oracle rac 12c release 2 anair ss
Anil Nair
 
Collaborate 17 Oracle RAC 12cRel 2 Best Practices
Anil Nair
 
Step by Step instructions to install Cluster Domain deployment model
Anil Nair
 
Anil nair rac_internals_sangam_2016
Anil Nair
 

Recently uploaded (20)

PPTX
Measurement of Afordability for Water Supply and Sanitation in Bangladesh .pptx
akmibrahimbd
 
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
JanakiRaman206018
 
PDF
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
PDF
Data Science Trends & Career Guide---ppt
jisajoy3061
 
PDF
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
PPTX
Trading Procedures (1).pptxcffcdddxxddsss
garv794
 
PPTX
Azure Data management Engineer project.pptx
sumitmundhe77
 
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PaulYoung221210
 
PDF
Master Databricks SQL with AccentFuture – The Future of Data Warehousing
Accentfuture
 
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
dushyantsharma1221
 
PPTX
CL11_CH20_-LOCOMOTION-AND-MOVEMENT-Autosaved.pptx
GOTOO80
 
PPTX
Introduction to Biostatistics Presentation.pptx
AtemJoshua
 
PPTX
Economic Sector Performance Recovery.pptx
yulisbaso2020
 
PDF
Company Presentation pada Perusahaan ADB.pdf
didikfahmi
 
PDF
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
PDF
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
PDF
AI Lect 2 Identifying AI systems, branches of AI, etc.pdf
mswindow00
 
PPTX
Extract Transformation Load (3) (1).pptx
revathi148366
 
PDF
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 
PDF
Chad Readey - An Independent Thinker
Chad Readey
 
Measurement of Afordability for Water Supply and Sanitation in Bangladesh .pptx
akmibrahimbd
 
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
JanakiRaman206018
 
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
Data Science Trends & Career Guide---ppt
jisajoy3061
 
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
Trading Procedures (1).pptxcffcdddxxddsss
garv794
 
Azure Data management Engineer project.pptx
sumitmundhe77
 
Moving the Public Sector (Government) to a Digital Adoption
PaulYoung221210
 
Master Databricks SQL with AccentFuture – The Future of Data Warehousing
Accentfuture
 
Major-Components-ofNKJNNKNKNKNKronment.pptx
dushyantsharma1221
 
CL11_CH20_-LOCOMOTION-AND-MOVEMENT-Autosaved.pptx
GOTOO80
 
Introduction to Biostatistics Presentation.pptx
AtemJoshua
 
Economic Sector Performance Recovery.pptx
yulisbaso2020
 
Company Presentation pada Perusahaan ADB.pdf
didikfahmi
 
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
AI Lect 2 Identifying AI systems, branches of AI, etc.pdf
mswindow00
 
Extract Transformation Load (3) (1).pptx
revathi148366
 
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 
Chad Readey - An Independent Thinker
Chad Readey
 

Oracle RAC 19c: Best Practices and Secret Internals

  • 1. 1 Oracle Real Application Clusters 19c: Best Practices and Secret Internals Copyright © 2019 Oracle and/or its affiliates. Anil Nair Sr Principal Product Manager, Oracle Real Application Clusters (RAC) @RACMasterPM http://www.linkedin.com/in/anil-nair-01960b6 http://www.slideshare.net/AnilNair27/
  • 2. Guest speaker: Paresh Patel Senior Member of Technical Staff, PayPal
  • 3. The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation. Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website at http://www.oracle.com/investor. All information in this presentation is current as of September 2019 and Oracle undertakes no duty to update any statement in light of new information or future events. Safe Harbor Copyright © 2019 Oracle and/or its affiliates.
  • 4. Session Survey Help us make the content even better. Please complete the session survey in the Mobile App. Session id is TRN 4851 Copyright © 2019 Oracle and/or its affiliates.
  • 5. Agenda Best Practices to Upgrade to Oracle 19c Oracle 19c Grid Infrastructure (GI) New Features What’s new with Cache Fusion? 1 2 5 3
  • 6. Agenda Best Practices to Upgrade to Oracle 19c1 2 6 3
  • 7. • Execution of ./gridSetup.sh on old OS releases may fail • Failure is reported as a perl error message • perl has hard dependency on glibc • Similar message reported by DB installer • Additional details in URL below https://www.linkedin.com/pulse/high-level- steps-upgrade-oracle-19c-rac-anil-nair/ Oracle 19c Upgrade requires Linux 7
  • 8. Upgrade to Linux 7 with least downtime Drain delNode Linux7 addNode For each Node perform the following until last node Linux6 Linux6 Linux6 Linux6 Services $srvctl relocate service –drain_timeout *Inline Upgrade depends on initial configuration
  • 9. Upgrade to Linux 7 with least downtime Drain delNode Linux7 addNode For each Node perform the following until last node Linux6 Linux6 Linux6 Linux6 Services $srvctl relocate service –drain_timeout *Inline Upgrade depends on initial configuration
  • 10. Upgrade to Linux 7 with least downtime Drain delNode Linux7 addNode For each Node perform the following until last node Linux6 Linux6 Linux6 Linux6 Services $srvctl relocate service –drain_timeout $./delNode …. *Inline Upgrade depends on initial configuration
  • 11. Upgrade to Linux 7 with least downtime Drain delNode Linux7 addNode For each Node perform the following until last node Linux6 Linux6 Linux6 Linux6Linux7 Services $srvctl relocate service –drain_timeout $./delNode …. Upgrade or Reinstall *Inline Upgrade depends on initial configuration
  • 12. Upgrade to Linux 7 with least downtime Drain delNode Linux7 addNode For each Node perform the following until last node Linux6 Linux6 Linux6 Linux6Linux7 Services $srvctl relocate service –drain_timeout $./delNode …. Upgrade or Reinstall $./addNode …. *Inline Upgrade depends on initial configuration
  • 13. • Download latest orachk and benefit from the latest checks • No need to individually download autoupgrade.jar or cluvfy • Single report with results from autoupgrade.jar, orachk and cluvfy checks • *orachk also includes other components like Application Continuity and Security related checks ORAchk=ORAchk+cluvfy+Autoupgrade.jar* Cluvfy PreUpgrade ORAchk ORAchk autoupgrade includes autoupgrade.jar checks and cluvfy pre-upgrade checks
  • 14. One command for all Autoupgrade checks Report includes results from all components with appropriate options • orachk -preupgrade -targetversion 19.3.0.0.0 –showpass • cluvfy –stage pre/post • orachk includes preupgrade.jar and cluvfy pre-upgrade checks
  • 15. One command for all Autoupgrade checks Report includes results from all components with appropriate options • orachk -preupgrade -targetversion 19.3.0.0.0 –showpass • cluvfy –stage pre/post • orachk includes preupgrade.jar and cluvfy pre-upgrade checks
  • 16. One command for all Autoupgrade checks Report includes results from all components with appropriate options • orachk -preupgrade -targetversion 19.3.0.0.0 –showpass • cluvfy –stage pre/post • orachk includes preupgrade.jar and cluvfy pre-upgrade checks
  • 17. One command for all Autoupgrade checks Report includes results from all components with appropriate options • orachk -preupgrade -targetversion 19.3.0.0.0 –showpass • cluvfy –stage pre/post • orachk includes preupgrade.jar and cluvfy pre-upgrade checks
  • 18. • Grid Infrastructure Management Repository (GIMR) aka mgmtDB is NO longer mandatory with starting with Oracle 19c • Limited AHF functionality by utilizing filesystem without GIMR • No support for CHA GUI chactl • Trace File Analyzer (TFA) will provide limited graphical view State of the GIMR
  • 19. • Grid Infrastructure Management Repository (GIMR) aka mgmtDB is NO longer mandatory with starting with Oracle 19c • Limited AHF functionality by utilizing filesystem without GIMR • No support for CHA GUI chactl • Trace File Analyzer (TFA) will provide limited graphical view State of the GIMR
  • 20. Choose to install GIMR: Thanks to Your Feedback • Upgrades depend on Initial GIMR configuration • Choose to Install Grid Infrastructure Management Repository (GIMR) • Eventual goal is to move GIMR into its own new separate home 20 Only for New Installations
  • 21. -dryRunForUpgrade: Thanks to Your Feedback 21 gridSetup now can be used with the –dryRunForUpgrade option for dry run testing of Oracle Grid Infrastructure upgrades $./gridSetup.sh –dryRunForUpgrade
  • 22. GIMR state during upgrade From Version To Version GIMR state in source OH GIMR State in dest OH Comments Standalone Cluster Upgrade (Not Cluster Domain) Pre- 12.2 12.2 Jan 2019 RU No Yes/No Choice to select Yes/No to configure GIMR during upgrade Pre-18c 18.5 Yes Yes No Choice to change state of GIMR during upgrade Pre-19c 19.3 Yes Yes No Choice to change state of GIMR during upgrade Pre-19c 19.3 No No No Choice to change state of GIMR during upgrade Fresh Install 12.2 JAN 2019 RU Yes/No Choice to select Yes/No 18.5 Yes/No Choice to select Yes/No 19.3 - Yes/No To add GIMR post Installation use mgmtca
  • 23. Read Only Oracle HOME (ROOH) • ROOH enabled Oracle Database homes store configuration files outside of the Oracle Home • Faster cloning of Oracle software home with ROOH as environment specific configuration files are stored outside of Oracle home • Improves security as running processes cannot create new files under Oracle Home • Oracle RAC DB Home is ROOH • $roohctl can be used in versions 18c and 19c for manual conversion • Only pertinent to Oracle Database Home (Not GI home) • Plan to remove configuration files used by application before converting to ROOH such as • tnsnames.ora
  • 24. • Apply patch to a new grid home while stack continues to run from current home • Reduces downtime as stack is up and running during the copy process • Reduces errors caused by common issues such as “Out of space” • Easy fallback in case of issues Patch faster with -SwitchHome /u01/app/19.0/grid /u01/app/19.3/grid
  • 25. Summary of Best Practices for Upgrade Always download the latest version of orachk/exachk from • https://support.oracle.com/epmos/faces/DocContentDisplay?id=1268927.2 • https://support.oracle.com/epmos/faces/DocContentDisplay?id=1070954.1 Consider storage requirements of GIMR Apply latest OS patches • orachk includes the DBSAT (Oracle Database security assessment tool) Add user defined checks to benefit from a single report Find environment specific files in ORACLE_HOME such as password, tnsnames.ora, pfile) and other files that may affect using ROOH
  • 26. Agenda Oracle 19c Grid Infrastructure (GI) New Features 1 2 26 3
  • 27. New GI Resource Modeling for PDBs • Optimize management of resources such as database instance, listener on nodes • Include the ability to startup, stop, prioritize, relocate resources • define pdb2 as more critical and therefore start pdb2 before other pdbs
  • 28. • Utilizes Service(s) to drive workload placement • Services implicitly opens PDB Instance(s) • Order of PDB open based on service definition • Defined using Preferred, Available attributes • Default modeling after upgrades Resource Modeling Today Services trigger PDB open Services
  • 29. • Utilizes Service(s) to drive workload placement • Services implicitly opens PDB Instance(s) • Order of PDB open based on service definition • Defined using Preferred, Available attributes • Default modeling after upgrades Resource Modeling Today Services trigger PDB open Services
  • 30. • Environment changes, incorrect permissions of binaries can prevent stack startup • Oracle 19c Clusterware stack attempts to auto-diagnose unsuccessful startup issues • Provides detailed logging in case of failures CRS-41053: checking Oracle Grid Infrastructure for file permission issues PRVG-2031 : Owner of file ”…gipcd.bin" did not match the [Expected="grid(54320)" Found="oracle(54325)"] Oracle Clusterware start Diagnostics init cssdAgent cssdmonitor ohasd oraAgent cssd crsd ctssd HAIP ACFS mdnsd gipcd evmd ASM *NOT all daemons are shown in illustration above oraRootAgent
  • 31. Clusterware runtime Diagnostics • Oracle 19c Clusterware processes maintains histograms, statistics such as trace file rotation frequency, time taken for rotation • Preserves critical information on very busy systems • Severity tagging provides human readable criticality of messages • 2019-08-20 08:36:13.142 : CSSD:1871161088: [ ERROR] clssgmclienteventhndlr: (SENDCOMPLETE) No proc found for ClientID • 2019-08-20 08:36:13.188 : CSSD:1871161088: [ INFO] clssgmDeadProc: Removing clientID 2:43454:0 (0x7fda802df820), with GIPC • New diagnostics monitor thread ensures in-memory logs (UTS) are periodically written to ensure diagnostics are available in case of process crash
  • 32. Private Network Interface Check • Oracle 19c recommends using bonding mode 0 Balance-RR, 1- Active Backup when HAIP is not used for network redundancy • Recommendation is based on greater tolerance to network jitters with different combination of interface, switch, OS • Check also ensures every node of the cluster has same bonding mode • The check is a warning • It is possible but not recommended to use other modes
  • 33. Private Network Interface Check • Oracle 19c recommends using bonding mode 0 Balance-RR, 1- Active Backup when HAIP is not used for network redundancy • Recommendation is based on greater tolerance to network jitters with different combination of interface, switch, OS • Check also ensures every node of the cluster has same bonding mode • The check is a warning • It is possible but not recommended to use other modes
  • 34. • Clusterware processes communicate with each other using gIPC • gIPC today utilizes TLS (Transport Layer Security) • Easy configuration of any future secure communication protocol Oracle Clusterware Ciphers $crsctl get cluster security tls ON $crsctl get cluster tlsciphersuite enabled
  • 35. Summary of Clusterware features Plan to utilize the New Resource modelling capabilities Clusterware start failure(s) will trigger environment checks with detailed logging to help pinpoint probable mis-configurations • Permission • Network/Storage Human readable messages in trace files during runtime failures for faster issue resolution Additional checks to ensure cluster interconnect is configured correctly
  • 36. Agenda What’s new with Cache Fusion? 1 2 36 3
  • 37. Cache Fusion: A long Journey BufferB B B Private Network Private Network B Private Network B Before Cache Fusion Cache Fusion • Multiple LMSs • Higher Priority • Auto Tune # of LMS • BOC Synchronization • Integration with DRF • Dynamic GRD resizing Oracle 8i Oracle 19c B 2 3 1 2 B 1
  • 38. • During Startup • Resources are distributed across nodes • GRD maintains information on these resources • Resource Master may or may not be on same node as the resource • Steady State • DRM (Dynamic Re-Mastering) helps moves Resource Master to same node as Resource 38 Optimize Resource Master placement B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B B BB B M MM M M MM M M MM M M MM M M MM M M MM M M MM M M MM M Goal is to reduce 3- way communication providing performance equal to Single Instance Global Resource Directory B Buffer M MasterB M
  • 39. Oracle RAC Performance Automation • Note 1619155.1 Best Practices and Recommendations for RAC databases with SGA size over 100GB • Automatic configuration in 19c • Dynamic CR slaves to deal with changing workload • LMS CR slaves (_max_cr_rollbacks deprecated) (1630755.1) • Reduce “LMS process busy” event in AWR report • LMS CR Slaves • Dynamic DLM ticket adjustment to prevent hangs • remove _lm_tickets
  • 40. • Subnet Manager for Fast Node Death detection • Network (Subnet Manager) • Disk (Diskmon) • Utilize low latency RDMA • Read/Write to remote memory without CPU • More details available at • https://www.slideshare.net/AnilNair2 7/oracle-rac-features-on-exadata Oracle RAC Exadata optimizations 0.8 30 0 10 20 30 40 Exadata Generic Systems Fast Node Death Detection Exafusion Smart Fusion Block Transfer
  • 41. Oracle RAC at PayPal
  • 42. At PayPal, we put people at the center of everything we do.
  • 43. 150+ Oracle RAC Clusters Characteristics of Database platform 5M+ Execs/Sec 25% Y-o-Y DB Storage Growth 50+ PB Total DB Storage Across Databases 18M+ Logical Reads/Sec 4 x Oracle X7-8 (768 Cores, 24 TB memory) 200k Execs/Sec 300k GC/GE messages/Sec Extremely Busy OLTP RAC Cluster 2M+ IC packets sent/received < 0.250 µs Avg GC message latency < 4ms Avg SQL call latency 75K Execs/Sec on a table
  • 44. Why PayPal adopted Oracle RAC Scalability limits Unpredictable availability Active/Passive configuration Single instance databases Does not meet business goals Capacity wastage
  • 45. How did PayPal achieve HA and scalability? o Introduction of new technology and concepts Ø Oracle Real Application Clusters(RAC) on Oracle x86 server with IB for interconnect Ø Smart routing of read/write calls to instances on primary database Ø Shrinking buffer cache to reduce reconfiguration duration during maintenance Ø Oracle RAC based ADG/GG reader farms for read only and latency tolerant applications Ø Fail fast Read Only cluster to failover traffic to secondary cluster in < 10 seconds o Benefits Ø Elastic scalability Ø Availability improved by 10x Ø Eliminated Single Point Of Failure(SPOF) Ø Primary database Instance failover improved by 10x Ø Leverage all allocated capacity means reduced CAPEX
  • 46. Oracle 19c RAC features addressing our needs/problems? o Availability improvement by 4x by introducing, Ø more LMS processes where enough compute capacity available Ø optimized algorithms reducing Oracle RAC reconfiguration duration Ø DBMS_CACHEUTIL helping with grab and dissolve resource affinity Ø Instance pairing for crash redo recovery o Improvements in scalability and Performance, Ø Oracle RAC scalable sequences Ø improved cache locality reducing interconnect traffic Ø Smart fusion block transfer eliminating redo log write latency on Exadata Ø commit cache for recent transactions reducing block transfers between nodes o Exadata Adoption Ø Benefit from Oracle RAC features on Exadata
  • 47. Summary • Oracle RAC is the proven choice for Scalability and Availability without any application changes