IBM Support

Database Replication - Recreating Publications and Subscriptions in IBM i2 iBase

Question & Answer


Question

This section describes how to recreate publications and subscriptions in a system where the iBase database was previously enabled for replication and the previous publications and subscriptions have been dropped.

Answer


Recreating publications
Creating publications for the database that contains the entity and link data is the same regardless of whether the database was previously enabled for replication or not. For detailed information, see Publishing Entity and Link Data.

How to recreate a subscription
When recreating subscriptions, you should not need to generate a snapshot containing the data and schema because the databases should already have all the data. The iBase administrator should have denied database access to all users until replication is reconfigured. The databases will have the complete database schema— if there were any schema changes, the iBase administrators will have applied the changes by using the appropriate iBase utility.

Start a new subscription, either a push or a named pull subscription. The subscription should be as follows:

Select

PublicationThe publication containing the iBase entity and link data at the Publisher.
Subscription databaseThe existing subscription database at the Subscriber which already contains iBase entity and link data.

Select the following options for the subscription:
  • The Subscriber has the schema and data.
  • The Merge Agent should continuously check for updates.
  • Use the Publisher as a proxy for conflict detection (described as First to Publisher Wins).
  • The subscription is a client subscription type.

After recreating the subscription

After recreating the subscription:
  1. Test that replication is working for this subscription. For example, by changing a value in one of the user-defined tables (table names for user-defined tables always end with an underscore).
  2. Set the Merge Agent to run at a one-second polling interval, or at the desired frequency.
  3. Validate the subscription(s) to check that there are no discrepancies between the data at the Publisher and Subscriber(s). For example, use the Validate All Subscriptions dialog, selecting the option to use both the checksum and rowcount validation methods. See the Microsoft SQL Server documentation for further information.
  4. Back up the database(s). See:
    • The Administration Center document Creating and Maintaining Databases, for information on backing up iBase connection files
    • Microsoft SQL Server documentation for information on backing up the replicated SQL Server databases
  5. Tell the iBase administrator(s) that replication is reconfigured at the Subscriber(s).

[{"Product":{"code":"SSXW43","label":"i2 iBase"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.9.5;8.9.1;8.9;8.9.11","Edition":"All Editions","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21968940