SlideShare a Scribd company logo
SQL	
  Tuning	
  Tools	
  of	
  the	
  Trade	
  
Carlos	
  Sierra	
  
Carlos	
  Sierra	
  
•  SQLTXPLAIN	
  +	
  SQL	
  Health-­‐Check	
  SQLHC	
  +	
  
•  Consultant/Developer/DBA/Design/+	
  
•  Oracle	
  Performance	
  +	
  SQL	
  Tuning	
  
•  Oracle	
  Database	
  Health-­‐Check	
  
•  Tools	
  +	
  Scripts	
  
•  Speaker	
  
Enkitec	
  (c)	
  2014	
   2	
  
SQL	
  Tuning	
  Tools	
  of	
  the	
  Trade	
  
•  Stand-­‐alone	
  Scripts	
  
•  SQLHC	
  
•  SQLTXPLAIN	
  
6/21/14	
   Enkitec	
  ©	
   3	
  
CommonaliQes	
  
•  Input	
  one	
  SQL	
  statement	
  
– SQL_ID	
  
•  Output	
  one	
  or	
  more	
  diagnosQcs	
  files	
  
– Used	
  mainly	
  for	
  SQL	
  Tuning	
  
•  Make	
  use	
  of	
  some	
  Oracle	
  licensed	
  features	
  
– DiagnosQcs	
  and/or	
  Tuning	
  Packs	
  	
  
6/21/14	
   Enkitec	
  ©	
   4	
  
CapabiliQes	
  Compare	
  
6/21/14	
   Enkitec	
  ©	
   5	
  
Stand-­‐alone	
  Scripts	
   	
  SQLHC 	
  SQLTXPLAIN	
  
Footprint	
  Compare	
  
6/21/14	
   Enkitec	
  ©	
   6	
  
Stand-­‐alone	
  Scripts	
   	
  SQLHC
	
  SQLTXPLAIN	
  
Stand-­‐alone	
  Scripts	
  
•  Specialized	
  diagnosQcs	
  for	
  SQL	
  Tuning	
  
– planx.sql:	
  ExecuQon	
  Plans	
  from	
  Memory	
  and	
  RAC	
  
– sqlmon.sql:	
  SQL	
  Monitor	
  Report	
  
– sqlash.sql:	
  AcQve	
  Session	
  History	
  (ASH)	
  
– mystat.sql:	
  Performance	
  StaQsQcs	
  (counters)	
  
•  Install	
  nothing	
  on	
  the	
  database	
  
6/21/14	
   Enkitec	
  ©	
   7	
  
SQLHC	
  
•  Provides	
  most	
  common	
  diagnosQcs	
  needed	
  
for	
  SQL	
  Tuning	
  
•  Installs	
  nothing	
  on	
  the	
  database	
  
6/21/14	
   Enkitec	
  ©	
   8	
  
SQLTXPLAIN	
  
•  Provides	
  about	
  everything	
  that	
  is	
  ever	
  need	
  
for	
  SQL	
  Tuning	
  
– Robust	
  set	
  of	
  diagnosQcs	
  reports	
  
– AutomaQc	
  extracQon	
  of	
  Test	
  Case	
  
•  Installs	
  two	
  self-­‐contained	
  schemas	
  
6/21/14	
   Enkitec	
  ©	
   9	
  
6/21/14	
   Enkitec	
  ©	
   10	
  
References	
  
•  Stand-­‐alone	
  Scripts	
  
– carlos-­‐sierra.net	
  
•  SQLHC	
  
– MOS	
  1366133.1	
  
•  SQLTXPLAIN	
  
– MOS	
  215187.1	
  
6/21/14	
   Enkitec	
  ©	
   11	
  
Contact	
  InformaQon	
  
•  carlos.sierra@enkitec.com	
  
•  carlos-­‐sierra.net	
  
•  @csierra_usa	
  
Enkitec	
  (c)	
  2014	
   12	
  

More Related Content

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

What's hot (20)

PPTX
SQL Tuning 101
PDF
SQLT XPLORE - The SQLT XPLAIN Hidden Child
PPSX
Introducing the eDB360 Tool
PPTX
Adapting and adopting spm v04
PPSX
Oracle Performance Tuning Fundamentals
PPTX
Hitchhiker's Guide to free Oracle tuning tools
PDF
Sql tuning made easier with sqltxplain (sqlt)
PPTX
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
PPTX
Understanding my database through SQL*Plus using the free tool eDB360
PDF
Sql tuning tools of the trade
PPTX
Understanding SQL Trace, TKPROF and Execution Plan for beginners
PDF
Oracle SQL tuning with SQL Plan Management
PPTX
Online index rebuild automation
PPTX
Oem12c patching -OOW13
PDF
How to find what is making your Oracle database slow
PPT
OOUG - Oracle Performance Tuning with AAS
PPTX
SQLServerDays2012_SSIS_CDC
PDF
Combining ACS Flexibility with SPM Stability
PPTX
Stop the Chaos! Get Real Oracle Performance by Query Tuning Part 2
PDF
Exachk and oem12c
SQL Tuning 101
SQLT XPLORE - The SQLT XPLAIN Hidden Child
Introducing the eDB360 Tool
Adapting and adopting spm v04
Oracle Performance Tuning Fundamentals
Hitchhiker's Guide to free Oracle tuning tools
Sql tuning made easier with sqltxplain (sqlt)
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
Understanding my database through SQL*Plus using the free tool eDB360
Sql tuning tools of the trade
Understanding SQL Trace, TKPROF and Execution Plan for beginners
Oracle SQL tuning with SQL Plan Management
Online index rebuild automation
Oem12c patching -OOW13
How to find what is making your Oracle database slow
OOUG - Oracle Performance Tuning with AAS
SQLServerDays2012_SSIS_CDC
Combining ACS Flexibility with SPM Stability
Stop the Chaos! Get Real Oracle Performance by Query Tuning Part 2
Exachk and oem12c
Ad

Viewers also liked (19)

PPTX
Modernize, Enhance, and Gain Flexibility in E-Procurement with Ariba Procure-...
PDF
OG_Task_Force_Report(1)
PDF
Resume karbohidrat dan glikosida
PDF
OneStream - What's Possible?
PPTX
Beyond Scanning: Enabling Straight-Through Invoice Processing across All Spen...
DOCX
Laporan hasil praktikum kedelai
DOCX
Configuring FDMEE 11.1.2.4 & File Load (HFM)
PDF
Business Advantages of Hyperion Planning
PDF
Mini Session - Using GDB for Profiling
PPTX
Finit solutions hfm managing metadata epma versus classic_march 2014
DOCX
ALEL GANDA DAN GEN GANDA
PDF
A082 the importance of sport in rehabilitation after traumatic injuries th...
PDF
#OOW16 - Introducing Oracle Financial Reporting Compliance Cloud Service
PDF
In Search of Plan Stability - Part 1
PPT
Ppt luas permukaan dan volume balok
PPT
9. pengujian-benih
PPTX
SAP Ariba Procurement and SAP Fieldglass Solution Integration
PPTX
attune SAP Fashion Management (SAP FMS) webinar slides
PPTX
Oracle's BigData solutions
Modernize, Enhance, and Gain Flexibility in E-Procurement with Ariba Procure-...
OG_Task_Force_Report(1)
Resume karbohidrat dan glikosida
OneStream - What's Possible?
Beyond Scanning: Enabling Straight-Through Invoice Processing across All Spen...
Laporan hasil praktikum kedelai
Configuring FDMEE 11.1.2.4 & File Load (HFM)
Business Advantages of Hyperion Planning
Mini Session - Using GDB for Profiling
Finit solutions hfm managing metadata epma versus classic_march 2014
ALEL GANDA DAN GEN GANDA
A082 the importance of sport in rehabilitation after traumatic injuries th...
#OOW16 - Introducing Oracle Financial Reporting Compliance Cloud Service
In Search of Plan Stability - Part 1
Ppt luas permukaan dan volume balok
9. pengujian-benih
SAP Ariba Procurement and SAP Fieldglass Solution Integration
attune SAP Fashion Management (SAP FMS) webinar slides
Oracle's BigData solutions
Ad

More from Enkitec (20)

PDF
Using Angular JS in APEX
PDF
Controlling execution plans 2014
PDF
Engineered Systems: Environment-as-a-Service Demonstration
PDF
Think Exa!
PDF
In Memory Database In Action by Tanel Poder and Kerry Osborne
PDF
Profiling Oracle with GDB
PDF
Oracle Performance Tools of the Trade
PDF
Oracle Performance Tuning Fundamentals
PDF
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
PDF
Oracle GoldenGate Architecture Performance
PDF
OGG Architecture Performance
PDF
APEX Security Primer
PDF
How Many Ways Can I Manage Oracle GoldenGate?
PDF
Profiling the logwriter and database writer
PDF
Fatkulin hotsos 2014
PDF
Why You May Not Need Offloading
PDF
LOBS, BLOBS, CLOBS: Dealing with Attachments in APEX
PDF
Creating a Business Oriented UI in APEX
PDF
Colvin RMAN New Features
PDF
Enkitec Exadata Human Factor
Using Angular JS in APEX
Controlling execution plans 2014
Engineered Systems: Environment-as-a-Service Demonstration
Think Exa!
In Memory Database In Action by Tanel Poder and Kerry Osborne
Profiling Oracle with GDB
Oracle Performance Tools of the Trade
Oracle Performance Tuning Fundamentals
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
Oracle GoldenGate Architecture Performance
OGG Architecture Performance
APEX Security Primer
How Many Ways Can I Manage Oracle GoldenGate?
Profiling the logwriter and database writer
Fatkulin hotsos 2014
Why You May Not Need Offloading
LOBS, BLOBS, CLOBS: Dealing with Attachments in APEX
Creating a Business Oriented UI in APEX
Colvin RMAN New Features
Enkitec Exadata Human Factor

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPT
Teaching material agriculture food technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Advanced IT Governance
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
cuic standard and advanced reporting.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Empathic Computing: Creating Shared Understanding
Teaching material agriculture food technology
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
Unlocking AI with Model Context Protocol (MCP)
Advanced IT Governance
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
Advanced methodologies resolving dimensionality complications for autism neur...
Dropbox Q2 2025 Financial Results & Investor Presentation
Network Security Unit 5.pdf for BCA BBA.
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
cuic standard and advanced reporting.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
“AI and Expert System Decision Support & Business Intelligence Systems”

SQL Tuning Tools of the Trade

  • 1. SQL  Tuning  Tools  of  the  Trade   Carlos  Sierra  
  • 2. Carlos  Sierra   •  SQLTXPLAIN  +  SQL  Health-­‐Check  SQLHC  +   •  Consultant/Developer/DBA/Design/+   •  Oracle  Performance  +  SQL  Tuning   •  Oracle  Database  Health-­‐Check   •  Tools  +  Scripts   •  Speaker   Enkitec  (c)  2014   2  
  • 3. SQL  Tuning  Tools  of  the  Trade   •  Stand-­‐alone  Scripts   •  SQLHC   •  SQLTXPLAIN   6/21/14   Enkitec  ©   3  
  • 4. CommonaliQes   •  Input  one  SQL  statement   – SQL_ID   •  Output  one  or  more  diagnosQcs  files   – Used  mainly  for  SQL  Tuning   •  Make  use  of  some  Oracle  licensed  features   – DiagnosQcs  and/or  Tuning  Packs     6/21/14   Enkitec  ©   4  
  • 5. CapabiliQes  Compare   6/21/14   Enkitec  ©   5   Stand-­‐alone  Scripts    SQLHC  SQLTXPLAIN  
  • 6. Footprint  Compare   6/21/14   Enkitec  ©   6   Stand-­‐alone  Scripts    SQLHC  SQLTXPLAIN  
  • 7. Stand-­‐alone  Scripts   •  Specialized  diagnosQcs  for  SQL  Tuning   – planx.sql:  ExecuQon  Plans  from  Memory  and  RAC   – sqlmon.sql:  SQL  Monitor  Report   – sqlash.sql:  AcQve  Session  History  (ASH)   – mystat.sql:  Performance  StaQsQcs  (counters)   •  Install  nothing  on  the  database   6/21/14   Enkitec  ©   7  
  • 8. SQLHC   •  Provides  most  common  diagnosQcs  needed   for  SQL  Tuning   •  Installs  nothing  on  the  database   6/21/14   Enkitec  ©   8  
  • 9. SQLTXPLAIN   •  Provides  about  everything  that  is  ever  need   for  SQL  Tuning   – Robust  set  of  diagnosQcs  reports   – AutomaQc  extracQon  of  Test  Case   •  Installs  two  self-­‐contained  schemas   6/21/14   Enkitec  ©   9  
  • 10. 6/21/14   Enkitec  ©   10  
  • 11. References   •  Stand-­‐alone  Scripts   – carlos-­‐sierra.net   •  SQLHC   – MOS  1366133.1   •  SQLTXPLAIN   – MOS  215187.1   6/21/14   Enkitec  ©   11  
  • 12. Contact  InformaQon   •  carlos.sierra@enkitec.com   •  carlos-­‐sierra.net   •  @csierra_usa   Enkitec  (c)  2014   12