The SA_SESSION package is used to manage user-authorized session behavior. During a session, users can change tags within the scope of permissions set by the administrator.
You do not need special privileges to use this package.
The following table lists the contents of the SA_SESSION package supported by the current version of OceanBase Database.
stored procedure |
Description |
|---|---|
| SA_SESSION.LABEL | Retrieves the tags associated with a specified tag security policy. |
| SA_SESSION.RESTORE_DEFAULT_LABELS | Resets the current session tag and row tag to the stored default settings. |
| SA_SESSION.ROW_LABEL | Returns the name of the row label associated with the policy of the current session. |
| SA_SESSION.SET_LABEL | Set a new level of read permission 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 provides only the MySQL-compatible mode.
