Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3530

Re: Statistics server not deleting history data

$
0
0

Hello Christina Halim

 

Did you try the following command to find and delete stats data older than 30 days?

 

select count(snapshot_id ) from _SYS_STATISTICS.STATISTICS_ALERTS_BASE where snapshot_id < add_days(CURRENT_TIMESTAMP,-30) COUNT(SNAPSHOT_ID);

 

delete from _SYS_STATISTICS.STATISTICS_ALERTS_BASE where snapshot_id < add_days(CURRENT_TIMESTAMP,-30) COUNT(SNAPSHOT_ID);

 

Thanks,
Shaheer


Viewing all articles
Browse latest Browse all 3530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>