Configuring Replication Using Visual DBA

This chapter explains how to configure Ingres Replicator to conform to your replication scheme using Visual DBA, including how to do the following:

You will need to refer to the completed worksheets from the chapter "Planning Your Replication Scheme."

This chapter also explains the role of the distributed DBA for Ingres Replicator and provides a summary and description of configuration tasks.

Previous Topic

Next Topic

How You Configure Replicator Using VDBA

To configure Ingres Replicator, you should perform each of the following configuration procedures in the order shown. Perform these procedures on test tables first, before you register production tables for replication.

  1. Install replication objects on full peer and protected read-only targets.

    For details, see Installing Replicator Objects in VDBA online help.

  2. Define the local database.

    For details, see Installing Replicator Objects in VDBA online help.

  3. Define other replicated databases.

    For details, see Adding Replication Databases in VDBA online help.

  4. Create CDDS definitions.

    For details, see Creating a CDDS in VDBA online help.

  5. Enter your propagation paths.

    For details, see Creating a CDDS in VDBA online help.

  6. Select and register tables.

    For details, see Creating a CDDS in VDBA online help.

  7. Create support objects for your registered tables.

    For details, see Creating a CDDS in VDBA online help.

  8. Create replicated transaction keys, if necessary.

    For details, see Creating Replication Keys in VDBA online help.

  9. Move your configuration to other full peer and protected read-only targets.

    For details, see Propagating Configuration Information in VDBA online help.

  10. Activate change recording for any or all CDDSs and databases.

    For details, see Creating a CDDS or Activating Replication in VDBA online help.

  11. (Optional) Set up an e-mail list on every installation for message notification.

    For details, see Defining Error Mail Destinations in VDBA online help.

  12. Configure the servers to the settings best suited to your replication system.

    For more information, see the chapter "Using Replicator Server."

Previous Topic

Next Topic

Installation of Replication Objects

You must install replication objects on the database where you are defining the replication scheme. You do not need to install replication objects on databases with only Unprotected Read-only CDDSs. Replication objects must be installed before you can move the Ingres Replicator configuration from a configuration database to the other participating databases.

When you move configuration information (in the replication scheme definitions step), you are prompted automatically to install replication objects on the appropriate databases.

You install replication objects by choosing the Install Replication Objects command from the Operations menu. For more information, see the online help topic Installing Replicator Objects.

Previous Topic

Next Topic

Replication Branch in DOM Window

After installing replication objects, sub-branches appear under the Replication object category branch in the Database Object Manager (DOM), as shown in the following example. (Your release of Ingres Replicator appears on the Replication object category branch when it is expanded.)

Viewing Replicator Objects

Previous Topic

Next Topic

How You Work with Replication Databases

When you expand the Databases branch, all databases that Ingres Replicator recognizes are displayed. The local database information that you entered in the Installation Local DB Information dialog appears in the expanded branch.

You must add all other databases that belong in your replication scheme to the list. Your completed Database Worksheet must contain all the information you need to enter.

In the Replication branch of the Database Object Manager window, you can use the Databases branch to:

Detailed steps for performing these procedures can be found in the following Visual DBA online help topics:

Previous Topic

Next Topic

How You Create a CDDS

You create a CDDS by performing the following procedures on the CDDS Definition dialog:

  1. Specify collision and error modes.

    You can specify collision and error modes for each CDDS. For details, see the online help topic CDDS Definition dialog.

  2. Add or drop propagation paths for a CDDS.

    For more information, see the online help topic Choosing Propagation Paths. See also Replication Scheme Examples.

  3. Specify the databases in the CDDS and assign their target types and server numbers.
  4. Register tables for replication; create Ingres Replicator support objects; turn on the Change Recorder; and specify lookup and priority lookup tables associated with a base table.
  5. Choose columns in each table that are to be replicated.

The information for defining your CDDSs is contained on the CDDS Worksheet, an example of which is in Replication Scheme Examples.

Previous Topic

Next Topic

CDDS Definition Dialog

The CDDS Definition dialog lets you define a CDDS.

This dialog has the following items:

Previous Topic

Next Topic

View Table Registration Information

You can view table registration information for the tables assigned to a particular CDDS.

To view table registration information

See the Tables group box in the CDDS Definition dialog.

For more information, see the online help topic Registered Tables page, Replicator CDDS branch.

Previous Topic

Next Topic

Creation of Replication Keys

The Create Keys option creates the replicated transaction keys for every row in the base table and populates the shadow table and the input queue. You must use Create Keys if you install Ingres Replicator on an existing database that contains data. If you install Ingres Replicator on empty databases, replicated transaction keys are created and the shadow table is populated automatically when you insert data. For more information, see the online help topic Creating Replication Keys.

How you use Create Keys varies depending on the contents of your databases.

There are two options when using Create Keys:

You create replicated transaction keys for tables by choosing Create Keys from the Operations menu. For more information, see the online help topic Creating Replication Keys. For information about using Create Keys options, see the online help topic Creating Replicated Transaction Keys dialog.

Previous Topic

Next Topic

How Configuration Information Is Propagated

Once you have completed the configuration tasks for the replicated database, you can move the configuration information to your target databases (Full Peer and Protected Read-only databases). The propagation procedure ensures that the replication scheme is defined identically in each database of the scheme.

You can propagate configurations by choosing the Propagate command from the Operations menu. For more information, see the online help topic Propagating Configuration Information.

Note: If you make any changes to the configuration once you have Ingres Replicator set up and running, you must copy the changes to the target databases. In general, you must not change the collision or error mode for a CDDS on just one of the databases that participate in a CDDS.

The propagating configuration procedure completes the following tasks on the databases it is run against:

The propagating configuration procedure does not perform any of the following tasks on remote databases:

Previous Topic

Next Topic

How Replication Is Activated

You can activate replication (change recording) for all full peer databases of the CDDS, or you can activate replication at the table level, by choosing the Activate Replication command from the Operations menu. For more information, see the online help topic Activating Replication.

When you activate a table, the DBMS enables change recording for that table. Once activated, any changes to a table are collected by the DBMS and placed on the input queue for distribution.

Previous Topic

Next Topic

How You Deactivate Replication

You can deactivate change recording for a selected CDDS by choosing the Deactivate Replication command from the Operations menu. For more information, see the online help topic Deactivating Replication.

Previous Topic

Next Topic

Error Mail Destinations

The Replicator servers can be configured to send mail on certain error conditions. You can define the list of users who receives this mail.

To create individual error mail destination lists, you must define error mail destinations on every installation by expanding the Replication branch and selecting the Mail Alert Users branch. For more information, see the online help topic Defining Error Mail Destinations.


© 2007 Ingres Corporation. All rights reserved.