The SA_SESSION.LABEL function returns the label associated with the specified policy for the current session.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
SA_SESSION.LABEL (
policy_name IN VARCHAR)
RETURN VARCHAR AS
ret VARCHAR (4000);
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 returns the label associated with the shield_agent_policy policy.
SELECT SA_SESSION.LABEL ('shield_agent_policy') FROM DUAL;
