The following sample scripts show you how to put together ASNCLP
commands to set up unidirectional, bidirectional, and peer-to-peer Q Replication.
Sample ASNCLP scripts for setting up unidirectional Q Replication
This sample contains two ASNCLP scripts for setting up
a unidirectional Q Replication environment. The first script generates
commands to create WebSphere® MQ
objects. The second script creates Q Capture and Q Apply control tables,
a replication queue map, and a Q subscription.
Sample ASNCLP scripts for setting up bidirectional Q Replication
This sample contains two ASNCLP scripts for setting up
a bidirectional Q Replication environment. The first script generates
commands to create WebSphere MQ
objects at both systems. The second script creates Q Capture and Q
Apply control tables at both servers, replication queue maps in both
directions, and two bidirectional Q subscriptions.
Sample ASNCLP scripts for setting up peer-to-peer Q Replication (two servers)
This sample contains two ASNCLP scripts for setting up
a peer-to-peer Q Replication environment with two servers. The first
script generates commands to create WebSphere MQ objects at both systems. The
second script creates Q Capture and Q Apply control tables at both
servers, replication queue maps in both directions, and two peer-to-peer
Q subscriptions.
Sample ASNCLP scripts for setting up peer-to-peer Q Replication (three servers)
This sample contains two ASNCLP scripts for setting up
peer-to-peer Q Replication with three servers. The first script generates
commands to create WebSphere MQ objects at all three systems. The
second script includes Q Capture and Q Apply control tables at each
of the three servers, replication queue maps in both directions between
each server, and six Q subscriptions between the servers.
Sample ASNCLP script for promoting unidirectional configurations
This sample contains an ASNCLP script for promoting a unidirectional
Q Replication configuration. You can copy an existing Q Replication or event
publishing configuration to another system by promoting that
configuration by using a set of ASNCLP scripts. These commands scan and discover
the Q Replication control table and DB2® catalog table on specified source servers,
and then create replication definitions. You can execute scripts containing
these definitions on any destination server to recreate the replication environment
there.
Sample ASNCLP scripts for promoting peer-to-peer configurations
This sample contains three ASNCLP scripts for promoting
a peer-to-peer Q Replication configuration. You can copy an existing
Q Replication or Event Publishing configuration to another system
by promoting that configuration by using a set of ASNCLP
scripts. These commands scan and discover the Q Replication control
table and DB2 catalog table on the specified source servers,
and then create replication definitions. You can execute scripts containing
these definitions on any destination server to recreate the replication
environment there.