20.1 Data Authorization Views
These views help you validate data role definitions, data grant assignments, and the resulting row-level and column-level authorization rules.
Summary of views
| View or Object Name | Description |
|---|---|
DBA_DATA_ROLES |
Displays all data roles defined in the database. |
DBA_DATA_ROLE_GRANTS |
Displays all data role grants and database role grants to data roles. |
DBA_DATA_GRANTS |
Displays all fine-grained data grants in the database. |
ALL_DATA_GRANTS |
Displays all fine-grained data grants accessible to the current user. |
USER_DATA_GRANTS |
Displays all fine-grained data grants owned by the current user. |
DBA_REQUIRED_PARENT_DATA_PRIVILEGES |
Displays the required parent data privileges of all cross-table data grants in the database. |
ALL_REQUIRED_PARENT_DATA_PRIVILEGES |
Displays the required parent data privileges of cross-table data grants accessible to the current user. |
USER_REQUIRED_PARENT_DATA_PRIVILEGES |
Displays the required parent data privileges of cross-table data grants owned by the current user. |
20.1.1 DBA_DATA_ROLES
Displays all data roles defined in the database. Data roles can be locally defined or externally mapped to IAM attributes (for example, Entra ID roles). Data roles that are externally mapped activate automatically when the corresponding claim is present in the end-user token.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Name of the data role |
|
|
|
|
External name (from IAM) that a data role maps to. |
|
|
|
|
Indicates whether the data role is
enabled by default ( |
20.1.2 DBA_DATA_ROLE_GRANTS
Displays data role grants to data roles, end users, or application identities, and database role grants to data roles. Each row represents a single grant with optional temporal validity constraints.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Name of the granted role |
|
|
|
|
Type of granted role:
|
|
|
|
|
Name of the grantee |
|
|
|
|
Type of grantee:
|
|
|
|
|
Start time from which the grant is valid |
|
|
|
|
End time until which the grant is valid |
20.1.3 DBA_DATA_GRANTS
Displays all Oracle Deep Data Security
(Deep Sec) data grants in the database, created using the
CREATE DATA GRANT statement. Because predicated grants contain unique
attributes, such as grant names and active time windows (start or end times), they are not
recorded in the standard DBA_TAB_PRIVS view. Instead, Deep Sec data grants appear exclusively in this dedicated
dictionary view.
Note the distinction between the two ownership columns:
OBJECT_OWNER identifies the schema of the
target object being protected, whereas OWNER
identifies the schema that owns the data grant itself.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Owner of the data grant |
|
|
|
|
Name of the data grant |
|
|
|
|
Type of privilege granted |
|
|
|
|
Name of the column to which the data grant applies
|
|
|
|
|
Name of the column to which the data grant applies, if granted using
the
|
|
|
|
|
Owner of the object to which the data grant applies |
|
|
|
|
Name of the object to which the data grant applies |
|
|
|
|
Type of object to which the data grant applies (such as
|
|
|
|
|
Predicate used for the data grant |
|
|
|
|
Name of the grantee Applies to data grants created with
|
|
|
|
|
Type of grantee:
Applies to data grants created with
|
|
|
|
|
Indicates whether |
CROSS_TABLE_DATA_GRANT |
|
Indicates whether this is a cross-table data grant ( |
|
|
|
|
|
Start time for the data grant, if specified Applies to data grants created with
|
|
|
|
|
End time for the data grant, if specified Applies to data grants created with
|
|
|
|
|
Displays the column name if the data grant on the column is no longer valid due to, for example, a column name change or a dropped column
For cross-table data grants, this column reports invalid columns of the child
object. Invalid columns of the parent object are reported in the
|
20.1.4 ALL_DATA_GRANTS
Displays all Oracle Deep Data Security (Deep Sec) data grants that are accessible to the current user.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Owner of the data grant |
|
|
|
|
Name of the data grant |
|
|
|
|
Type of privilege granted |
|
|
|
|
Name of the column to which the data grant applies
|
|
|
|
|
Name of the column to which the data grant applies, if granted using
the
|
|
|
|
|
Owner of the object to which the data grant applies |
|
|
|
|
Name of the object to which the data grant applies |
|
|
|
|
Type of object to which the data grant applies (such as
|
|
|
|
|
Predicate used for the data grant |
|
|
|
|
Name of the grantee Applies to data grants created with
|
|
|
|
|
Type of grantee:
Applies to data grants created with
|
|
|
|
|
Indicates whether |
CROSS_TABLE_DATA_GRANT |
|
Indicates whether this is a cross-table data grant
( |
|
|
|
|
|
Start time for the data grant, if specified Applies to data grants created with
|
|
|
|
|
End time for the data grant, if specified Applies to data grants created with
|
|
|
|
|
Displays the column name if the data grant on the column is no longer valid due to, for example, a column name change or a dropped column
For cross-table data grants, this column reports invalid columns of
the child object. Invalid columns of the parent object are reported in the
|
20.1.5 USER_DATA_GRANTS
Displays all Oracle Deep Data Security (Deep Sec) data grants that are owned by the current user.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Name of the data grant |
|
|
|
|
Type of privilege granted |
|
|
|
|
Name of the column to which the data grant applies
|
|
|
|
|
Name of the column to which the data grant applies, if granted using
the
|
|
|
|
|
Owner of the object to which the data grant applies |
|
|
|
|
Name of the object to which the data grant applies |
|
|
|
|
Type of object to which the data grant applies (such as
|
|
|
|
|
Predicate used for the data grant |
|
|
|
|
Name of the grantee Applies to data grants created with
|
|
|
|
|
Type of grantee:
Applies to data grants created with
|
|
|
|
|
Indicates whether |
CROSS_TABLE_DATA_GRANT |
|
Indicates whether this is a cross-table data grant
( |
|
|
|
|
|
Start time for the data grant, if specified Applies to data grants created with
|
|
|
|
|
End time for the data grant, if specified Applies to data grants created with
|
|
|
|
|
Displays the column name if the data grant on the column is no longer valid due to, for example, a column name change or a dropped column
For cross-table data grants, this column reports invalid columns of
the child object. Invalid columns of the parent object are reported in the
|
20.1.6 DBA_REQUIRED_PARENT_DATA_PRIVILEGES
Displays the required parent data privileges of all cross-table data grants in the database.
Each row represents one privilege (optionally scoped to a single column of the parent
object) that must be held on the parent object for the cross-table data grant to
authorize access to its child object. Use this view together with
DBA_DATA_GRANTS, which describes the privileges granted on the
child object.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Owner of the cross-table data grant |
|
|
|
|
Name of the cross-table data grant |
|
|
|
|
Privilege required on the parent object Can be |
|
|
|
|
Name of the parent object column for a required column privilege There is one row for each column name specified in the required privilege
|
|
|
|
|
Owner of the parent object |
|
|
|
Name of the parent object |
|
|
|
|
|
Type of the parent object (such as
|
|
|
|
|
Displays the name of the parent object column that is no longer valid because of a schema change (for example, a dropped or renamed column)
|
20.1.7 ALL_REQUIRED_PARENT_DATA_PRIVILEGES
Displays the required parent data privileges of cross-table data grants that are accessible to the current user.
- The current user is the owner of the data grant.
- The current user has the
ADMINISTER ANY DATA GRANTsystem privilege, which results in all cross-table data grants being displayed. - The current user has the
ADMINISTER ANY DATA GRANTprivilege at the schema level on the schema of the object on which the data grant is created, which results in the cross-table data grants in that schema being displayed.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Owner of the cross-table data grant |
|
|
|
|
Name of the cross-table data grant |
|
|
|
|
Privilege required on the parent object Can be |
|
|
|
|
Name of the parent object column for a required column privilege There is one row for each column name specified in the required privilege
|
|
|
|
|
Owner of the parent object |
|
|
|
Name of the parent object |
|
|
|
|
|
Type of the parent object (such as
|
|
|
|
|
Displays the name of the parent object column that is no longer valid because of a schema change (for example, a dropped or renamed column)
|
20.1.8 USER_REQUIRED_PARENT_DATA_PRIVILEGES
Displays the required parent data privileges of cross-table data grants owned by the current user.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Name of the cross-table data grant |
|
|
|
|
Privilege required on the parent object Can be |
|
|
|
|
Name of the parent object column for a required column privilege There is one row for each column name specified in the required privilege
|
|
|
|
|
Owner of the parent object |
|
|
|
Name of the parent object |
|
|
|
|
|
Type of the parent object (such as
|
|
|
|
|
Displays the name of the parent object column that is no longer valid because of a schema change (for example, a dropped or renamed column)
|