Home
%3CLINGO-SUB%20id%3D%22lingo-sub-321765%22%20slang%3D%22en-US%22%3EUnderstanding%20and%20troubleshooting%20the%20MOM%20DTS%20package%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321765%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Jul%2010%2C%202006%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EWe%20see%20a%20fair%20number%20of%20issues%20relating%20to%20failure%20of%20the%20MOM%20DTS%20package%20to%20execute.%26nbsp%3B%20There%20can%20be%20many%20reasons%20for%20this%20but%20when%20the%20DTS%20package%20fails%20the%20whole%20MOM%20system%20may%20have%20problems%20as%20a%20result.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIf%20the%20MOM%20DTS%20package%20is%20not%20running%20correctly%20the%20MOM%20grooming%20jobs%20will%20fail.%26nbsp%3B%20This%20can%20lead%20to%20a%20database%20that%20quickly%20grows%20toward%20the%2030%20GB%20maximum%20supported%20size.%26nbsp%3B%20If%20autogrow%20is%20disabled%20(the%20supported%20setting)%20this%20will%20lead%20to%20the%20MOM%20system%20shutting%20down%20as%20there%20is%20no%20room%20available%20in%20the%20database%20for%20continued%20operations.%26nbsp%3B%20This%20leads%20to%20cascading%20backlogs.%26nbsp%3B%20First%2C%20the%20MOM%20server%20queues%20will%20full%20up%20with%20data%20that%20needs%20to%20go%20to%20the%20database.%26nbsp%3B%20Once%20the%20MOM%20server%20queues%20fill%20we%20will%20signal%20agents%20to%20start%20storing%20data%20locally%20in%20their%20local%20queues.%26nbsp%3B%26nbsp%3B%20If%20the%20database%20is%20set%20to%20autogrow%20(not%20supported%20for%20MOM)%20we%20can%20quickly%20see%20the%20size%20expand.%26nbsp%3B%20The%20server%20will%20remain%20operational%20but%20very%20likely%20will%20suffer%20from%20degraded%20performance.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ETroubleshooting%20DTS%20failures%20is%20often%20easy%20but%20in%20some%20cases%20it%E2%80%99s%20helpful%20to%20understand%20what%20is%20actually%20happening%20behind%20the%20scenes.%26nbsp%3B%20Before%20going%20further%20I%20should%20mention%20that%20the%20information%20provided%20below%20is%20to%20assist%20in%20troubleshooting%20DTS%20issues%20%E2%80%93%20it%20is%20not%20supported%20to%20modify%20the%20DTS%20job%20or%20to%20run%20the%20DTS%20job%20directly%20from%20SQL%20for%20typical%20production%20use.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20MOM%202005%20DTS%20job%20is%20executed%20as%20a%20scheduled%20task.%26nbsp%3B%20Have%20you%20ever%20wondered%20about%20this%3F%26nbsp%3B%20A%20scheduled%20task%20that%20runs%20an%20EXE%20isn%E2%80%99t%20really%20a%20DTS%20job%2C%20right%3F%26nbsp%3B%20So%20what%20really%20happens.%26nbsp%3B%20Essentially%2C%20the%20EXE%20causes%20a%20DTS%20job%20to%20be%20extracted%20and%20that%20extracted%20DTS%20job%20is%20what%20runs%20in%20SQL.%26nbsp%3B%20The%20DTS%20job%20consists%20of%20an%20inner%20job%20and%20an%20outer%20job.%26nbsp%3B%20The%20inner%20job%20calls%20the%20outer%20job.%26nbsp%3B%20The%20basic%20flow%20is%20as%20follows%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMOM.Datawarehousing.DTSPackageGenerator.exe%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EExtracts%20DTS%20package%20for%26nbsp%3Bexecution%20%E2%80%93%20source%20and%20destination%20databases%20are%26nbsp%3Bspecified%26nbsp%3Bon%20the%20command%20line.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESC_Inner_DTS_Package.DTS%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESC_Outer_DTS_Package.DTS%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EExtracted%20when%20scheduled%20task%20runs.%20%26nbsp%3BThese%26nbsp%3Bpackages%20are%20responsible%20for%20executing%20the%20actual%20DTS%20run.%26nbsp%3B%20The%20outer%20package%20is%20started%20first%20which%20makes%20a%20few%20adjustments%20to%20the%20databae%20and%20then%20calls%20the%20inner%20package.%26nbsp%3B%20The%20inner%20package%20does%26nbsp%3Bthe%20actual%20work%20of%20moving%20data.%26nbsp%3B%20When%20the%20inner%26nbsp%3Bpackage%20finishes%20control%20is%20handed%20back%20to%20the%20outer%20package%20which%20readjusts%20the%20database.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAfter%20each%20DTS%20run%20an%20event%20entry%20is%20added%20to%20the%20application%20event%20log%20giving%20status%20of%20the%20last%20run%20and%2C%20if%20a%20failure%20has%20occurred%2C%20the%20step%20at%20which%20the%20failure%20was%20noted.%26nbsp%3B%20The%20individual%20steps%20of%20the%20DTS%20jobs%20can%20be%20reviewed%20if%20the%20respective%20DTS%20job%20is%20loaded%20into%20SQL%20Enterprise%20Manager.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ETypically%20you%20won%E2%80%99t%20see%20the%20individual%20.DTS%20packages%20that%20are%20extracted%20during%20scheduled%20task%20execution.%26nbsp%3B%20If%20you%20want%20to%20obtain%20these%20files%20for%20further%20troubleshooting%20you%20can%20run%20MOM.Datawarehousing.DTSPackageGenerator.exe%20with%20the%20%2Fsavetodisk%20option.%26nbsp%3B%20This%20will%20save%20out%20the%20two%20DTS%20packages%20which%20can%20then%20be%20imported%20into%20SQL.%26nbsp%3B%20From%20here%20it%20is%20possible%20to%20examine%20the%20individual%20steps%20in%20DTS%20design%20view.%26nbsp%3B%20It%20is%20also%20possible%20to%20execute%20these%20jobs%20manually%20from%20SQL%20for%20troubleshooting%20purposes%20%E2%80%93%20if%20this%20manual%20execution%20isn%E2%80%99t%20done%20correctly%2C%20however%2C%20you%20may%20encounter%20failures.%26nbsp%3B%20It%E2%80%99s%20probably%20a%20good%20idea%20to%20let%20us%20help%20you%20if%20you%20need%20to%20get%20this%20detailed.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThere%20is%20much%20more%20detail%20that%20surrounds%20the%20execution%20of%20the%20DTS%20package.%26nbsp%3B%20I%E2%80%99ll%20stop%20here%20for%20now.%26nbsp%3B%20If%20comments%20warrant%20it%20I%20will%20consider%20adding%20more%20detail%20in%20a%20separate%20entry.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-321765%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Jul%2010%2C%202006%20We%20see%20a%20fair%20number%20of%20issues%20relating%20to%20failure%20of%20the%20MOM%20DTS%20package%20to%20execute.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-321765%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Emom%202005%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on MSDN on Jul 10, 2006

We see a fair number of issues relating to failure of the MOM DTS package to execute.  There can be many reasons for this but when the DTS package fails the whole MOM system may have problems as a result.



If the MOM DTS package is not running correctly the MOM grooming jobs will fail.  This can lead to a database that quickly grows toward the 30 GB maximum supported size.  If autogrow is disabled (the supported setting) this will lead to the MOM system shutting down as there is no room available in the database for continued operations.  This leads to cascading backlogs.  First, the MOM server queues will full up with data that needs to go to the database.  Once the MOM server queues fill we will signal agents to start storing data locally in their local queues.   If the database is set to autogrow (not supported for MOM) we can quickly see the size expand.  The server will remain operational but very likely will suffer from degraded performance.



Troubleshooting DTS failures is often easy but in some cases it’s helpful to understand what is actually happening behind the scenes.  Before going further I should mention that the information provided below is to assist in troubleshooting DTS issues – it is not supported to modify the DTS job or to run the DTS job directly from SQL for typical production use.



The MOM 2005 DTS job is executed as a scheduled task.  Have you ever wondered about this?  A scheduled task that runs an EXE isn’t really a DTS job, right?  So what really happens.  Essentially, the EXE causes a DTS job to be extracted and that extracted DTS job is what runs in SQL.  The DTS job consists of an inner job and an outer job.  The inner job calls the outer job.  The basic flow is as follows:



MOM.Datawarehousing.DTSPackageGenerator.exe


Extracts DTS package for execution – source and destination databases are specified on the command line.



SC_Inner_DTS_Package.DTS


SC_Outer_DTS_Package.DTS


Extracted when scheduled task runs.  These packages are responsible for executing the actual DTS run.  The outer package is started first which makes a few adjustments to the databae and then calls the inner package.  The inner package does the actual work of moving data.  When the inner package finishes control is handed back to the outer package which readjusts the database.



After each DTS run an event entry is added to the application event log giving status of the last run and, if a failure has occurred, the step at which the failure was noted.  The individual steps of the DTS jobs can be reviewed if the respective DTS job is loaded into SQL Enterprise Manager.



Typically you won’t see the individual .DTS packages that are extracted during scheduled task execution.  If you want to obtain these files for further troubleshooting you can run MOM.Datawarehousing.DTSPackageGenerator.exe with the /savetodisk option.  This will save out the two DTS packages which can then be imported into SQL.  From here it is possible to examine the individual steps in DTS design view.  It is also possible to execute these jobs manually from SQL for troubleshooting purposes – if this manual execution isn’t done correctly, however, you may encounter failures.  It’s probably a good idea to let us help you if you need to get this detailed.



There is much more detail that surrounds the execution of the DTS package.  I’ll stop here for now.  If comments warrant it I will consider adding more detail in a separate entry.