The REMOVE_RULE procedure removes a user-defined rewrite rule.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.
Syntax
PROCEDURE REMOVE_RULE (
rule_name VARCHAR(256));
Parameters
| Parameter | Description |
|---|---|
| rule_name | The name of the rule. |
Examples
obclient> CALL DBMS_UDR.REMOVE_RULE('rule1');
Query OK, 0 rows affected
obclient> SELECT DB_NAME, RULE_NAME, PATTERN, REPLACEMENT, NORMALIZED_PATTERN, STATUS, PATTERN_DIGEST
FROM oceanbase.DBA_OB_USER_DEFINED_RULES;
Empty set