| Oracle DBMS_PRIV_CAPTURE Version 26ai |
|---|
| General Information | ||
| Library Note |
|
|
| Purpose | Capture privileges used in Oracle defined PL/SQL packages. The purpose of this project, #32973, is to capture privileges used for an operation. Privileges checked in the kernel(e.g, through KZP layer) have been collected. However, many Oracle defined PL/SQL packages query privilege related dictionary tables/views(for example, session_privs, session_roles, sysauth$, objauth$, etc.) to check whether a user has a given privilege. For such cases, APIs in this package have been used to replace original check. For queries that cannot be replaced, privileges are collected directly by calling dbms_priv_capture.capture_privilege_use. |
|
| AUTHID | CURRENT_USER | |
| Dependencies | SELECT name FROM dba_dependencies WHERE referenced_name = 'DBMS_PRIV_CAPTURE' UNIONReturns 61 objects |
|
| Documented | No | |
| First Available | 12.1 | |
| Security Model | Owned by SYS with EXECUTE granted to CTXSYS, LBACSYS, MDSYS, and XDB | |
| Source | {ORACLE_HOME}/rdbms/admin/catprofp.sql | |
| Subprograms | ||
| CAPTURE_PRIVILEGE_USE | ||
| Capture a privilege usage, if a privilege capture condition is met. This procedure is called when a privilege is used in PL/SQL or JAVA. Overload 1 |
dbms_priv_capture.capture_privilege_use( |
|
| TBD | ||
| Overload 2 | dbms_priv_capture.capture_privilege_use( |
|
| TBD | ||
| SES_HAS_OBJ_PRIV | ||
| Checks whether the current user has a given object privilege | dbms_priv_capture.ses_has_obj_priv( |
|
conn sys@pdbdev as sysdba |
||
| SES_HAS_ROLE_PRIV | ||
| Determines whether the current user has a given role | dbms_priv_capture.ses_has_role_priv(rolename IN VARCHAR2) RETURN PLS_INTEGER; |
|
SELECT dbms_priv_capture.ses_has_role_priv('DBHADOOP'); |
||
| SES_HAS_SCH_PRIV (new 23ai) |
||
| Determines whether the session user has been given a system privilege or a schema privilege Overload 1 |
dbms_priv_capture.ses_has_sch_priv( |
|
| TBD | ||
| Overload 2 | dbms_priv_capture.ses_has_sch_priv( |
|
| TBD | ||
| SES_HAS_SYS_PRIV | ||
| Determines whether the current user has a given system privilege | dbms_priv_capture.ses_has_sys_priv(systempriv IN VARCHAR2)
RETURN PLS_INTEGER; |
|
SELECT dbms_priv_capture.ses_has_sys_priv('CREATE TABLE'); |
||
| Related Topics |
| Built-in Functions |
| Built-in Packages |
| Database Security |
| DBMS_PRIVILEGE_CAPTURE |
| Object Privileges |
| Profiles |
| Roles |
| Security |
| What's New In 21c |
| What's New In 26ai |
| This site is maintained by Daniel Morgan. Last Updated: | This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2026 Daniel A. Morgan All Rights Reserved | ||||||||
|
|
|||||||||