ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling
complimentary technical Workshops on Database Security for the first 30
Oracle Database customers located anywhere in North America, EMEA, LATAM, or
APAC that send an email to
asra_us@oracle.com. Request a Workshop for
your organization today.
Purpose
Provides an API for database privilege analysis. Requires Oracle Enterprise Edition and the Data Vault license.
AUTHID
CURRENT_USER
Constants
For usage see CREATE_CAPTURE below
Name
Data Type
Value
G_DATABASE
NUMBER
1
G_ROLE
NUMBER
2
G_CONTEXT
NUMBER
3
G_ROLE_AND_CONTEXT
NUMBER
4
Data Types
SQL> desc sys.role_name_list
sys.role_name_list VARRAY(10) OF VARCHAR2(128)
Creates a privilege analysis policy to show privilege use by database users. It also optionally specifies the roles for which privilege use is to be analyzed, and the conditions under which privilege use will be analyzed
dbms_privilege_capture.create_capture(
name IN VARCHAR2,
description IN VARCHAR2 DEFAULT NULL,
type IN NUMBER DEFAULT G_DATABASE,
roles IN role_name_list DEFAULT role_name_list(),
condition IN VARCHAR2 DEFAULT NULL);
Type
Description
g_database
Captures all privilege use, except privileges used by SYS
g_role
Captures privilege use for the specified roles
g_context
Captures privilege use when the condition parameter evaluates to TRUE
g_role_and_context
Captures privilege use for the specified roles when the condition parameter evaluates to TRUE