resynchronizing with WebSphere MQ" /> A DB2 data-sharing group fails

 

A DB2 data-sharing group fails

If an entire DB2 data-sharing group fails, recovery might be to the time of failure, or to a previous point in time.

In the case of recovery to the point of failure, WebSphere MQ reconnects when DB2 has been recovered, the resynchronization process takes places and normal queue manager function is resumed.

However, if DB2 is recovered to a previous point in time, there might be inconsistencies between the actual queues in the Coupling Facility structures and the DB2 view of those queues. For example, at the point in time DB2 is recovered to, a queue existed that has since been deleted and its location in the Coupling Facility structure reused by the definition of a new queue that now contains messages.

If you find yourself in this sort of situation, stop all the queue managers in the queue-sharing group, clear out the Coupling Facility structures, and restart the queue managers. You must then use WebSphere MQ commands to define any missing objects. To do this, use the following procedure:

  1. Prevent WebSphere MQ from reconnecting to DB2 by starting DB2 in utility mode, or by altering security profiles.

  2. If you have any important messages on shared queues, you might be able to off-load them using the COPY function of the CSQUTIL utility program, but this might not work.

  3. Terminate all queue managers.

  4. Use the following z/OS command to clear all structures:

    SETXCF FORCE,STRUCTURE,STRNAME=

  5. Restore DB2 to a historical point in time.

  6. Reestablish queue manager access to DB2.

  7. Restart the queue managers.

  8. Recover the WebSphere MQ definitions from backup copies.

  9. Reload any off-loaded messages to the shared queues.

When the queue managers restart, they attempt to resynchronize local COPY objects with the DB2 GROUP objects. This might cause WebSphere MQ to attempt to do the following:

The DELETE of COPY objects is attempted with the NOPURGE option, so it fails for queue managers that still have messages on these COPY queues.