The FLUSH_DATABASE_MONITORING_INFO procedure is used to refresh the in-memory monitoring information for all tables in the dictionary.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO;
Exceptions
The error code OBE-20000 indicates insufficient privileges.
Considerations
To run this procedure, you must have the ANALYZE_ANY system privilege.
FLUSH_DATABASE_MONITORING_INFO immediately updates the corresponding information in the *_TAB_STATISTICS and *_IND_STATISTICS views without waiting for the regular database refresh. The GATHER_*_STATS procedure internally refreshes the monitoring information, so you do not need to run this stored procedure before collecting statistics.
Examples
obclient> CALL DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO;
Query OK, 0 rows affected
