Skip Headers

Oracle9i Supplied PL/SQL Packages and Types Reference
Release 2 (9.2)

Part Number A96612-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_FGA , 2 of 2


Summary of DBMS_FGA Subprograms

Table 16-1 Summary of DBMS_FGA Subprograms
Subprogram Description

ADD_POLICY Procedure

Creates an audit policy using the supplied predicate as the audit condition

DROP_POLICY Procedure

Drops an audit policy

ENABLE_POLICY Procedure

Enables an audit policy

DISABLE_POLICY Procedure

Disables an audit policy

ADD_POLICY Procedure

This procedure creates an audit policy using the supplied predicate as the audit condition.

Syntax

DBMS_FGA.ADD_POLICY(
   object_schema   VARCHAR2, 
   object_name     VARCHAR2, 
   policy_name     VARCHAR2, 
   audit_condition VARCHAR2, 
   audit_column    VARCHAR2, 
   handler_schema  VARCHAR2, 
   handler_module  VARCHAR2,  
   enable          BOOLEAN  );

Parameters

Table 16-2 ADD_POLICY Procedure Parameters
Parameter Description

object_schema

The schema of the object to be audited

object_name

The name of the object to be audited

policy_name

The unique name of the policy

audit_condition

A condition in a row that indicates a monitoring condition

audit_column

The column to be checked for access. The default is all columns.

handler_schema

The schema that contains the event handler. The default is the current schema.

handler_module

The function name of the event handler; includes the package name if necessary. This is fired only after the first row that matches the audit condition is processed in the query. If the procedure fails with exception, the user SQL statement will fail as well. The default is NULL.

enable

Enables the policy if TRUE, which is the default.

Usage Notes

DROP_POLICY Procedure

This procedure drops an audit policy.

Syntax

DBMS_FGA.DROP_POLICY(
   object_schema  VARCHAR2, 
   object_name    VARCHAR2, 
   policy_name    VARCHAR2 );

Parameters

Table 16-3 DROP_POLICY Procedure Parameters
Parameter Description

object_schema

The schema of the object to be audited

object_name

The name of the object to be audited

policy_name

The unique name of the policy

Usage Notes

The DBMS_FGA procedures cause current DML transactions, if any, to commit before the operation. However, the procedures do not cause a commit first if they are inside a DDL event trigger. With DDL transactions, the DBMS_FGA procedures are part of the DDL transaction.

ENABLE_POLICY Procedure

This procedure enables an audit policy.

Syntax

DBMS_FGA.ENABLE_POLICY(
   object_schema  VARCHAR2 := NULL,
   object_name    VARCHAR2,
   policy_name    VARCHAR2,
   enable         BOOLEAN := TRUE);

Parameters

Table 16-4 ENABLE_POLICY Procedure Parameters
Parameter Description

object_schema

The schema of the object to be audited

object_name

The name of the object to be audited

policy_name

The unique name of the policy

enable

Defaults to TRUE to enable the policy

DISABLE_POLICY Procedure

This procedure disables an audit policy.

Syntax

DBMS_FGA.DISABLE_POLICY(
   object_schema  VARCHAR2, 
   object_name    VARCHAR2, 
   policy_name    VARCHAR2 ); 

Parameters

Table 16-5 DISABLE_POLICY Procedure Parameters
Parameter Description

object_schema

The schema of the object to be audited

object_name

The name of the object to be audited

policy_name

The unique name of the policy


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 2000, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback