Configure End-User Contexts and Attributes

Use the SQL statements in this chapter to create, drop, read, and modify end-user context definitions and their attributes. These context definitions serve as templates that the database uses at runtime to enforce fine-grained authorization policies through data grants.

Before configuring your environment, it is important to distinguish between two related, similarly named concepts:

The relationship between the two is this: if your data grants or application logic reference custom context attributes (for example, ORA_END_USER_CONTEXT.hr.hcm_context.emp_id), you must first create the corresponding end-user context definition in the database before those attributes are available within a runtime end-user security context.

Note: To query ORA_END_USER_CONTEXT directly or to use it in data grant predicates, you must set the database instance’s COMPATIBLE initialization parameter to 20.0 or greater.

Topics: