Oracle9i Replication Management API Reference
Release 1 (9.0.1)

Part Number A87502-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_REPCAT_RGT, 6 of 33


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 materialized view environment uses assignment tables. Change a user parameter value to quickly and securely change the data set of a remote materialized view site.

See Also:

Oracle9i 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 23-10 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 23-11 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;
/


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