Module 1: Setting up MQ

In this module, you will create all of the IBM® MQ objects for replication between a source and target. You start by creating the queue managers, which manage communication on the MQ messaging system.

In this tutorial, unidirectional replication uses two queue managers. One queue manager will manage queues and messages for the source database, and the other will manage queues and messages for the target database.

The following figure shows the SRC_QM queue manager at the source and TGT_QM queue manager at the target. The two queue managers interact with the Q Capture and Q Apply programs, queues, and channels to rapidly move data in the form of messages. The figure shows two paths for messages: one for replicated data and communication from the source, and one that the Q Apply program uses to communicate with the Q Capture program. The source-to-target channel is depicted as larger because it carries replicated transactions, which are the bulk of the messaging traffic.

Figure 1. MQ queue managers, queues, and channels
MQ queue managers, queues, and channels

Learning objectives

Each of the lessons in this module show the appropriate sections of this figure to identify the queues and channels that you are creating at each phase of the setup.

After you complete the lessons in this module, you will be able to:

  • Create the source and target queue managers.
  • Start the queue managers.
  • Create the source queues.
  • Create the target queues.
  • Create the MQ channels.
  • Start the MQ channels and listeners.

Time required

This module should take approximately 20 minutes to complete.