The GET_STATS_HISTORY_RETENTION function is used to get the retention period of historical statistics.
Syntax
DBMS_STATS.GET_STATS_HISTORY_RETENTION
RETURN NUMBER;
Examples
Get the retention period of historical statistics.
obclient> SELECT DBMS_STATS.GET_STATS_HISTORY_RETENTION() FROM DUAL;
+------------------------------------------+
| DBMS_STATS.GET_STATS_HISTORY_RETENTION() |
+------------------------------------------+
| 15 |
+------------------------------------------+
1 row in set
