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_REPCAT_RGT, 5 of 33


ALTER_USER_AUTHORIZATION Procedure

This procedure alters the contents of the DBA_REPCAT_USER_AUTHORIZATIONS view. Specifically, you can change user/deployment template authorization assignments. This procedure is helpful, for example, if an employee is reassigned and requires the materialized view environment of another deployment template. The DBA simply assigns the employee the new deployment template and the user is authorized to instantiate the target template.

Syntax

DBMS_REPCAT_RGT.ALTER_USER_AUTHORIZATION (
   user_name                   IN   VARCHAR2,
   refresh_template_name       IN   VARCHAR2,
   new_user_name               IN   VARCHAR2 := '-',
   new_refresh_template_name   IN   VARCHAR2 := '-');

Parameters

Table 51-8 ALTER_USER_AUTHORIZATION Procedure Parameters
Parameter  Description 
user_name
 

Name of the user whose authorization you want to alter. 

refresh_template_name
 

Name of the deployment template that is currently assigned to the specified user that you want to alter. 

new_user_name
 

Use this parameter to define a new user for this template authorization. Do not specify a value to keep the current user. 

new_refresh_template_name
 

The deployment template that the specified user (either the existing or, if specified, the new user) is authorized to instantiate. Do not specify a value to keep the current deployment template. 

Exceptions

Table 51-9 ALTER_USER_AUTHORIZATION Procedure Exceptions
Exception  Description 
miss_user_authorization
 

The combination of user_name and refresh_template_name values specified does not exist in the DBA_REPCAT_USER_AUTHORIZATIONS view. 

miss_user
 

The user name specified for the new_user_name or user_name parameter is invalid or does not exist. 

miss_refresh_template
 

The deployment template specified for the new_refresh_template parameter is invalid or does not exist. 

dupl_user_authorization
 

A row already exists for the specified user name and deployment template name. 


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