sql tuning tools of the trade
DESCRIPTION
There are several awesome tools to help you tune your SQL, and if you have a license for them you may be already using them left and right. Can you expand your SQL Tuning Toolset with some that are free and which are actually used daily by SQL Tuners on the field? This session is about some free SQL Tuning Tools that are proven to be useful, and are actually used daily by professionals doing SQL Tuning as a living. What are these tools? the list includes SQLXPLAIN (SQLT), SQL Health-Check (SQLHC) and some smaller ones like planx.sql, sqlmon.sql and sqlash.sql. When to use one or the other? At the end it becomes a matter of trade-off between amount of diagnostics they collect versus how fast you collect the bare minimum. Sometimes a small hammer does the job, and sometimes you need the big, pneumatic one. This session shows several free tools, so you can enrich your Toolset and learn when and how to use them all. If you are a Developer or a DBA in charge of SQL Tuning, then you may want to sit on this Session and learn about these free SQL Tuning tools by watching some sample outputs and live demos.TRANSCRIPT
SQL Tuning Tools of the Trade
Carlos Sierra
Enkitec (c) 2014 2
Carlos Sierra• SQLTXPLAIN + SQL Health-Check SQLHC +• Consultant/Developer/DBA/Design/+• Oracle Performance + SQL Tuning• Oracle Database Health-Check• Tools + Scripts• Speaker Question
Everything
04/13/2023 Enkitec © 3
SQL Tuning Tools of the Trade• Stand-alone Scripts• SQLHC• SQLTXPLAIN
04/13/2023 Enkitec © 4
Commonalities• Input one SQL statement– SQL_ID
• Output one or more diagnostics files– Used mainly for SQL Tuning
• Make use of some Oracle licensed features– Diagnostics and/or Tuning Packs
04/13/2023 Enkitec © 5
Capabilities Compare
Stand-alone Scripts SQLHC SQLTXPLAIN
04/13/2023 Enkitec © 6
Footprint Compare
Stand-alone Scripts SQLHCSQLTXPLAIN
04/13/2023 Enkitec © 7
Stand-alone Scripts• Specialized diagnostics for SQL Tuning– planx.sql: Execution Plans from Memory and RAC– sqlmon.sql: SQL Monitor Report– sqlash.sql: Active Session History (ASH)– mystat.sql: Performance Statistics (counters)
• Install nothing on the database
04/13/2023 Enkitec © 8
SQLHC• Provides most common diagnostics needed
for SQL Tuning• Installs nothing on the database
04/13/2023 Enkitec © 9
SQLTXPLAIN• Provides about everything that is ever need
for SQL Tuning– Robust set of diagnostics reports– Automatic extraction of Test Case
• Installs two self-contained schemas
04/13/2023 Enkitec © 10
04/13/2023 Enkitec © 11
References• Stand-alone Scripts– carlos-sierra.net
• SQLHC– MOS 1366133.1
• SQLTXPLAIN– MOS 215187.1
Enkitec (c) 2014 12
Contact Information• [email protected]• carlos-sierra.net• @csierra_usa