Creating Q subscriptions for unidirectional replication
With Q Replication, you can set up replication of data from source tables to target tables or manipulate the data at the target using stored procedures by creating Q subscriptions. You must create a Q subscriptions for each source-to-target pair. The target for the Q subscription can be either a DB2® server or a non-DB2 server.
Each Q subscription is a single object that identifies the following information:
- The source table that you want to replicate changes from
- The target table or stored procedure that you want to replicate changes to
- The columns and rows from the source table that you want to be replicated
- The replication queue map, which names the IBM® MQ queues that transport information between the source server and target server
You can create one or multiple Q subscriptions at one time.
Attention: Q subscriptions are separate
objects from publications. Publications do not publish data to the
Q Apply program, but to an application of your choice. Q subscriptions
are for replicating data, and publications are for publishing data.
If you want to replicate changes from a source table and want the
Q Apply program to apply those source changes to a target table or
pass them to a stored procedure for data manipulation, define a Q
subscription, not a publication.