Note
For V4.6.x, this view is available starting from V4.6.0.
Overview
Displays all columns protected by sensitive data rules under the current tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| RULE_NAME | varchar(256) | NO | Sensitive Rule Name |
| DATABASE_NAME | varchar(128) | NO | Database Name |
| TABLE_NAME | varchar(128) | NO | Table name |
| COLUMN_NAME | varchar(128) | NO | Column Name |
Sample query
Query all columns protected by sensitive data protection 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
