The DROP_STAT_TABLE procedure drops a statistics table of a user.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.
Syntax
DBMS_STATS.DROP_STAT_TABLE (
ownname VARCHAR2,
stattab VARCHAR2);
Parameters
| Parameter | Description |
|---|---|
| ownname | The username. If the username is set to NULL, the current logon username is used by default. |
| stattab | The name of the user statistics table to be dropped. |
Exceptions
The error code ORA-20000 indicates that the table does not exist, or you do not have the required privileges.
Considerations
To call this procedure, you must have the privilege to drop this table from the specified user.
Examples
Drop the test_stat statistics table of the testUser01 user.
obclient> CALL DBMS_STATS.DROP_STAT_TABLE('testUser01', 'test_stat');
Query OK, 0 rows affected