8.203 V$ENABLEDSCHEMAPRIVS

V$ENABLEDSCHEMAPRIVS displays the schema privileges that have been granted to the current user directly or through the currently enabled roles.

Column Datatype Description

PRIV_NUMBER

NUMBER

Numeric identifier of the schema privilege

The matching privilege name for each PRIV_NUMBER can be found in the table SYSTEM_PRIVILEGE_MAP.

SCHEMA

NUMBER

Schema on which the privilege was granted

SCOPE

VARCHAR2(11)

Indicates the scope with which the privilege was granted. Possible values:

  • COMMON

  • APPLICATION

  • LOCAL

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

Note:

This view is available starting with Oracle Database 23ai.