Welcome to MSDN Blogs Sign in | Join | Help

SCOM 2007 - operational and datawarehouse grooming

The mechanism for grooming the operational database in SCOM has changed compared to MOM 2005.  In MOM 2005 we had a SQL job to handle the grooming – in SCOM 2007 we have a SCOM rule.  The rule has a set schedule to run daily at midnight – and there is no built in override to allow this schedule to be changed.   In some situations, it's helpful to manually force grooming.  This can be done by manually executing the p_partitioningandgrooming stored procedure.  This will call a series of other procedures which will grab your groom settings (retention threshold values) from the database and proceed with the groom. 

The mechanism for grooming the datawarehouse is a bit more involved.  First, there is no way to set the data retention period for the warehouse in the UI.  These retention periods are stored in the MaxDataAgeDays column in the StandardDatasetAggregation table of the warehouse.  You can set these however you like.  From there, grooming (and aggregation actually) happens every time data is inserted into the warehouse.  To be sure though, you can also trigger it to happen manually by running the following stored procedure from the data warehouse. 

Exec standarddatasetgroom <datasetid> 

The dataset ID’s represent the type of data to be acted on.  You can grab the datasetid from the dataset table which is also in the datawarehouse.  If you open this table you will note there are 5 dataset types – event, client monitoring, performance, alert and state. 

When SCOM actually does the aggregation and groom job it calls the standarddatasetmaintenance stored proc which will result in the standarddatasetgroom procedure getting called.  For grooming, we don’t care about aggregation so we can just call the groom job directly.

Published Thursday, December 13, 2007 11:24 PM by steverac
Filed under:

Comments

# MSDN Blog Postings &raquo; SCOM 2007 - operational and datawarehouse grooming

Friday, January 11, 2008 10:37 AM by Steve Rachui's Manageability blog - SMS/MOM

# A few opsmgr questions of interest - Question 7

1. How does reindexing work in opsmgr? Is it a SQL job? Which one? Is it a rule in the SQL management

Sunday, May 31, 2009 2:50 AM by steverac

# re: SCOM 2007 - operational and datawarehouse grooming

This was a while back but just noticed it.  Reindexing is handled by an internal OpsMgr job that runs on the RMS at 2:30 AM daily.  This is not configuraable.  Unlike MOM 2005, there s no sql job listed in the SQL console - just an Opsmgr rule that fires the appropriate stored procedure.  The reindex job doesn't reindex everything but it cleans up most data.

# OpsMgr DB Grooming – How it works

A while back I wrote up a blog post on how grooming works for the OpsMgr DB and the warehouse http://blogs.msdn.com/steverac/archive/2007/12/13/scom-2007-operational-and-datawarehouse-grooming.aspx

Wednesday, June 03, 2009 10:45 AM by Cliff Hobbs - FAQShop.com and Microsoft MVP ConfigMgr/ SMS

# [OpsMgr] DB Grooming – How it works

I came across this post on Steve Rachui&#39;s Manageability blog - ConfigMgr/OpsMgr : “ A while back

Wednesday, June 03, 2009 11:43 AM by Cliff Hobbs at myITforum.com

# [OpsMgr] DB Grooming – How it works

I came across this post on Steve Rachui&#39;s Manageability blog - ConfigMgr/OpsMgr : “ A while back

Anonymous comments are disabled
 
Page view tracker