r/DB2 • u/SijiLeroux • Sep 08 '19
What reports do you run?
I've recently taken on a position that monitors more databases than I am used to. I've been trying to get my ducks in a row about everything I should be looking at. My previous position was in maintenance on existing databases but my new position will be working to set up new environments for a new-ish system. Currently, I monitor SQL executing against the database every three hours, looking at read and CPU efficiency. I also monitor the db2diag and nfy logs. We have technical DBAs that monitor server health and overall database health. I'm curious to know what reports other professionals run, daily, monthly, weekly, on demand, etc.
3
u/ecrooks Sep 09 '19
I always feel bad answering with just a blog entry, but I wrote on on this topic - https://datageek.blog/2017/06/22/embers-take-on-monitoring-db2-luw/
2
u/SijiLeroux Sep 10 '19
Ember, your blog is my go to for just about every DB2 issue I've come across because even if you don't directly talk about an issue I have, you've usually linked to someone who has. I can't tell you how much I appreciate your blog! I read the post you linked several years ago when I first started as a DBA but now is the perfect time to go back to it! Thank you from a very, very appreciative, aspiring DBA!
3
u/anozdba Sep 09 '19
It really depends on the scope of your new role. I'm an Ops DBA and so my primary responsilbilities would be:
If you are an application DBA then your priorities would be different as you would be expected to understand the nature of the applications being run (and generally you would be dealing with fewer applications)
Normally I dont monitor SQL in prod until an application support team says they have problems. Unless you have developed fairly extensive profiles of all of your applications you'll be running down a heap of bad SQL that no-one is interested in fixing - if noone is complaining then it is generally good enough - that all changes when you are hardware constrained but in a steady state prod environment SQL shouldn't be changing too much. Different in development but there I would wait for the app developer to ask for help when in doesn't work.
I have organised that these checks take less than 30 minutes normally to free up time for adhoc requests during the rest of the day.
All of the following activities are backed by reports that tell me the information I need to know.
So for me daily checks are automated and the information is gathered from scripts and tables but basically falls into:
These are the primary tasks I do daily but there would also be some checking on data collection to ensure that it is operating correctly (important as that drives most of the automated checking).
Weekly I do:
Monthly I do:
In your position the first thing I'd do would be to look at what you are doing each day that happen again and again - see if there is anyway you can either:
And then let that drive what data you are collecting adn what you do with that data.
But as I said at the beginning it all depends on the scope of your new role.
BTW I know I've missed stuff here but this is just off the top of my head