Contenu connexe
Similaire à Sql tuning tools of the trade (20)
Sql tuning tools of the trade
- 3. SQL
Tuning
Tools
of
the
Trade
• SQLTXPLAIN
• SQLHC
• Stand-‐alone
Scripts
11/12/13
Enkitec
©
3
- 4. 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
- 7. 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
- 8. SQLHC
• Provides
most
common
diagnosGcs
needed
for
SQL
Tuning
• Installs
nothing
on
the
database
11/12/13
Enkitec
©
8
- 9. 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. References
• SQLTXPLAIN
– MOS
215187.1
• SQLHC
– MOS
1366133.1
• Stand-‐alone
Scripts
– carlos-‐sierra.net
11/12/13
Enkitec
©
11