The SA_SESSION package is used to manage session behavior based on user privileges. During a session, users can change labels within the permissions set by the administrator.
You do not need any special privileges to use this PL package.
The following table lists the contents of the SA_SESSION package supported by the current version of OceanBase Database.
| Procedure | Description |
|---|---|
| SA_SESSION.LABEL | Returns the labels associated with the specified label security policy. |
| SA_SESSION.RESTORE_DEFAULT_LABELS | Resets the current session labels and row labels to their stored default settings. |
| SA_SESSION.ROW_LABEL | Returns the name of the row label associated with the current session's policy. |
| SA_SESSION.SET_LABEL | Sets a new level with read permissions for others. |
| SA_SESSION.SET_ROW_LABEL | Sets the default row label to be applied to new rows. |
Applicability
This content applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
