The DELETE_SYSTEM_STATS procedure is used to delete system statistics.
Syntax
DBMS_STATS.DELETE_SYSTEM_STATS();
Exceptions
| Error Code | Description |
|---|---|
| HY000 | The system statistics name is incorrect. |
Considerations
To execute this procedure, the user must have the SUPER privilege or be the root user.
Examples
Using the DBMS_STATS.DELETE_SYSTEM_STATS stored procedure to delete all system statistics is very simple because it requires no parameters.
BEGIN
-- Delete all system statistics
DBMS_STATS.DELETE_SYSTEM_STATS();
END;
/