The DBMS_MVIEW_STATS system package provides an interface for users to manage the collection and retention of statistics for materialized view refresh operations.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Privilege requirements for DBMS_MVIEW_STATS
All subprograms of the DBMS_MVIEW_STATS system package require the EXECUTE privilege. By default, the SYSDBA role has the EXECUTE privilege on this system package.
Overview of DBMS_MVIEW_STATS subprograms
The following table describes the DBMS_MVIEW_STATS subprograms supported in the current version of OceanBase Database and their functions.
| Subprogram | Description |
|---|---|
| PURGE_REFRESH_STATS | Forcibly deletes materialized view refresh statistics that exceed the specified retention period. |
| SET_MVREF_STATS_PARAMS | Configures parameters for the collection level and data retention period of materialized view refresh statistics. |
| SET_SYSTEM_DEFAULT | Sets the system default values for refresh statistics parameters. |
