NAS probe runs DELETE statement against NAS_TRANSACTION_LOG table regular basis.
The DELETE statement will look like this.
DELETE FROM NAS_TRANSACTION_LOG WHERE time <= 'XX'
If NAS_TRANSACTION_LOG table is built up large, DELETE statement may time out.
The timeout came from Microsoft OLE DB Provider (a.k.a ADO) which has a default 30 seconds for its timeout.
If a query takes more than 30 seconds, it simply times out and data removal simply fails.
- CA UIM on Windows
- Microsoft SQL Server as UIM database
Open NAS probe GUI. Go to [Setup] - [NiS Bridge] tab.
Take memo of each configured values for the below parameters.
[Compress transactions after] X days
[Keep transaction history] Y days
[Keep transaction summary] Z days
Please execute the below SQL for UIM database.
DELETE FROM NAS_TRANSACTION_LOG WHERE TIME < DATEADD(dd,-X,getdate()) AND type IN (2,16)
DELETE FROM NAS_TRANSACTION_LOG WHERE TIME < DATEADD(dd,-Y,getdate())
DELETE FROM NAS_TRANSACTION_SUMMARY WHERE TIME < DATEADD(dd,-Z,getdate())
Open NAS probe with RAW CONFIGURE.
Add the following keys under <setup> section in NAS.cfg
nis_trans_admin = XXXX (default 3600 - seconds)
nis_trans_delete_incremental=yes (default no)
nis_trans_delete_size=YYYYY (default 10000 - number)
NAS probe run DELETE statement with interval of "nis_trans_admin" value.
If "nis_trans_delete_incremental" is enabled, DELETE statement will target number of rows specified in "nis_trans_delete_size" only.
DELETE statement will look like this.
DELETE top (nis_trans_delete_size) FROM NAS_TRANSACTION_LOG WHERE TIME <= 'XX'
With this feature, because one DELETE statement may not sufficient to cover all the old data, we may need to run DELETE multiple times.
Therefore, "nis_trans_admin" have to be smaller value which helps you to see Administration task run multiple times in an hour.
In this below example, NAS runs Administration task in every 5 minutes. One task do not remove more than 1000 rows.
However it runs 12 times in an hour. In total, you can remove 12000 rows in an hour.
(12000 rows removal at one time might not finish within 30 seconds.)
nis_trans_admin = 300
The described step as Permanent Solution in this document affecting only NAS_TRANSACTION_LOG table.