Oracle7 Server Distributed Systems Volume II: Replicated Data

Contents Index Home Previous Next

Adding a Master Site

To add another master site to your replicated environment, call the ADD_MASTER_DATABASE procedure in the DBMS_REPCAT package, as shown in the following example:

DBMS_REPCAT.ADD_MASTER_DATABASE(
    gname                => 'acct', 
    master               => 'acct_ny.ny.com', 
    use_existing_objects => TRUE, 
    copy_rows            => TRUE, 
    comment              => 'master site added by `||user||
                            ' on `||sysdate,
    propagation_mode     => 'asynchronous');

In this example, the ACCT_NY database is added as a new master replication site for the ACCT replicated object group. This site will propagate changes to all other existing sites asynchronously, and all existing sites will asynchronously propagate changes to this site. For information on selecting a propagation mode, refer to [*].

You must call ADD_MASTER_DATABASE at the master definition site. The replication catalog views at the new master site are updated with the information necessary to create the replicated object group. The replicated object group at the new master site is populated asynchronously as described [*].

The replicated objects are created in the replicated object group as described in "Replicating the Object at Each Master Site" [*].

Note: Oracle attempts to create the objects in dependency order. If you have circular dependencies between objects, you may need to precreate and populate these objects at the new master site in order for this procedure to complete successfully.

Note: If a table has a foreign key constraint that references columns in the table, you may need to precreate and populate the table at the new master site.

Additional Information: The parameters for the ADD_MASTER_DATABASE procedure are described in Table 12 - 64, and the exceptions are listed in Table 12 - 65.

Adding a Site to an Existing Replicated Environment

If you are adding a new master site to an existing replicated environment (one in which replication activity has already occurred), you must perform the following steps:

Warning: Do not resume replication activity or do additional DBMS_REPCAT.* administration for the replicated object group until the new master site appears in the RepSite view at the master definition site. Any changes that you make at any site will not be propagated to the new site until it is included in the RepSite view and you may not be able to resynchronize your data.

Adding a Site to an Existing Replicated Environment Using Offline Instantiation

Offline instantiation of a master site allows you to create a new master site while limiting the time required for existing sites in your replicated system to be quiesced. It is primarily useful for those sites with very large databases where the time required to transfer the data through network links to the new site would be prohibitive.

Offline instantiation requires only that your existing master sites be quiesced long enough to do an export of the database objects to tape from the master site being used as the source. You can then unquiesce the sites, transport the tape to the new site, import the export file, then bring the new site online.

The following are the steps necessary to instantiate a new site:

Warning: Do not resume replication activity or do additional DBMS_REPCAT.* administration for the replicated object group until the new master site appears in the RepSite view at the master definition site. Any changes that you make at any site will not be propagated to the new site until it is included in the RepSite view and you may not be able to resynchronize your data.

Notes:


Contents Index Home Previous Next