Oracle8i Replication Management API Reference
Release 2 (8.1.6)

A76958-01

Library

Product

Contents

Index

Prev Up Next

Replication Management API Reference, 131 of 179


ALTER_USER_PARM_VALUE procedure

This procedure changes existing parameter values that have been defined for a specific user. This procedure is especially helpful if your snapshot environment uses assignment tables. Change a user parameter value to quickly and securely change the data set of a remote snapshot site.

See Also:

"Deployment Template Design" in Oracle8i Replication for more information on using assignment tables. 

Syntax

DBMS_REPCAT_RGT.ALTER_USER_PARM_VALUE(
   refresh_template_name         IN   VARCHAR2, 
   parameter_name                IN   VARCHAR2,
   user_name                     IN   VARCHAR2,
   new_refresh_template_name     IN   VARCHAR2 := '-',
   new_parameter_name            IN   VARCHAR2 := '-',
   new_user_name                 IN   VARCHAR2 := '-',
   new_parm_value                IN   CLOB := NULL);

Parameters

Table 8-240 ALTER_USER_PARM_VALUE Procedure Parameters
Parameter  Description 
refresh_template_
name
 

Name of the deployment template that contains the user parameter value that you want to alter. 

parameter_name
 

Name of the parameter that you want to alter. 

user_name
 

Name of the user whose parameter value you want to alter. 

new_refresh_
template_name
 

Name of the deployment template that the specified user parameter value should be reassigned to (useful when you are authorizing a user for a different template). Do not specify a value to keep the parameter assigned to the current template. 

new_parameter_name
 

The new template parameter name. Do not specify a value to keep the user value defined for the existing parameter. 

new_user_name
 

The new user name that this parameter value is for. Do not specify a value to keep the parameter value assigned to the current user. 

new_parm_value
 

The new parameter value for the specified user parameter. Do not specify a value to keep the current parameter value. 

Exceptions

Table 8-241 ALTER_USER_PARM_VALUE Procedure Exceptions
Exception  Description 
miss_refresh_
template
 

Deployment template name specified is invalid or does not exist. 

miss_template_parm
 

Template parameter specified is invalid or does not exist. 

miss_user
 

User name specified for the user_name or new_user_name parameters is invalid or does not exist. 

miss_user_parm_
values
 

User parameter value specified does not exist. 

dupl_user_parm_
values
 

New user parameter specified already exists. 

Usage Notes

Because the ALTER_USER_PARM_VALUE procedure utilizes a CLOB, you must use the DBMS_LOB package when using the ALTER_USER_PARM_VALUE procedure. The following example illustrates how to use the DBMS_LOB package with the ALTER_USER_PARM_VALUE procedure:

DECLARE
   tempstring VARCHAR2(100);
   templob CLOB;
BEGIN
   DBMS_LOB.CREATETEMPORARY(templob, TRUE, DBMS_LOB.SESSION);
   tempstring := 'REGION 20';
   DBMS_LOB.WRITE(templob, length(tempstring), 1, tempstring);
   DBMS_REPCAT_RGT.ALTER_USER_PARM_VALUE(
      refresh_template_name => 'rgt_personnel',
      parameter_name => 'region',
      user_name => 'BOB',
      new_parm_value => templob);
   DBMS_LOB.FREETEMPORARY(templob);
END;
/

Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index