Note
This view is introduced in V4.3.5 BP3.
Purpose
Displays all columns protected by sensitive rules in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| RULE_NAME | varchar(256) | NO | Name of the sensitive rule. |
| DATABASE_NAME | varchar(128) | NO | Name of the database. |
| TABLE_NAME | varchar(128) | NO | Name of the table. |
| COLUMN_NAME | varchar(128) | NO | Name of the column. |
Sample query
Query all columns protected by sensitive rules in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_SENSITIVE_COLUMNS;
The query result is as follows:
+-----------+---------------+------------+-------------+
| RULE_NAME | DATABASE_NAME | TABLE_NAME | COLUMN_NAME |
+-----------+---------------+------------+-------------+
| r1 | test | t2 | c |
| r1 | test | t1 | a |
+-----------+---------------+------------+-------------+
2 row in set