The DROP_GROUPED_POLICY procedure is used to drop a policy from a specified policy group.
Applicability
This content applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support it.
Syntax
DBMS_RLS.DROP_GROUPED_POLICY(
object_schema IN VARCHAR2 := NULL,
object_name IN VARCHAR2,
policy_group IN VARCHAR2 := 'SYS_DEFAULT',
policy_name IN VARCHAR2);
Parameters
Parameter |
Description |
|---|---|
| object_schema | The name of the schema to which the table or view belongs. Default isNULL, indicating the current schema. |
| object_name | The name of the table or view. |
| policy_group | Policy group name. Default value:SYS_DEFAULT. |
| policy_name | The name of the policy. |
Examples
BEGIN
DBMS_RLS.DROP_GROUPED_POLICY(
object_schema => 'hr',
object_name => 'employees',
policy_group => 'admin_group',
policy_name => 'emp_dept_policy');
END;
/
