Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Carlos Sierra
!"#$%&'()*##"'
! ! ! ! +,-).*/'!%,&0$.",.' 1#"/$*'2*#3%#4",/*' (56'70,),8' 269(56'
Agenda
SQL Tuning made easier with SQLTXPLAIN (SQLT)
!! Introduction !! Installation !! Main methods
! XTRACT, XECUTE and XTRXEC ! XTRSBY and XPLAIN ! XPREXT and XPREXC
!! Automatic SQL tuning test case (TC) extraction !! SQLT helps to expedite SQL tuning process
SQLT Installation
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
XTRACT
XECUTE
!!XTRXEC includes XTRACT and XECUTE
Demonstration
Main Report Navigation
!! SQLT XTRACT !! SQLT XECUTE
Summary