Previous Topic

Next Topic

Table Registration Summary

The Table Registration Summary window (shown here) appears when you choose the Tables option from the Configuration menu. Once you have registered tables under a CDDS, this screen shows which tables are assigned to a particular CDDS. For more information, see Register Tables.

This window contains a list of all tables in the database and shows their registration, support, and activation status. By default they are assigned to Default CDDS (0). Ingres Replicator can only detect changes from tables that are activated.

For a description of the fields in this window, see online help.

You can perform the following tasks from the Table Registration Summary window:

Previous Topic

Next Topic

Register Tables

You must register all tables that you want to replicate. By default, tables are initially registered as belonging to CDDS 0. Once you have registered them, you can edit their registration information, including the CDDS number. For more information on editing a table's registration, see Table Registration Details Window.

To register a table or all tables

  1. Open the Table Registration Summary window, place the cursor on the table to be registered, and choose Register.

    A new menu line appears.

  2. Choose ThisTable if you want to register the highlighted table, or choose AllTables if you want to register all tables.

    A yes appears in the Reg column of the Table Registration Summary window next to the table or tables you registered.

Note: To be registered, a table must have a unique primary storage structure or a unique secondary index.

Previous Topic

Next Topic

Deregister Tables

When you deregister a table, all support objects are destroyed.

To deregister a table

  1. Open the Table Registration Summary window, move the cursor to the table to be deregistered, and choose Deregister.

    A new menu line appears.

  2. Choose ThisTable if you want to deregister the highlighted table, or choose AllTables if you want to deregister all tables.

    Blanks appear in the Reg, Sup, and Act columns of the Table Registration Summary window next to the table or tables you deregistered.

Previous Topic

Next Topic

Table Registration Details Window

The Table Registration Details window appears (shown here) when you choose the Edit option from the Table Registration Summary window.

Note: If you attempt to edit a table that has not yet been registered, you are prompted to accept the default registration.

From this window you can perform the following tasks:

If you edit table registration information after creating support objects, when you select Save, the following message appears:

There are existing support objects for this table.

Saving this table registration requires that they be dropped. Do you want to do that now?

If you answer yes, the existing objects are dropped and you must recreate them using the Support menu item in the Table Registration Summary window.

For a description of the fields in this window, see online help.

Previous Topic

Next Topic

Deregister a Column From a Register Field

To deregister a column from the Column Registered field

  1. Open the Table Registration Details window, move the cursor to the column to be deregistered, and type n.

    Note: Key columns and mandatory (NOT NULL NOT DEFAULT) columns cannot be deregistered.

    Use the arrow keys to move to other columns to be deregistered.

    Use the Tab key to move to other fields in the window,

  2. Choose Save.

    Your changes are saved and you are returned to the Table Registration Summary window.

Previous Topic

Next Topic

Assign a Table to a Different CDDS

You can move a table from the default CDDS to any other CDDS. We recommend that you assign tables to CDDSs before creating support objects.

To assign a different CDDS to a table

  1. Open the Table Registration Details window and move to the CDDS No (number) field.
  2. Type the number of the CDDS to which the table is assigned, or choose ListChoices to display the list of defined CDDSs.
  3. Edit other fields in the window if necessary, and then choose Save

    Your changes are saved and you are returned to the Table Registration Summary window.

Previous Topic

Next Topic

Assign Lookup Tables

To use horizontal partitioning or priority collision resolution, you must use lookup tables that specify your parameters.

You must create the lookup table before you can assign it to a CDDS. You must create the lookup table individually for each database that needs it. For instructions on creating lookup tables, see Lookup Tables.

To assign a lookup table to a CDDS

  1. Open the Table Registration Details window and move to either the Horizontal Partition Lookup field or the Priority Collision Resolution Lookup field.
  2. Type the name of the lookup table in the appropriate field or choose ListChoices to see a list of tables.
  3. Choose Save.

    Your changes are saved and you are returned to the Table Registration Summary window.

Previous Topic

Next Topic

Create Support Objects

Before you can create Ingres Replicator support objects for a table, you must have registered it. Support objects include Replicator Server database procedures and the shadow and archive tables, all of which are created individually for each table.

Note: To create support objects, the relationship between the CDDS assigned to the table and local database must be defined. In addition, to correctly configure a horizontally partitioned table, the CDDS lookup table must exist and be populated with the required rows.

To create support objects for a table or all tables

  1. Open the Table Registration Summary window, place the cursor on the table where support objects are to be created, and choose Support.

    A new menu line appears.

  2. Choose ThisTable if you want to create support objects for the highlighted table, or choose AllTables if you want to create support objects for all registered tables.

    A yes appears in the Sup column of the Table Registration Summary window next to the table or tables for which you created support objects.

    If the table is assigned to a CDDS that is full peer in the local database, a shadow table, archive table, and remote replication procedures are created. If the table is assigned to a CDDS that is protected read-only in the local database, a shadow table and remote replication procedures are created. If the table is assigned to a CDDS that is unprotected read-only in the local database, no support objects are necessary.

Previous Topic

Next Topic

Activate or Deactivate a Table

You can activate or deactivate individual tables. Activating a table enables change recording, and deactivating a table disables the change recording.

Note: Typically, it is not necessary or advisable to activate or deactivate individual tables. For instructions on activating or deactivating CDDSs, databases, or the entire replication scheme, see Activate Change Recording Window.

To activate or deactivate a table

  1. Place the cursor on the table to be activated or deactivated, and choose Activation.

    The menu line changes to:

    Activate   DeActivate   Cancel

  2. Choose Activate or DeActivate.

    The selected table is activated or deactivated accordingly. A yes appears in the Act column if the table has been activated.

Previous Topic

Next Topic

CreateKeys Options

The CreateKeys option creates replicated transaction keys for every row in the base table and populates the shadow table. It can optionally populate the input queue. You must use CreateKeys 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.

How you use CreateKeys varies depending on the contents of your databases. There are two options when using CreateKeys:

The following table explains when to use which CreateKeys option:

Databases

How To Use CreateKeys

Both are empty

Do not need to use CreateKeys. Because there are no rows of data, no replicated transaction keys can be generated.

One contains data, one is empty

Only use BothQueue&ShadowTable option of CreateKeys if your database is very small. The recommended procedure is to unload the tables with data and reload them into the empty database.

Both contain data and are synchronized

Use the ShadowTableOnly option of CreateKeys. This option populates the shadow tables so that Ingres Replicator does not detect collisions when manipulating rows for the first time.

Both contain data but are not synchronized

If a table to be replicated is rather large, attempt to synchronize the databases through some other means or use the BothQueue&ShadowTable option of CreateKeys. Ingres Replicator populates the shadow tables and sends the rows from the local database to the target database. Nonmatching rows cause collisions, which need to be resolved manually or by using collision resolution. For more information on collision handling, see Collision Design.

Note: If the BothQueue&ShadowTable option of CreateKeys is used, the rows placed in the input queue are not immediately transferred to the distribution queue. To effect the transfer, ensure that all users disconnect from the database. The transfer takes place when you re-connect.

Previous Topic

Next Topic

Create Replicated Transaction Keys

To create the replicated transaction keys for the table

  1. Open the Table Registration Summary window, place the cursor on the table where keys are to be created, and choose CreateKeys.

    The following menu line appears:

    ThisTable     AllTables    End

  2. Choose ThisTable to create replicated transaction keys for the selected table, or choose AllTables to create keys for all registered tables that have support objects.

    The following menu line appears:

    ShadowTableOnly   BothQueue&ShadowTable   Cancel

  3. Choose ShadowTableOnly or BothQueue&ShadowTable.

    The replicated transaction keys are created and placed in the shadow table. The input queue is populated, if appropriate.


© 2007 Ingres Corporation. All rights reserved.