Migrating Replication Agent 15.2 when upgrading UDB 8 to 9

This section describes how to migrate Replication Agent for UDB 15.2 when you upgrade IBM DB2 Universal Database from version 8 to version 9.

StepsMigrating Replication Agent when upgrading UDB 8 to 9

  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.2 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 IBM DB2 Universal Database documentation for upgrading UDB version 8 to version 9.

  4. Verify that all the primary database requirements are met as described in “IBM DB2 Universal Database Requirements”.

    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. After the migration, reset the use_rssd configuration parameter to false:

    ra_config use_rssd, false
    
  8. In the Replication Agent 15.2 instance, resume replication by issuing the resume command.

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

NoteIf you are upgrading Replication Agent and upgrading UDB 8 to UDB 9 at the same time, you need to migrate Replication Agent 15.2 only once.