Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Survey of some free Tools to enhance your SQL Tuning and Performance Diagnostics skills

1,950 views

Published on

We know there are a few tools that can help you enhance your abilities to do SQL Tuning or diagnose your database performing poorly besides those provided by the product. Some are free and some are not. Some are good and some not quite. Some are easy to use and understand and some are not. Some of them help with the entire database while some focus on a particular SQL statement. Most of these tools fill gaps and enhance the product. Which ones are the ones we recommend and why?

This session is about getting to know some free tools, that can help you improve your diagnostics collections and skills when it comes to both SQL Tuning and overall Oracle database Performance Diagnostics. The survey presented includes for the entire database: snapper, TUNAs360 and eDB360. Then for SQL Tuning: planx, sqlash, sqlmon, SQLTXPLAIN and SQLd360.

Published in: Software
  • Hello! Get Your Professional Job-Winning Resume Here - Check our website! https://vk.cc/818RFv
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Survey of some free Tools to enhance your SQL Tuning and Performance Diagnostics skills

  1. 1. Survey of some free Tools to enhance your SQL Tuning and Performance Diagnostics skills Carlos Sierra
  2. 2. What is Performance Tuning?
  3. 3. Tuning and Performance Diagnostics SQL Tuning Database Performance
  4. 4. Tuning and Performance Diagnostics SQL Tuning Database Performance • One Page • One Report • One Program • One Process • One Query • One DML • Whole Database • Several Users • Multiple Transactions • Certain Times • Everything is slow!
  5. 5. Tools SQL Tuning Database Performance
  6. 6. Tools SQL Tuning Database Performance • SQL Trace • AUTOTRACE • EXPLAIN PLAN FOR • DBMS_XPLAN • SQL Monitor • Snapper • SQLTXPLAIN a.k.a. SQLT • SQLd360 • Enterprise Manager – OEM • AWR • Active Session History – ASH • Statspack • Snapper • TUNAs360 • eDB360
  7. 7. Cool Free Tools • Snapper • TUNAs360 • SQLT • SQLd360 • eDB360
  8. 8. Cool Free Scripts • planx • sqlash • sqlmon • sqlpch
  9. 9. Snapper
  10. 10. Snapper • By Tanel Poder • Installs nothing • 10g to 12c • No dependencies on Diagnostics or Tuning Packs • Mimics ASH by sampling gv$session • Samples also – gv$sesstat, gv$sess_time_model, gv$session_event
  11. 11. Parameters • Seconds between snaps (i.e. 5) • Number of snaps (i.e. 12) • Session IDs to snap • Many other options – @snapper ash 5 1 144 – ASH mode, 5 seconds between snaps, one snap only, on session 144
  12. 12. TUNAs360
  13. 13. TUNAs360 • (TUN)ing with (A)ctive (s)essions • By Mauro Pagano • Installs nothing • 10g to 12c • No dependencies on Diagnostics or Tuning Packs • No execution parameters • Outputs HTML reports and Google Charts
  14. 14. SQLT • By Carlos Sierra, Mauro Pagano and Abel Macias • Oracle Support standard • Installs two schemas and several objects • 10g to 12c • Inputs one SQL_ID • Outputs one large HTML report • Better output having Diagnostics or Tuning Packs
  15. 15. SQLd360 • By Mauro Pagano • Installs nothing • 10g to 12c • Inputs one SQL_ID • Outputs small HTML reports and Google Charts • Better output having Diagnostics or Tuning Pack
  16. 16. eDB360 • By Carlos Sierra • Installs nothing • 10g to 12c • 360-degree view of an entire Oracle Database • Outputs small HTML reports and Google Charts • Better output having Diagnostics or Tuning Packs
  17. 17. eDB360 • Configuration • Resources • DBA stuff • Storage • ASM • Backup and Recovery • Plan Stability • CBO Stats • OS Metrics • Sessions • ASH • AWR
  18. 18. planx • Inputs one SQL_ID • Outputs – SQL Performance – DBMS_XPLAN – ASH aggregates – Indexes – CBO statistics
  19. 19. sqlash • Inputs one SQL_ID • Outputs ASH report
  20. 20. sqlmon • Inputs one SQL_ID • Outputs – SQL Monitor reports list – Active SQL Monitor report (one per execution) – Text SQL Monitor report for all executions
  21. 21. sqlpch • Inputs SQL_ID and list of CBO Hints – MONITOR, BIND_AWARE, GATHER_PLAN_STATISTICS • Outputs a SQL Patch
  22. 22. Size Tool • SQLT 6.8 MB • eDB360 4.4 MB • SQLd360 1.4 MB • TUNAs360 0.6 MB Script • snapper 165 KB • planx 50 KB • sqlpch 7 KB • sqlash 6 KB • sqlmon 5 KB
  23. 23. SQL Tuning Tools - Ranking 1. SQLd360 2. SQLT 3. Snapper 4. planx 5. sqlmon 6. sqlpch 7. sqlash
  24. 24. Performance Diagnostics Tools - Ranking 1. eDB360 2. TUNAs360 3. Snapper
  25. 25. Summary • Diagnose one SQL statement – Use SQLd360, else SQLT • Diagnose an entire Oracle Database – Use eDB360, else TUNAs360 • Diagnose one session or set of sessions (or all) – Use snapper • Use stand-alone scripts for special or small cases
  26. 26. Questions
  27. 27. References • Snapper – http://blog.tanelpoder.com • TUNAs360 and SQLd360 – https://mauro-pagano.com • SQLTXPLAIN a.k.a. SQLT: MOS 215187.1 • eDB360 and stand-alone scripts – https://carlos-sierra.net

×