Oracle8i Replication Management API Reference
Release 2 (8.1.6)

A76958-01

Library

Product

Contents

Index

Prev Up Next

Replication Management API Reference, 132 of 179


COMPARE_TEMPLATES function

This function allows a DBA to compare the contents of two deployment templates. Any discrepancies between the two deployment templates is stored in the USER_REPCAT_TEMP_OUTPUT table.

The COMPARE_TEMPLATES function returns a number that you specify in the WHERE clause when querying the USER_REPCAT_TEMP_OUTPUT table. For example, if the COMPARE_TEMPLATES procedure returns the number 10, you would execute the following SELECT statement to view all discrepancies between two specified templates (your SELECT statement returns no rows if the templates are identical):

SELECT text FROM user_repcat_temp_output
   WHERE output_id =  10 ORDER BY LINE;

The contents of the USER_REPCAT_TEMP_OUTPUT are lost after you disconnect or a ROLLBACK has been performed.

Syntax

DBMS_REPCAT_RGT.COMPARE_TEMPLATES (
   source_template_name    IN   VARCHAR2,
   compare_template_name   IN   VARCHAR2)
  return NUMBER;

Parameters

Table 8-242 COMPARE_TEMPLATES Function Parameters
Parameter  Description 
source_template_name
 

Name of the first deployment template to be compared. 

compare_template_
name
 

Name of the second deployment template to be compared. 

Exceptions

Table 8-243 COMPARE_TEMPLATES Function Exceptions
Exception  Description 
miss_refresh_
template
 

The deployment template name to be compared is invalid or does not exist. 

Returns

Table 8-244 COMPARE_TEMPLATES Function Returns
Return Value  Description 

<system-generated number

Specifies the number returned for the output_id value when you select from the USER_REPCAT_TEMP_OUTPUT view to view the discrepancies between the compared templates. 


Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index