Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
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, 3 of 69


ADD_MASTER_DATABASE Procedure

This procedure adds another master site to your replication environment. This procedure regenerates all the triggers and their associated packages at existing master sites. You must call this procedure from the master definition site.

Syntax

DBMS_REPCAT.ADD_MASTER_DATABASE (
   gname                 IN   VARCHAR2,
   master                IN   VARCHAR2, 
   use_existing_objects  IN   BOOLEAN  := true, 
   copy_rows             IN   BOOLEAN  := true,
   comment               IN   VARCHAR2 := '',
   propagation_mode      IN   VARCHAR2 := 'ASYNCHRONOUS',
   fname                 IN   VARCHAR2 := NULL);

Parameters

Table 48-4 ADD_MASTER_DATABASE Procedure Parameters
Parameter  Description 
gname
 

Name of the replication group being replicated. This replication group must already exist at the master definition site.  

master
 

Fully qualified database name of the new master database. 

use_existing_objects
 

Indicate true if you want to reuse any objects of the same type and shape that already exist in the schema at the new master site. 

copy_rows
 

Indicate true if you want the initial contents of a table at the new master site to match the contents of the table at the master definition site. 

comment
 

This comment is added to the MASTER_COMMENT field of the DBA_REPSITES view. 

propagation_mode
 

Method of forwarding changes to and receiving changes from new master database. Accepted values are synchronous and asynchronous

fname
 

This parameter is for internal use only.

Note: Do not set this parameter unless directed to do so by Oracle Support Services. 

Exceptions

Table 48-5 ADD_MASTER_DATABASE Procedure Exceptions
Exception  Description 
nonmasterdef
 

Invocation site is not the master definition site. 

notquiesced
 

Replication has not been suspended for the master group. 

missingrepgroup
 

Replication group does not exist at the specified database site. 

commfailure
 

New master is not accessible. 

typefailure
 

An incorrect propagation mode was specified. 

notcompat
 

Compatibility mode must be 7.3.0.0 or greater. 

duplrepgrp
 

Master site already exists. 


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