Oracle8i Replication Management API Reference
Release 2 (8.1.6)

A76958-01

Library

Product

Contents

Index

Prev Up Next

Replication Management API Reference, 96 of 179


GENERATE_SNAPSHOT_SUPPORT procedure

This procedure activates triggers and generate packages needed to support the replication of updatable snapshots or procedural replication.You must call this procedure from the snapshot site.


Note:

CREATE_SNAPSHOT_REPOBJECT automatically generates snapshot support for updatable snapshots. 


Syntax

DBMS_REPCAT.GENERATE_SNAPSHOT_SUPPORT (
   sname                    IN VARCHAR2,
   oname                    IN VARCHAR2,
   type                     IN VARCHAR2,
   gen_objs_owner           IN VARCHAR2 := '',
   min_communication        IN BOOLEAN  := TRUE,
   generate_80_compatible   IN BOOLEAN := TRUE);

Parameters

Table 8-172 GENERATE_SNAPSHOT_SUPPORT Procedure Parameters
Parameter  Description 
sname
 

Schema in which the object is located.  

oname
 

The name of the object for which you are generating support. 

type
 

Type of the object. The types supported are SNAPSHOT, PACKAGE, and PACKAGE BODY

gen_objs_owner
 

For objects of type PACKAGE or PACKAGE BODY, the schema in which the generated object should be created. If NULL, the objects are created in SNAME

min_communication
 

If TRUE, then the update trigger sends the new value of a column only if the update statement modifies the column. The update trigger sends the old value of the column only if it is a key column or a column in a modified column group. 

generate_80_
compatible
 

Set to TRUE if any master site is running a version of Oracle Server prior to Oracle8i release 8.1.5. Set to FALSE if replicated environment is a pure Oracle8i release 8.1.5 or greater environment. 

Exceptions

Table 8-173 GENERATE_SNAPSHOT_SUPPORT Procedure Exceptions
Exceptions  Descriptions 
nonsnapshot
 

Invocation site is not a snapshot site. 

missingobject
 

Specified object does not exist as a snapshot in the replicated schema awaiting row/column-level replication information or as a package (body) awaiting wrapper generation. 

typefailure
 

Specified type parameter is not supported. 

missingschema
 

Specified owner of generated objects does not exist. 

missingremoteobject
 

Master object has not yet generated replication support. 

commfailure
 

Master is not accessible. 


Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index