The DROP_STAT_TABLE procedure drops a statistics table of a user.
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 in the specified schema.
Examples
Drop the statistics table test_stat of the testUser01 user.
obclient> CALL DBMS_STATS.DROP_STAT_TABLE('testUser01', 'test_stat');
Query OK, 0 rows affected