The DELETE_SCHEMA_PREFS procedure deletes the preference settings of all tables under the specified user.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_STATS.DELETE_SCHEMA_PREFS (
ownname IN VARCHAR2,
pname IN VARCHAR2);
Parameters
| Parameter | Description |
|---|---|
| ownname | The username. If the username is set to NULL, the current login username will be used by default. |
| pname | The name of the preference. |
Exceptions
| Error Code | Description |
|---|---|
| OBE-20000 | The user does not exist or does not have sufficient privileges. |
| OBE-20001 | Invalid value or illegal input value. |
Considerations
To run this procedure, you must connect to the database as the specified user or have the
SYSDBAprivilege.The parameters in this procedure are of the
VARCHAR2type, and their values must be enclosed in quotes.
Examples
Delete the DEGREE preference under the hr user.
obclient> CALL DBMS_STATS.DELETE_SCHEMA_PREFS('hr', 'DEGREE');
Query OK, 0 rows affected
