The DROP_STAT_TABLE procedure is used to delete the user's statistics table.
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 user statistics table to be deleted. |
Exceptions
The error code HY000 indicates that the table does not exist or that the user does not have sufficient privileges.
Considerations
You must have the necessary privileges to delete the table in the specified schema.
Examples
Delete the statistics table test_stat for the user testUser01.
obclient> CALL DBMS_STATS.DROP_STAT_TABLE('testUser01', 'test_stat');
Query OK, 0 rows affected
