The DELETE_SYSTEM_STATS procedure is used to delete system statistics.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only MySQL mode.
Syntax
DBMS_STATS.DELETE_SYSTEM_STATS();
Exceptions
| Error code | Description |
|---|---|
| OBE-20001 | The specified system statistics name is invalid. |
Considerations
- To run this procedure, you must connect as the specified user or have the
SYSDBAprivilege.
Examples
Using the DBMS_STATS.DELETE_SYSTEM_STATS stored procedure to delete all system statistics is very simple, as it requires no parameters.
BEGIN
-- Delete all system statistics
DBMS_STATS.DELETE_SYSTEM_STATS();
END;
/