Help Q Replication and Event Publishing

Replicating load operations at the source table

You can specify that load operations at the source table that use the DB2® LOAD utility are replicated to the target table.

About this task

By default, when the Q Capture program reads a log record that indicates the source table was successfully loaded, it issues a warning message. You can change this default behavior when you create a Q subscription for a source table by specifying that Q Capture replicate some types of load operations at the source table.

When this function is enabled, Q Capture stops and starts the Q subscription for the source table, prompting a load of the target table if one is specified for the Q subscription and based on the load options that were set for the Q subscription.

When Q Capture detects the following DB2 operations, its subsequent actions are based on whether you enabled replication of source table loads:

z/OS®
  • LOAD SHRLEVEL NONE RESUME YES
  • LOAD SHRLEVEL NONE REPLACE
  • REORG TABLESPACE DISCARD
Linux, UNIX, Windows
  • LOAD REPLACE
  • LOAD INSERT
The following options for replication of source table loads are stored in the CAPTURE_LOAD column of the IBMQREP_SUBS table:
R (restart)
The Q subscription is restarted and the target table is loaded with the data from the source table. The type of load is determined by the LOAD_TYPE value in the IBMQREP_TARGETS control table.
W (warning)
Only a warning message is issued. The Q subscription is not restarted.

Restrictions

Procedure

To replicate load operations at the source table, use one of the following methods:
Method Description
ASNCLP command-line program In the CREATE QSUB command, specify the CAPTURE_LOAD keyword with the R option, as in the following example:
CREATE QSUB USING REPLQMAP SAMPLE_ASN_TO_TARGET_ASN
(SUBNAME EMPLOYEE0001 EMPLOYEE OPTIONS HAS LOAD PHASE I
CAPTURE_LOAD R TARGET NAME TGTEMPLOYEE LOAD TYPE 2);
Replication Center Select the Reload the target table if the source table is reloaded checkbox on the Loading the Target Tables page of the Create Q Subscriptions wizard. The same control can also be found on the Load tab of the Q Subscription Properties notebook.


Send your feedback | Information roadmap | The Q+SQL Replication Forum

Update icon Last updated: 2013-10-25