BizTalk Developers, have you enabled DTA Purge and Archive (BizTalkDTADb) SQL job on your development machine?

Posted at: 2/20/2007 at 6:28 PM by saravana

In development machines, BizTalk developers normally tend to enable full body tracking of messages they process inside the BizTalk server for debugging purpose. As BizTalk Server processes more and more data on your system (over a period of time), the BizTalk Tracking (BizTalkDTADb) database continues to grow in size. Unchecked growth decreases system performance and may generate errors in the Tracking Data Delivery Service (TDDS). In addition to general tracking data, tracked messages can also accumulate in the MessageBox database, causing poor disk performance.

According to this MSDN article http://msdn2.microsoft.com/en-us/library/aa560754.aspx

"By default, the DTA Archive and Purge job is not enabled. You must first configure and then enable the job."

I haven't enabled the job after BizTalk server installation on my development machine and recently when I visited the SQL Data folder for something else I saw this shocking file size (shown below after 6 months of usage). My BizTalk tracking data file is 3.05GB.

Purge tracking data:

BizTalk 2006 got some nice Stored Procedures and SQL Jobs to Archive and Purge the tracking database. BizTalk 2006 gives you an option to Archive and Purge the tracking data or just purge the data without archiving. In a development machine we don't need to maintain the archived tracking data, so we will just purge it periodically.

As soon as I saw the data file size of 3.05GB, first thing I did was configured the DTA Purge and Archive SQL job to just purge the tracking data as explained in the article http://msdn2.microsoft.com/en-us/library/aa578470.aspx

Long story short:

1. Change the SQL Statement inside "DTA Purge and Achieve" SQL Job to

declare @dtLastBackup datetime set @dtLastBackup = GetUTCDate() exec dtasp_PurgeTrackingDatabase 1, 0, 1, @dtLastBackup

If your data file size is too big (like mine 3.05GB) after configuring DTA Purge and Achieve SQL job don't go and run the SQL Job directly, due to the volume of data present in the tracking database, it will take very long time to process the backlog. Instead do a manual purge first as explained in this article

http://msdn2.microsoft.com/en-us/library/aa561918.aspx

Long story short:

1. Stop all BizTalk/IIS service (SSO, Rule,EDI,Host Instances)

2. Open SQL Management Studio and run the following stored procedure under BizTalkDTADb database as shown below:

EXEC  [BizTalkDTADb].[dbo].[dtasp_PurgeAllCompletedTrackingData]

The stored procedure will be executed very quickly, mine took less than 10 seconds (remember my data file size was 3.05GB).

Shrink your BizTalkDBADb via SQL Management Studio:

Right-Click on the BizTalkDTADb database inside management studio and select

Tasks => Shrink => Database, and click "OK"

Now, look at the size of the BizTalkDTADb.mdf file, its shrinked to the absolute minimum value.

Configure the SQL Job to run periodically (every 1 minute)

After performing the steps above (once the tracking data is purged)  "DTA Purge and Archive (BizTalkDTADb)" SQL Job will run instantaneously without any wait. Now, you can enable the job to run periodically.

 

Nandri!

Saravana

Tags: |  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(11) | Comments RSS

Comments

Wednesday, November 19, 2008 10:13 PM
Janette Garza Mexico
Janette Garza
Thanks for taking the time to Post all your notes! This is the 2nd time that I've come across you notes and they have been very helpful!

My actual problem is that the DTA Purge job is just not running! And it is configured correctly. The error does not give any detail. I wonder if the problem is how big the actual database is. I will try what you did above and see if after that the job runs correctly.

Thanks!

Saturday, July 17, 2010 8:35 PM
payday loans
You will never do anything in this world without courage. It is the greatest quality of the mind next to honour.
Monday, August 02, 2010 12:10 AM
lenen
BKR problemen? Nu Geld lenen zonder BKR toetsing? Op zoek naar betrouwbare aanbieders? Wij vergelijken banken die u toch kunnen helpen aan een betrouwbare
Monday, August 02, 2010 2:53 AM
Air Jordan
I normally mentioned, "life is like a book, how would you like to write, it really is what type of book. So our own attitude determines life. Not surprisingly, we will need to go through more meaningful publication, it can give us inspiration.
http://www.airjordan.cc
Thursday, August 05, 2010 1:44 AM
Seattle Limousine
can someone tell me how to get the little avatars to show up in my comments section? thanx!
Saturday, August 07, 2010 3:51 PM
Chat Cam
Good site, just gave it a bump on Digg.com
Saturday, August 07, 2010 4:19 PM
Cam Sex
adding this info to my blog if thats ok dude.
Tuesday, August 10, 2010 12:17 AM
hypotheek
Hypotheek informatie, hypotheek aanvragen of afsluiten? Hypotheekrentes bekijken. Hypotheek aanbieders vergelijken, hypotheek vormen, bijkomende kosten,
Tuesday, August 24, 2010 1:53 AM
air force ones
This is certainly this kind of an incredible source that that you're placing up and also you give it away without cost. I really like seeing web sites that comprehend the worth of supplying a prime source totally free. I genuinely loved reading your article. Thanks!
Thursday, August 26, 2010 7:05 PM
sell my house
Good informative post. I will visit your site often to keep updated.
Tuesday, August 31, 2010 2:03 PM
Matthew @ web design shanghai
This article was really helpful and interesting. Thank you for sharing this. Those commented before me could have given some interesting views.

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading