SQLTXPLAIN (SQLT) is a free tool that provides comprehensive diagnostics for SQL tuning. It takes a single SQL statement as input and outputs a compressed file containing a main HTML report and other files. The document discusses installing and using SQLT to extract diagnostic information for a SQL statement using its SQL_ID or by executing the SQL text. It also recommends practicing with SQLT and reading a book on mastering SQLTXPLAIN.
4. SQLTXPLAIN
(SQLT)
• Tool
for
SQL
Tuning
– DiagnosLcs
• Inputs
one
SQL
• Outputs
one
compressed
file
– Main
HTML
Report
+
many
other
files
• MOS
215187.1
– Free
download
and
use
Enkitec
(c)
2014
4
5. Some
Tools
• One
Database
– ORAchk,
OEM,
AWR,
OS
Stats,
etc
• One
Process
– SQL
Trace,
TKPROF,
Method
R,
ASH,
etc
• One
SQL
– SQLT,
SQLHC,
planx,
sqlmon,
sqlash,
etc
Enkitec
(c)
2014
5
10. Using
SQLT
• Read
sqlt/sqlt_instrucLons.html
• Navigate
to
sqlt/run
• Connect
as
applicaLon
user
– Or
user
granted
sqlt_user_role
or
dba
• Execute
one
of
these
two
– sqltxtract.sql
– sqltxecute.sql
Enkitec
(c)
2014
10
11. SQLT
XTRACT
• Inputs
– SQL_ID
– SQLTXPLAIN
Password
• Outputs
– ZIP
File
• Main
HTML
Report
• Other
Files
Enkitec
(c)
2014
11
12. SQLT
XECUTE
• Inputs
– File
Name
with
SQL
• Binds
declaraLon
and
assignment
• SQL
Text
– SQLTXPLAIN
Password
• Outputs
– ZIP
File
Enkitec
(c)
2014
12
14. Conclusion
• SQLT
is
a
comprehensive
tool
for
SQL
Tuning
• SQLT
is
free
to
download
and
use
• SQLT
is
easy
to
use
• SQLT
makes
SQL
Tuning
easier
Enkitec
(c)
2014
14
15. Mastering
SQLTXPLAIN
• PracLce
using
SQLT
• Read
Stelios
Charalambides
book
Enkitec
(c)
2014
15
16. Some
SQL
Tuning
Masters
• Jonathan
Lewis
• Maria
Colgan
• Tom
Kyte
• Kerry
Osborne
• Guy
Harrison
• Karen
Morton
Enkitec
(c)
2014
16