Several free tools are available to help with SQL tuning and performance diagnostics, including SQLd360, SQLT, and eDB360. SQLd360 and SQLT are good for diagnosing a single SQL statement, while eDB360 provides a 360-degree view of an entire Oracle database. Snapper and TUNAs360 can diagnose sessions and database activity. Standalone scripts like planx and sqlmon provide specialized diagnostics for individual cases. These free tools vary in size and capabilities, but all aim to help tune and diagnose SQL and database performance issues.
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!
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. 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
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.
15.
16.
17. 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
18.
19.
20. 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
21.
22.
23.
24.
25.
26.
27. 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
28.
29.
30.
31. eDB360
• Configuration
• Resources
• DBA stuff
• Storage
• ASM
• Backup and Recovery
• Plan Stability
• CBO Stats
• OS Metrics
• Sessions
• ASH
• AWR
34. sqlmon
• Inputs one SQL_ID
• Outputs
– SQL Monitor reports list
– Active SQL Monitor report (one per execution)
– Text SQL Monitor report for all executions
35.
36.
37.
38. sqlpch
• Inputs SQL_ID and list of CBO Hints
– MONITOR, BIND_AWARE, GATHER_PLAN_STATISTICS
• Outputs a SQL Patch
42. 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