Upload
enkitec
View
214
Download
0
Embed Size (px)
Citation preview
SQL Tuning Tools of the Trade
Carlos Sierra
Carlos Sierra • Enkitec Consultant • Oracle Performance • SQL Tuning • PL/SQL
11/12/13 Enkitec © 2
SQL Tuning Tools of the Trade • SQLTXPLAIN • SQLHC • Stand-‐alone Scripts
11/12/13 Enkitec © 3
CommonaliGes • Input one SQL statement – SQL_ID
• Output a set of diagnosGcs files – Used mainly for SQL Tuning
• Make use of some Oracle licensed features – DiagnosGcs and/or Tuning Packs
11/12/13 Enkitec © 4
CapabiliGes Compare
11/12/13 Enkitec © 5
SQLTXPLAIN SQLHC Stand-‐alone Scripts
Footprint Compare
11/12/13 Enkitec © 6
SQLTXPLAIN SQLHC Stand-‐alone Scripts
SQLTXPLAIN • Provides about everything that is ever need for SQL Tuning – Robust set of diagnosGcs reports – AutomaGc extracGon of Test Case
• Installs two self-‐contained schemas
11/12/13 Enkitec © 7
SQLHC • Provides most common diagnosGcs needed for SQL Tuning
• Installs nothing on the database
11/12/13 Enkitec © 8
Stand-‐alone Scripts • Specialized diagnosGcs for SQL Tuning – planx.sql: ExecuGon Plans from Memory and RAC – sqlmon.sql: SQL Monitor Report – sqlash.sql: AcGve Session History (ASH) – mystat.sql: Performance StaGsGcs (counters)
• Install nothing on the database 11/12/13 Enkitec © 9
11/12/13 Enkitec © 10
References • SQLTXPLAIN – MOS 215187.1
• SQLHC – MOS 1366133.1
• Stand-‐alone Scripts – carlos-‐sierra.net
11/12/13 Enkitec © 11