SQL	
  Tuning	
  Tools	
  of	
  the	
  Trade	
  
Carlos	
  Sierra	
  
Carlos	
  Sierra	
  
• 
• 
• 
• 

Enkitec	
  Consultant	
  
Oracle	
  Performance	
  
SQL	
  Tuning	
  
PL/SQL	
  

11/12/...
SQL	
  Tuning	
  Tools	
  of	
  the	
  Trade	
  
•  SQLTXPLAIN	
  
•  SQLHC	
  
•  Stand-­‐alone	
  Scripts	
  

11/12/13	...
CommonaliGes	
  
•  Input	
  one	
  SQL	
  statement	
  
–  SQL_ID	
  

•  Output	
  a	
  set	
  of	
  diagnosGcs	
  files	...
CapabiliGes	
  Compare	
  

SQLTXPLAIN

11/12/13	
  

	
  SQLHC

Enkitec	
  ©	
  

	
  Stand-­‐alone	
  Scripts	
  

5	
  
Footprint	
  Compare	
  

SQLTXPLAIN

11/12/13	
  

	
  SQLHC

Enkitec	
  ©	
  

	
  Stand-­‐alone	
  Scripts	
  

6	
  
SQLTXPLAIN	
  
•  Provides	
  about	
  everything	
  that	
  is	
  ever	
  need	
  
for	
  SQL	
  Tuning	
  
–  Robust	
  ...
SQLHC	
  
•  Provides	
  most	
  common	
  diagnosGcs	
  needed	
  
for	
  SQL	
  Tuning	
  
•  Installs	
  nothing	
  on	...
Stand-­‐alone	
  Scripts	
  
•  Specialized	
  diagnosGcs	
  for	
  SQL	
  Tuning	
  
–  planx.sql:	
  ExecuGon	
  Plans	
...
11/12/13	
  

Enkitec	
  ©	
  

10	
  
References	
  
•  SQLTXPLAIN	
  
–  MOS	
  215187.1	
  

•  SQLHC	
  
–  MOS	
  1366133.1	
  

•  Stand-­‐alone	
  Scripts...
Contact	
  
•  carlos.sierra@enkitec.com	
  
•  csierra_usa	
  
•  carlos-­‐sierra.net	
  
11/12/13	
  

Enkitec	
  ©	
  
...
Upcoming SlideShare
Loading in …5
×

Sql tuning tools of the trade

410 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
410
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sql tuning tools of the trade

  1. 1. SQL  Tuning  Tools  of  the  Trade   Carlos  Sierra  
  2. 2. Carlos  Sierra   •  •  •  •  Enkitec  Consultant   Oracle  Performance   SQL  Tuning   PL/SQL   11/12/13   Enkitec  ©   2  
  3. 3. SQL  Tuning  Tools  of  the  Trade   •  SQLTXPLAIN   •  SQLHC   •  Stand-­‐alone  Scripts   11/12/13   Enkitec  ©   3  
  4. 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  
  5. 5. CapabiliGes  Compare   SQLTXPLAIN 11/12/13    SQLHC Enkitec  ©    Stand-­‐alone  Scripts   5  
  6. 6. Footprint  Compare   SQLTXPLAIN 11/12/13    SQLHC Enkitec  ©    Stand-­‐alone  Scripts   6  
  7. 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. 8. SQLHC   •  Provides  most  common  diagnosGcs  needed   for  SQL  Tuning   •  Installs  nothing  on  the  database   11/12/13   Enkitec  ©   8  
  9. 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  
  10. 10. 11/12/13   Enkitec  ©   10  
  11. 11. References   •  SQLTXPLAIN   –  MOS  215187.1   •  SQLHC   –  MOS  1366133.1   •  Stand-­‐alone  Scripts   –  carlos-­‐sierra.net   11/12/13   Enkitec  ©   11  
  12. 12. Contact   •  carlos.sierra@enkitec.com   •  csierra_usa   •  carlos-­‐sierra.net   11/12/13   Enkitec  ©   12  

×