Migrating Replication Agent when UDB is upgraded from version 8.2 or 9.1 to version 9.5

This section describes how to migrate Replication Agent from version 15.0 or later to the current version while upgrading UDB from version 8.2 or 9.1 to version 9.5.

StepsMigrating Replication Agent when upgrading UDB

  1. To prevent any loss of replicated data, deny further access to users (other than the previously existing Replication Agent pds_username user) to the primary UDB database.

  2. Log in to the Replication Agent 15.5 instance, verify that it is in Replicating state, and allow replication to finish. To verify that replication has completed:

    1. Periodically issue the ra_statistics command, watching until all of the following statistics are zero (0):

      • Input queue size

      • Output queue size

    2. When all of these values are zero, note the Last QID Sent from the last set of statistics.

    3. Issue the ra_locator update command so that Replication Agent retrieves the truncation point from Replication Server.

    4. Wait, then issue the ra_locator command again and compare the displayed locator with that of the Last QID Sent. If they are different, wait and repeat this step.

    5. Quiesce the Replication Agent instance by issuing the quiesce command.

    6. Shut down the Replication instance by issuing the shutdown command.

  3. Follow the steps in the UDB documentation for upgrading UDB.

  4. Verify that all the primary database requirements are met as described in “UDB Requirements” on page 110.

    NoteIf the use_rssd configuration parameter was set to true before migration, skip the following step.

  5. Start the Replication Agent instance, and set the use_rssd configuration parameter to true:

    ra_config use_rssd, true
    

    Replication Agent for UDB uses this configuration to connect to the RSSD and to reset the locator to zero.

  6. Migrate the Replication Agent metadata by issuing the ra_migrate command.

    NoteIf the use_rssd configuration parameter was set to true before migration, skip the following step.

  7. In the Replication Agent 15.5 instance, resume replication by issuing the resume command.

  8. Allow all users to access the primary UDB database.

NoteIf you are upgrading Replication Agent and upgrading UDB from version 8.2 or 9.1 to version 9.5 at the same time, you need to migrate Replication Agent only once.