(SELECT TOP 1 * FROM _SYS_STATISTICS.STATISTICS_LAST_CHECKS
WHERE ALERT_ID = 0 ORDER BY ALERT_LAST_CHECK_TIMESTAMP DESC)
UNION ALL
SELECT * FROM _SYS_STATISTICS.STATISTICS_LAST_CHECKS
WHERE ALERT_ID != 0
select round(memory_size_in_total/1024/1024/1024) as "SIZE(GB)"
from m_cs_tables
where table_name = 'STATISTICS_ALERTS_BASE'
and schema_name= '_SYS_STATISTICS';
update _SYS_STATISTICS.STATISTICS_SCHEDULE
set RETENTION_DAYS_CURRENT = 25
where ID = 6002
TRUNCATE TABLE "_SYS_STATISTICS"."STATISTICS_ALERTS_BASE";
DELETE FROM "_SYS_STATISTICS"."STATISTICS_ALERTS_BASE"
WHERE "ALERT_TIMESTAMP" < add_days(CURRENT_TIMESTAMP, -25);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
25 | |
21 | |
12 | |
9 | |
8 | |
8 | |
8 | |
8 | |
8 |