Oracle8i Replication Management API Reference
Release 2 (8.1.6)

A76958-01

Library

Product

Contents

Index

Prev Up Next

Replication Management API Reference, 138 of 179


CREATE_USER_AUTHORIZATION function

This function authorizes specific users to instantiate private deployment templates. Users not authorized for a private deployment template are not able to instantiate the private template. This function adds a row to the DBA_REPCAT_USER_AUTHORIZATIONS view.

Before you authorize a user, verify that the user exists at the master site where the user will instantiate the deployment template. The number returned by this function is used internally by Oracle to manage deployment templates.

Syntax

DBMS_REPCAT_RGT.CREATE_USER_AUTHORIZATION (
   user_name               IN   VARCHAR2, 
   refresh_template_name   IN   VARCHAR2)
   return NUMBER;

Parameters

Table 8-260 CREATE_USER_AUTHORIZATION Function Parameters
Parameter  Description 
user_name
 

Name of the user that you want to authorize to instantiate the specified template. Specify multiple users by separating user names with a comma (for example, 'john, mike, bob') 

refresh_template_
name
 

Name of the template that you want to authorize the specified user to instantiate. 

Exceptions

Table 8-261 CREATE_USER_AUTHORIZATION Function Exceptions
Exception  Description 
miss_user
 

User name supplied is invalid or does not exist. 

miss_refresh_
template
 

Refresh template name supplied is invalid or does not exist. 

dupl_user_
authorization
 

An authorization has already been created for the specified user and deployment template. See the DBA_REPCAT_USER_AUTHORIZATIONS view for a listing of template authorizations. 

Returns

Table 8-262 CREATE_USER_AUTHORIZATION Function Returns
Return Value  Description 

<system-generated number

System-generated number used internally by Oracle. 


Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index