title | description | ms.custom | ms.date | ms.service | ms.reviewer | ms.suite | ms.topic |
---|---|---|---|---|---|---|---|
Configure the DTA Purge and Archive Job |
Set the DTA Purge and Archive job parameters in SQL Server Agent to maintain the Tracking database in BizTalk Server |
10/11/2017 |
biztalk-server |
article |
Before you can archive or purge data from the BizTalk Tracking (BizTalkDTADb) database, you must configure the DTA Purge and Archive (BizTalkDTADb) job. This job is configured to call the dtasp_BackupAndPurgeTrackingDatabase store procedure, which uses six parameters you must configure.
Sign in with an account that is a member of the SQL Server sysadmin fixed server role.
-
On the SQL Server that hosts the BizTalk Tracking (BizTalkDTADb) database, open SQL Server Management Studio.
-
In Connect to Server, enter the name of the SQL server where the BizTalk Tracking (BizTalkDTADb) database resides, enter the authentication type, and then select Connect to connect to the SQL server.
-
Double-click SQL Server Agent, and then select Jobs.
-
In Object Explorer Details, right-click DTA Purge and Archive (BizTalkDTADb), and then select Properties.
-
In Job Properties - DTA Purge and Archive (BizTalkDTADb), under Select a page, select Steps.
-
In the Job step list, select Archive and Purge, and then select Edit.
-
In General, in the Command box, update the following parameters, and then select OK.
-
@nLiveHours tinyint — Any completed instance older than the (live hours) + (live days) will be deleted along with all associated data. This is a required parameter with no default value.
-
@nLiveDays tinyint — Any completed instance older than the (live hours) + (live days) will be deleted along with all associated data. Default interval is 0 days.
[!NOTE] For the purposes of the BizTalk Tracking (BizTalkDTADb) database, the sum of LiveHours plus LiveDays is the live window of data you want to maintain in your BizTalk Server environment. All data associated with a completed instance older than the live window of data is deleted.
-
@nHardDeleteDays tinyint — All data (even if incomplete) older than this will be deleted. The time interval specified for HardDeleteDays should be greater than the live window of data. The live window of data is the interval of time for which you want to maintain tracking data in the BizTalk Tracking (BizTalkDTADb) database. Anything older than this interval is eligible to be archived at the next archive and then purged. Default is 0 days.
-
@nvcFolder nvarchar(1024) — Folder in which to put the backup files. This is a required parameter with no default value.
-
@nvcValidatingServer sysname — Server on which validation will be done. NULL value indicates no validation is being done. Default is NULL.
-
@fForceBackup int — Default is 0. This is reserved for future use.
-
@fHardDeleteRunningInstances int - Default is 0. When set to 1, it deletes all running service instances older than the @nHardDeleteDays value.
[!NOTE] The @fHardDeleteRunningInstances property is available starting with BizTalk Server 2016 Cumulative Update 1, BizTalk Server 2013 R2 Cumulative Update 6, and BizTalk Server 2013 Cumulative Update 5.
Your edited command should look similar to the following. In the following example, there is a live window of 1 hour, a hard purge of 1 day, and deletes all running service instances older than 1 day:
exec dtasp_BackupAndPurgeTrackingDatabase 1, 0, 1, '\\MyBizTalkServer\backup', null, 0, 1
-
-
On the Job Properties - DTA Purge and Archive (BizTalkDTADb) dialog box, under Select a page, select General, select the Enabled check box, and then select OK.