The SA_SESSION.RESTORE_DEFAULT_LABELS procedure restores the session label and row label to the labels stored in the data dictionary.
This procedure is used to reset the values after the SA_SESSION.SET_LABEL command is executed.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
SA_SESSION.RESTORE_DEFAULT_LABELS (
policy_name in VARCHAR);
Parameters
| Parameter | Description |
|---|---|
| policy_name | The name of the policy. To find existing policies, query the POLICY_NAME column of the ALL_SA_POLICIES data dictionary view. |
Examples
The following example restores the default labels for the shield_agent_policy policy.
BEGIN
SA_SESSION.RESTORE_DEFAULT_LABELS (
policy_name => 'shield_agent_policy');
END;
/
