The GET_STATS_HISTORY_RETENTION function is used to retrieve the retention period for historical statistics.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_STATS.GET_STATS_HISTORY_RETENTION
RETURN NUMBER;
Examples
Retrieve the retention period for historical statistics.
obclient> SELECT DBMS_STATS.GET_STATS_HISTORY_RETENTION() FROM DUAL;
+------------------------------------------+
| DBMS_STATS.GET_STATS_HISTORY_RETENTION() |
+------------------------------------------+
| 15 |
+------------------------------------------+
1 row in set
