Beruflich Dokumente
Kultur Dokumente
Carlos Sierra
Oracle Server Technologies(ST) Center of Expertise(CoE)
SQL Tuner handyman: developer, advisor, trainer, support IT: Oracle(17), UNISYS(12), Ford(3), others(3) Florida(17), Venezuela(3), Puerto Rico(6), Michigan(1), Mexico(X) Tools: SQLTXPLAIN(SQLT), SQLHC, TRCANLZR(TRCA), others Motto: Life is good!
Agenda
SQL Tuning made much easier with SQLTXPLAIN (SQLT)
Introduction Installation Main methods
XTRACT, XECUTE and XTRXEC XTRSBY and XPLAIN XPREXT and XPREXC
SQLT Installation
10
11
12
13
14
15
Script
sqlt/run/sqltxtract.sql
Features
Most common method Inputs SQL_ID SQL statement is not executed Inputs a script name which contains ALTER SESSION commands (if applicable) Binds declaration and assignment (if applicable) SQL statement Executes the SQL statement Combines XTRACT and XECUTE Inputs SQL_ID Inputs a file name which contains a SQL statement What if SQL contains binds? Leave them in place, OR Replace with literals of same data type For read-only databases Executes in Primary and connects into stand-by Works like XTRACT Inputs SQL_ID and DBLINK
SQLT XECUTE
sqlt/run/sqltxecute.sql
sqlt/run/sqltxtrxecsql sqlt/run/sqltxplain.sql
SQLT XTRSBY
sqlt/run/sqltxtrsby.sql
16
XTRACT
XPLAIN Common
XTRSBY
XECUTE
XTRXEC includes XTRACT and XECUTE
17
18
19
20
21
22
Demonstration
Main Report Navigation
SQLT XTRACT SQLT XECUTE
23
Summary
24
26
28
29