mom: some details about mom 2005 summary reporting
- exec p_setweekstartday [value]
- [value] is 1-7 (sunday through saturday, respectively)
- exec p_setcutoffdate [yyyy-mm-dd]
- exec p_setsamplegroomdays [value]
- [value] must be greater than 7
- exec p_setalertgroomdays [value]
- [value] must be greater than 7
- exec p_setlowpercentilevalue [value]
- [value] 1 through 49
- exec p_sethighpercentilevalue [value]
- [value] 51 through 99
- exec p_setgroombatchsize [value]
- [value] must be greater than 10.
- daily samples
dtsrun.exe /F "[MOM 2005 Reporting installation directory]\Reporting\BuildDailySampleAggregations_AnyDays.dts" /W True /A "ServerName":"8"="YourServer" /A "DatabaseName":"8"="SystemCenterReporting" /A "StartDate":"8"="YYYY-MM-DD" /A "EndDate":"8"="YYYY-MM-DD" - weekly samples
dtsrun.exe /F "[MOM 2005 Reporting installation directory]\Reporting\BuildWeeklySampleAggregations_AnyDays.dts" /W True /A "ServerName":"8"="YourServer" /A "DatabaseName":"8"="SystemCenterReporting" /A "StartDate":"8"="YYYY-MM-DD" /A "EndDate":"8"="YYYY-MM-DD" - alerts
dtsrun.exe /F "[MOM 2005 Reporting installation directory]\Reporting\BuildAlertAggregations_AnyDays.dts" /W True /A "ServerName":"8"="YourServer" /A "DatabaseName":"8"="SystemCenterReporting" /A "StartDate":"8"="YYYY-MM-DD" /A "EndDate":"8"="YYYY-MM-DD"
- dts job is extremely cpu intensive and space intensive (tempdb).
- uploadaggregations table may not have a recent timestamp.
if you look in the dts job itself, the instructions are executed in parallel, instead of serial. this may not be a big deal since ordinarily, summary reporting shouldn’t take very long to run. so a small spike in cpu, in the dead of night… who cares? now if you factor this with tons of data to have to look through, then you’ve got some issues. we modified the dts job to execute in serial initially, thinking this was what was causing all the problems. not quite… refer back to #2.
this uploadaggregations table. hmmm. it’s not in accompanying guide. odd... turns out this table holds the timestamps to indicate from which date forward summary reporting pack should look at data points. remember, the p_setcutoffdate parameter only tells the dts job from which date to start. this only matters for the maiden voyage. to see what i’m talking about, issue this command in query analyzer. it won’t break anything… no, really… it won’t.
select LastDate, LastWeek, AlertLastDate, AlertLastWeek from dbo.uploadaggregations select top 1 dategenerated_pk as LastDate from sc_daily_counterdatafact_table order by LastDate desc select top 1 weekgenerated_pk as LastWeek from sc_weekly_counterdatafact_table order by LastWeek desc select top 1 dategenerated_pk as AlertLastDate from sc_daily_alertfact_table order by AlertLastDate desc select top 1 weekgenerated_pk as AlertLastWeek from sc_weekly_alertfact_table order by AlertLastWeek desc
the query will list the values in the table that need your focus. the fields listed in the first table is a marker to indicate where to begin looking at data points for the dts job’s current run. if you have a value way back in the past, it’s going to go back and look.
nice post....very good info.
ReplyDeleteGreat info! I have future dates in the UploadAggregations table! Nice.. wonder how that happened?
ReplyDeletea reader sent this in today:
ReplyDeleteMarcus,
Not sure if you'll even remember writing it over 2 years ago, but wanted to thank you for your blog posting on MOM Summary Reporting. We had an issue where a server inadvertently had a date set in the year 2038, and the data then ended up in our MOM Reporting DB wreaking havoc. Using your queries as a starting spot, I was able to track down the data.
Really appreciate it!