The DROP_STAT_TABLE procedure is used to drop the statistics table of a user.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
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 login username will be used by default. |
| stattab | The name of the statistics table to be dropped. |
Exceptions
Error code OBE-20000 indicates that the table does not exist or the user does not have sufficient privileges.
Considerations
To call this procedure, you must have the privilege to drop the table in the specified user.
Examples
Drop the statistics table test_stat of the user testUser01.
obclient> CALL DBMS_STATS.DROP_STAT_TABLE('testUser01', 'test_stat');
Query OK, 0 rows affected
