Download - SQL Tuning Tools of the Trade
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