Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
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_RLS , 7 of 13


ADD_GROUPED_POLICY Procedure

This procedure adds a policy associated with a policy group.

Syntax

DBMS_RLS.ADD_GROUPED_POLICY(
   object_schema   VARCHAR2,
   object_name     VARCHAR2,
   policy_group    VARCHAR2,
   policy_name     VARCHAR2,
   function_schema VARCHAR2,
   policy_function VARCHAR2,
   statement_types VARCHAR2,
   update_check    BOOLEAN,
   enabled         BOOLEAN  ); 

Parameters

Table 56-7 ADD_GROUPED_POLICY Procedure Parameters
Parameter  Description 
object_schema
 

The schema containing the table or view. 

object_name
 

The name of the table or view to which the policy is added. 

policy_group
 

The name of the policy group that the policy belongs to. 

policy_name
 

The name of the policy; must be unique for the same table or view. 

function_schema
 

The schema owning the policy function. 

policy_function
 

The name of the function that generates a predicate for the policy. If the function is defined within a package, the name of the package must be present. 

statement_types
 

The list of statement types to which the policy can apply. It can be any combination of SELECT, INSERT, UPDATE, or DELETE. Optional. 

update_check
 

For INSERT and UPDATE statements only, setting update_check to TRUE causes the server to check the policy against the value after INSERT or UPDATE. 

enable
 

Indicates if the policy is enable when it is added. The default is TRUE.  

Usage Notes

Note the following:


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, 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