Note
This view is introduced in V4.3.5 BP3.
Purpose
Displays the users or roles that have the privilege to access the plaintext data associated with a sensitive rule in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| RULE_NAME | varchar(256) | NO | The name of the sensitive rule. |
| USER_NAME | varchar(128) | NO | The name of the user. |
| USER_TYPE | varchar(4) | NO | The type of the user. Valid values: USER and ROLE. USER indicates a user, and ROLE indicates a role. |
Sample query
Query all users and roles that have the privilege to access the plaintext data associated with a sensitive rule in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_SENSITIVE_RULE_PLAINACCESS_USERS;
The query result is as follows:
+-----------+-----------+-----------+
| RULE_NAME | USER_NAME | USER_TYPE |
+-----------+-----------+-----------+
| r1 | root | USER |
+-----------+-----------+-----------+
1 row in set