SlideShare a Scribd company logo
Oracle Performance
Tools of the Trade
Carlos Sierra
• Oracle Performance and SQL Tuning
• Consultant/Developer/DBA
• eDB360 and eAdam
• SQLT and SQLHC
• Exadata
Carlos Sierra
Enkitec (c) 2014 2
Tools of the Trade
• OEM
• AWR
• ADDM
• ASH
• EDB360
Enkitec © 2014 3
OEM
• Oracle Enterprise Manager (OEM)
– Database Control
– Grid Control
• GUI Tool for System Monitoring
– Including Performance
Enkitec © 2014 4
Enkitec © 2014 5
Enkitec © 2014 6
Enkitec © 2014 7
Enkitec © 2014 8
Enkitec © 2014 9
Enkitec © 2014 10
Enkitec © 2014 11
Enkitec © 2014 12
Enkitec © 2014 13
Enkitec © 2014 14
Enkitec © 2014 15
Enkitec © 2014 16
What is wrong?
Enkitec © 2014 17
AWR
• Automatic Workload Repository (AWR)
• Requires Oracle Diagnostics Pack License
• Set of DBA_HIST views
• Periodic Snapshots (1hr apart by default)
• 7 days history (by default)
Enkitec © 2014 18
AWR Demo (1)
• Go to: carlos-sierra.net
• Right-hand side
• Downloads
– ECO Demos
Enkitec © 2014 19
AWR Demo (2)
• Average Active Sessions (AAS)?
• DB CPU Utilization?
• Do you see any bottlenecks?
• What would be your action plan?
Enkitec © 2014 20
Enkitec © 2014 21
Enkitec © 2014 22
Enkitec © 2014 23
Enkitec © 2014 24
Enkitec © 2014 25
Enkitec © 2014 26
Enkitec © 2014 27
Enkitec © 2014 28
Enkitec © 2014 29
Enkitec © 2014 30
Enkitec © 2014 31
Enkitec © 2014 32
Enkitec © 2014 33
Enkitec © 2014 34
AWR Demo Conclusions (1)
• High Parsing
– Use of Literals instead of Bind Variables
• Some suboptimal SQL wasting CPU cycles
• High Background Waits related to DBWR
• Write Back Flash Cache disabled
– Hard to detect!
Enkitec © 2014 35
AWR Demo Conclusions (2)
• 6 copies of Control Files
– 2 members in 2 high redundancy disk groups
• Thousands of Tablespaces (thus Data Files)
• Frequent Log switches due to small size
– Think Checkpoints updating SCN on Data Files
and Control Files
Enkitec © 2014 36
AWR Demo Conclusions (3)
• There is usually more than 1 culprit
– Even when performance is fine
• Database health-check is like any other
– Early detection is preferred
• Motto: “if it ain't broke, don't fix it”
– Really?
– Would you apply this motto to your own health?
Enkitec © 2014 37
Alert Log
• As old as Oracle
• Like reading your Daily News
• Watch for ORA errors
– And fix them!
• Rename every so often
Enkitec © 2014 38
ADDM (1)
• Automatic Database Diagnostic Monitor
• Requires Oracle Diagnostics Pack License
• Its goal is to reduce DB Time
– Wait and CPU time of all non-idle user sessions
• Based on AWR data
– Hourly execution by default
Enkitec © 2014 39
ADDM (2)
• Database, Instance or Partial modes
• Available via OEM or SQL*Plus
– DBA_ADVISOR_* and DBA_ADDM_*
• Question Everything, including “Advice”
Enkitec © 2014 40
Enkitec © 2014 41
ADDM Sample
Enkitec © 2014 42
ASH (1)
• Active Session History (ASH)
• Requires Oracle Diagnostics Pack License
• Active Session
– On CPU; or
– Non-idle Wait
Enkitec © 2014 43
ASH (2)
• Snapshot of V$SESSION every second
– V$ACTIVE_SESSION_HISTORY
– Every 10 seconds on AWR
• DBA_HIST_ACTIVE_SESS_HISTORY
• Source of truth
• Multi-dimension
Enkitec © 2014 44
Enkitec © 2014 45
ASH Sample
EDB360
Enkitec © 2014 46
• 360-degree view of an Oracle database
• Database health-check and sizing
• 2 Parameters: Pack License [T|D|N] and Days
– @edb360.sql T 31
• Installs nothing
• Free download and use
EDB360 Demo (1)
• Go to: carlos-sierra.net
• Right-hand side
• Downloads
– ECO Demos
Enkitec © 2014 47
Enkitec © 2014 48
EDB360 Demo (2)
EDB360 Demo (3)
• When was 11.2.0.3 BP21 applied?
• Is “_parallel_statement_queuing” modified?
• What is CPU peak demand for instance 1?
• How many invalid objects?
• How many SQL Plan Baselines?
• Are CBO System Statistics collected?
Enkitec © 2014 49
Enkitec © 2014 50
Enkitec © 2014 51
Enkitec © 2014 52
Conclusions
• OEM is “the” tool for Oracle Performance
• AWR, ADDM and ASH complement OEM
• EDB360 allows “offline” analysis
• Snapper is a good “session level” tool
• SQL Tuning requires the use of specialized
tools
Enkitec © 2014 53
References
• Oracle Database Performance Tuning Guide
11g Release 2
• Snapper - Tanel Poder
– http://blog.tanelpoder.com/files/scripts/snapper
4.sql
• http://www.enkitec.com/products/edb360
Enkitec © 2014 54
Contact Information
• carlos.sierra@enkitec.com
• carlos-sierra.net
• @csierra_usa
Enkitec © 2014 55

More Related Content

PDF
Oracle Performance Tuning Fundamentals
PDF
Oracle db performance tuning
PPT
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
PDF
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
PDF
Tanel Poder - Performance stories from Exadata Migrations
PDF
Tanel Poder - Scripts and Tools short
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
PDF
Oracle statistics by example
Oracle Performance Tuning Fundamentals
Oracle db performance tuning
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Scripts and Tools short
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle statistics by example

What's hot (20)

PPT
Using AWR for IO Subsystem Analysis
PDF
Analyzing and Interpreting AWR
PPTX
Oracle database performance tuning
PPTX
Oracle DBA
PDF
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
PPT
Sga internals
PDF
Oracle RAC 19c: Best Practices and Secret Internals
PDF
Oracle database performance tuning
PDF
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
PPTX
Understanding SQL Trace, TKPROF and Execution Plan for beginners
PDF
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
PPTX
AWR and ASH Deep Dive
PDF
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
PDF
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
PPTX
Backup & recovery with rman
PDF
Ash architecture and advanced usage rmoug2014
PDF
Oracle RAC 19c and Later - Best Practices #OOWLON
PPTX
Understanding my database through SQL*Plus using the free tool eDB360
PDF
Partitioning tables and indexing them
PDF
EM12c: Capacity Planning with OEM Metrics
Using AWR for IO Subsystem Analysis
Analyzing and Interpreting AWR
Oracle database performance tuning
Oracle DBA
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Sga internals
Oracle RAC 19c: Best Practices and Secret Internals
Oracle database performance tuning
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
Understanding SQL Trace, TKPROF and Execution Plan for beginners
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
AWR and ASH Deep Dive
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Backup & recovery with rman
Ash architecture and advanced usage rmoug2014
Oracle RAC 19c and Later - Best Practices #OOWLON
Understanding my database through SQL*Plus using the free tool eDB360
Partitioning tables and indexing them
EM12c: Capacity Planning with OEM Metrics
Ad

Viewers also liked (7)

PPSX
How a Developer can Troubleshoot a SQL performing poorly on a Production DB
PPSX
Oracle Performance Tuning Fundamentals
PPSX
Introducing the eDB360 Tool
PPTX
SQLT XPLORE: The SQLT XPLAIN hidden child
PPTX
Understanding How is that Adaptive Cursor Sharing (ACS) produces multiple Opt...
PPTX
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan Stability
PPTX
SQL Tuning made easier with SQLTXPLAIN (SQLT)
How a Developer can Troubleshoot a SQL performing poorly on a Production DB
Oracle Performance Tuning Fundamentals
Introducing the eDB360 Tool
SQLT XPLORE: The SQLT XPLAIN hidden child
Understanding How is that Adaptive Cursor Sharing (ACS) produces multiple Opt...
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan Stability
SQL Tuning made easier with SQLTXPLAIN (SQLT)
Ad

Similar to Oracle Performance Tools of the Trade (20)

PDF
Oracle Performance Tools of the Trade
PPSX
Introducing the eDB360 Tool
PDF
Free oracle performance tools
PPTX
Oracle Open World Exadata Monitoring and Management with EM12c
PDF
AWR, ASH with EM13 at HotSos 2016
PPTX
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
PDF
freetools-170503222740.pdforacleeeeeeeee
PDF
Findfixandvalidate 140221013443-phpapp01
PPTX
Oracle database performance monitoring diagnosis and reporting with EG Innova...
PPTX
Advanced Database Administration 10g
PDF
Presentation cloud control enterprise manager 12c
PPT
Oracle Enterprise Manager Cloud Control 12c - Top 10 Features for DBAs
PDF
2 Years of Exadata in Production
PDF
Winning performance challenges in oracle standard editions
PDF
Winning performance challenges in oracle standard editions
PPTX
SQL TUNING 101
PPT
Oracle enterprise manager cloud control 12c
PPTX
SQL TUNING 101
PPSX
Barun_Practical_and_Efficient_SQL_Performance_Tuning
Oracle Performance Tools of the Trade
Introducing the eDB360 Tool
Free oracle performance tools
Oracle Open World Exadata Monitoring and Management with EM12c
AWR, ASH with EM13 at HotSos 2016
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
freetools-170503222740.pdforacleeeeeeeee
Findfixandvalidate 140221013443-phpapp01
Oracle database performance monitoring diagnosis and reporting with EG Innova...
Advanced Database Administration 10g
Presentation cloud control enterprise manager 12c
Oracle Enterprise Manager Cloud Control 12c - Top 10 Features for DBAs
2 Years of Exadata in Production
Winning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editions
SQL TUNING 101
Oracle enterprise manager cloud control 12c
SQL TUNING 101
Barun_Practical_and_Efficient_SQL_Performance_Tuning

Recently uploaded (20)

PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
AI in Product Development-omnex systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Transform Your Business with a Software ERP System
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Digital Strategies for Manufacturing Companies
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Introduction to Artificial Intelligence
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Essential Infomation Tech presentation.pptx
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
System and Network Administration Chapter 2
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PTS Company Brochure 2025 (1).pdf.......
AI in Product Development-omnex systems
Odoo POS Development Services by CandidRoot Solutions
How to Migrate SBCGlobal Email to Yahoo Easily
Transform Your Business with a Software ERP System
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Digital Strategies for Manufacturing Companies
Which alternative to Crystal Reports is best for small or large businesses.pdf
Introduction to Artificial Intelligence
Design an Analysis of Algorithms II-SECS-1021-03
VVF-Customer-Presentation2025-Ver1.9.pptx
ManageIQ - Sprint 268 Review - Slide Deck
L1 - Introduction to python Backend.pptx
Essential Infomation Tech presentation.pptx
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
System and Network Administration Chapter 2
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf

Oracle Performance Tools of the Trade