professional tools for firebird optimization and maintenance from ibsurgeon
DESCRIPTION
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.TRANSCRIPT
![Page 1: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/1.jpg)
Professional tools for Firebird optimization and maintenance
from IBSurgeon
Alexey Kovyazinwww.IBSurgeon.com
![Page 2: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/2.jpg)
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)
![Page 3: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/3.jpg)
3
Backups
Health monitoring
Indices maintenance
Transactions dynamics
SQL Queries & plans
Database structure analysys
Database
Typical tasks
![Page 4: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/4.jpg)
4
FBDataGuard
IBTM
FBScanner & FBPerfMon
IBAnalyst
![Page 5: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/5.jpg)
5
Backups● GBAK or NBACKUP?
● NBACKUP problems● GBAK problems
● How to combine advantages and avoid problems
Backups
![Page 6: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/6.jpg)
6
Big databases backup schema
Production server Backup server
FBDataGuard 1:-delta monitoring
-health monitoring
FBDataGuard 2- gbak backup & test restore
Nbackup gbak
![Page 7: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/7.jpg)
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
![Page 8: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/8.jpg)
8
Indices maintenance
• Indices health– Idea of statistics – Recalculation of indices statistics
• Manual• Automatic
![Page 9: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/9.jpg)
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
![Page 10: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/10.jpg)
10
![Page 11: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/11.jpg)
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
![Page 12: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/12.jpg)
12Recommended setup for logging
Firebird Production server
Users
FBScanner remote server
Administrator has:1) FBScanner Analyzer2) MON$Logger3) TraceAPI4) IBTM5) IBAnalyst
MON$
TraceAPI
FBDataGuard& Trace API
![Page 13: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/13.jpg)
13MON$
![Page 14: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/14.jpg)
14Trace
![Page 15: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/15.jpg)
15
FBScanner Log
![Page 16: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/16.jpg)
16Database structure
![Page 17: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/17.jpg)
17Examples of problem resolution
1.Long running active transaction — prevent performance problem1.Administrator got email from FBDataGuard about
transaction gap2.IBTM shows long running active transaction3.MON$ logger identified source of transaction, and
admin disconnected client
![Page 18: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/18.jpg)
18Examples of problem resolution
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
![Page 19: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/19.jpg)
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
![Page 20: Professional tools for Firebird optimization and maintenance from IBSurgeon](https://reader033.vdocuments.site/reader033/viewer/2022052820/5495b159ac7959092e8b4f05/html5/thumbnails/20.jpg)
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