Professional tools for Firebird optimization and maintenance from IBSurgeon

1,194 views

Published on

How to create better environment for big Firebird databases? How DBA can recognize and solve problems with Firebird performance, backups or corruptions (and better prevent corruptions)? This session was devoted to professional Firebird tools from IBSurgeon which help to solve all these problems.

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

No Downloads
Views
Total views
1,194
On SlideShare
0
From Embeds
0
Number of Embeds
26
Actions
Shares
0
Downloads
18
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Professional tools for Firebird optimization and maintenance from IBSurgeon

  1. 1. Professional tools for Firebird optimization and maintenance from IBSurgeon Alexey Kovyazin www.IBSurgeon.com
  2. 2. 2 • Tools and consulting • Platinum Sponsor of Firebird Project • Founded in 2002: 12 years of Firebird and InterBase recoveries and consulting • Based in Moscow, Russia • Firebase is our Brazil partner (since 2006)
  3. 3. 3 Backups Health monitoring Typical tasks Indices maintenance Transactions dynamics SQL Queries & plans Database structure analysys Database
  4. 4. 4 FBDataGuard IBTM FBScanner & FBPerfMon IBAnalyst
  5. 5. 5 Backups ● GBAK or NBACKUP? ● NBACKUP problems ● GBAK problems ● How to combine advantages and avoid problems
  6. 6. 6 Big databases backup schema FBDataGuard 1: -delta monitoring -health monitoring FBDataGuard 2 - gbak backup & test restore Production server Backup server Nbackup gbak
  7. 7. 7 Health monitoring • Critical metadata check and backup – Needed for recovery with FirstAID • Database limitations checks – Transactions limits, format limits, space limits • Errors – Firebird.log
  8. 8. 8 Indices maintenance • Indices health – Idea of statistics – Recalculation of indices statistics • Manual • Automatic
  9. 9. 9 Transactions monitoring 2 • Transaction markers (NEXT, OIT, OST, OAT) dynamics is good indicator of problems – Long running active transactions (stuck OAT) – Forced Rollback (stuck OIT) – Sweep and autosweep success
  10. 10. 10
  11. 11. 11 SQL Queries and Plans • For all Firebird versions — FBScanner – Works as a proxy – Connection string changes required – Can be installed on remote server • For Firebird 2.5 — FBPerfMon – Mon$ support – TraceAPI support
  12. 12. Recommended setup for logging 12 Firebird Production server Users FBScanner remote server Administrator has: 1) FBScanner Analyzer 2) MON$Logger 3) TraceAPI 4) IBTM 5) IBAnalyst MON$ TraceAPI FBDataGuard & Trace API
  13. 13. MON$ 13
  14. 14. Trace 14
  15. 15. 15 FBScanner Log
  16. 16. Database structure 16
  17. 17. Examples of problem resolution 17 1.Long running active transaction — prevent performance problem 1.Administrator got email from FBDataGuard about transaction gap 2.IBTM shows long running active transaction 3.MON$ logger identified source of transaction, and admin disconnected client
  18. 18. Examples of problem resolution 18 1.Bad performance — fix performance problem – User reported problem with performance in application A – Quick check with MON$logger does not show the problem – Admin analysed logs from FBScanner (permanent monitoring) and found bad query, reported to developer, with SQL plan and fresh gstat statistics from FBDataGuard – Developer checked gstat and plan, found that new index is needed – After testing index on test machine developer passed new index to admin – Admin applied index, performance is good again
  19. 19. 19 Conclusion • To sleep well and live long you need: – Relialble backups – Continious monitoring and alerts – Quick identification of problem – Full details how to fix it
  20. 20. 20 Only at FDD 2014 IBSurgeon Optimization Pack 5-in-1 (FBDataGuard+FBScanner+FBPerfMon +IBTM +IBAnalyst) • EUR 299 R$400 per server • EUR 1290 R$850 Unlimited Subscription 1 year
  21. 21. 21 • Thank you! • Questions? Web: www.ib-aid.com www.ibsurgeon.com Email: support@ib-aid.com

×