In TrueSight Capacity Optimization (TSCO) how can one set an aging parameter for Reports cleanup? We need to setup repository cleanup for the report results, to prevent our report repository from reaching 100% full on the file system. |
This article describes how to set reports retention and how to automatically delete old reports. Steps for TrueSight Capacity Optimization (TSCO) versions 11.3 and laterBy default the last 100 report results are ALWAYS retained for each report. You can verify and change this setting from:
· Administration >
· ETL & SYSTEM TASKS > · System tasks > · Database Cleaner Edit the Database Cleaner task run configuration and check the "report aging" parameter setting (see below screenshot for guidance). Be careful when changing the report retention parameter into the database cleaner task, since this acts GLOBALLY on all report results, so other stakeholders could be interested in higher report results retention.
For TrueSight Capacity Optimization versions 11.0 and earlierNote: This article works on TrueSight Capacity Optimization 10.0 only if you have installed CHF4 for CP1 or newer CHF 1. Preliminary steps
2. Adding the custom cleanup queries into Database Cleaner task Run confguration
For StandardReport.custom.query entry Value is: DELETE FROM rep_result t1 WHERE (repid, rundate) IN (SELECT repid, rundate FROM (SELECT t2.repid, t2.rundate, ROW_NUMBER () OVER (PARTITION BY repid ORDER BY rundate DESC) RANK FROM rep_result t2) WHERE RANK > 100)
For StandardReportProps.custom.query entry Value is: DELETE FROM rep_result_props t1 WHERE (repid, rundate) IN (SELECT repid, rundate FROM (SELECT t2.repid, t2.rundate, ROW_NUMBER () OVER (PARTITION BY repid ORDER BY rundate DESC) RANK FROM rep_result t2) WHERE RANK > 100)
3. Enabling the custom cleanup queries (changes for BCO 9.X)
Append the following string to the query.name.list property of the Database Cleaner Task to remove the reports out of the RANK from the database: 3. Enabling the custom cleanup queries (changes for TSCO 10.0 CP1 CHF4 or 10.3 or 10.5 or 10.7)Add the following property to the Database Cleaner Task:additional.tables Append the following string to the additional.tables property of the Database Cleaner Task to remove the reports out of the RANK from the database:
4. Final steps
|