19.4 End-User Security Context Views
These views help you inspect the active end-user security context and validate the end-user identity and resolved data roles.
Summary of views
| View or Object Name | Description |
|---|---|
DBA_END_USER_SECURITY_CONTEXTS |
Displays all end-user security contexts currently maintained in the database. |
DBA_END_USER_SECURITY_CONTEXT_DATA_ROLES |
Displays data roles enabled in end-user security contexts. |
DBA_END_USER_SECURITY_CONTEXT_ATTRIBUTES |
Displays the end-user context attributes as of the last saved state for each end-user security context. |
END_USER_CONTEXT |
Displays the end-user context attributes in the current end-user security context. |
V$END_USER_DATA_ROLE |
Displays data roles in the end-user security context for the current request. |
19.4.1 DBA_END_USER_SECURITY_CONTEXTS
Displays all end-user security contexts currently maintained in the database. Each security context represents an active or cached end-user session with associated metadata, such as creation time, last access time, and inactivity timeout.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
User name for the end-user security context |
|
|
|
|
Unique end-user security context identifier |
|
|
|
|
Lookup key associated with the end-user security context |
|
|
|
|
Creation time of the end-user security context |
|
|
|
|
Most recent access time of the end-user security context |
|
|
|
|
End-user security context inactivity timeout value (in minutes) |
|
|
|
|
User type of the end-user security context:
|
|
|
|
|
Type of the end-user security context:
|
19.4.2 DBA_END_USER_SECURITY_CONTEXT_DATA_ROLES
Displays the data roles enabled within each end-user security context. Join
on the CONTEXT_ID column with
DBA_END_USER_SECURITY_CONTEXTS to correlate roles with specific
end-user sessions.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
User name for the end-user security context |
|
|
|
|
Unique end-user security context identifier |
|
|
|
|
Name of the enabled data role |
19.4.3 DBA_END_USER_SECURITY_CONTEXT_ATTRIBUTES
Displays the end-user context attributes as of the last saved state for each end-user security context.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
User name for the end-user security context |
|
|
|
|
Unique identifier of the end-user security context |
|
|
|
|
End-user context attributes as of the last saved state, in JSON format |
19.4.4 END_USER_CONTEXT
Displays the end-user context attributes in the current end-user security context.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
|
|
Owner of the end-user context |
|
|
|
|
Name of the end-user context |
|
|
|
|
Context attributes for the current request, in JSON format |
19.4.5 V$END_USER_DATA_ROLE
Displays the data roles activated in the end-user security context for the current database request. This dynamic performance view is useful for runtime diagnostics and verifying that expected data roles are active within a session.
| Column | Datatype | Description |
|---|---|---|
|
|
|
Name of the activated data role in the current request |
|
|
|
The ID of the container to which the data pertains. Possible values include:
|