This section uses an example to describe the manual load procedure to use when the source table is a CCD table and there is a Capture program at the source site. If there is no Capture program at the source site, you will need to modify the procedure.
In this example:
The following steps describe the manual load procedure:
Issue the following SQL on the server where the SOURCE_TABLE is located:
UPDATE ASN.IBMSNAP_REGISTER SET DISABLE_REFRESH=1 WHERE SOURCE_OWNER = 'source owner' AND SOURCE_TABLE = 'SOURCE_TABLE'
Issue the following SQL on the server where the SOURCE_CCD table is located:
UPDATE ASN.IBMSNAP_REGISTER SET DISABLE_REFRESH=1 WHERE SOURCE_OWNER = 'source owner' AND SOURCE_TABLE = 'SOURCE_CCD'
Issue the following SQL on the control server for the CCD subscription:
UPDATE ASN.IBMSNAP_SUBS_SET SET ACTIVATE = 0 WHERE SET_NAME = 'CCDSUB' AND APPLY_QUAL = 'CCDQUAL'
Issue the following SQL on the control server for the user copy subscription:
UPDATE ASN.IBMSNAP_SUBS_SET ACTIVATE = 0 WHERE SET_NAME = 'UCSUB' AND APPLY_QUAL = 'UCQUAL'
Issue the following SQL on the server where the SOURCE_TABLE is located:
UPDATE ASN.IBMSNAP_PRUNCNTL SET_SYNCHPOINT = x'000000000000000000000', SYNCHTIME = CURRENT TIMESTAMP WHERE SET_NAME = 'CCDSUB' AND APPLY_QUAL = 'CCDQUAL'
Issue the following SQL on the server where the SOURCE_TABLE is located:
SELECT MIN(SYNCHPOINT),SYNCHTIME FROM ASN.IBMSNAP_PRUNCNTL WHERE SET_NAME = 'CCDSUB' AND APPLY_QUAL = 'CCDQUAL'
Make a note of these values since they will be used later (in this example as ccdsynchp and ccdsyncht).
Note: | If you want to bypass the full refresh, you can skip this step. However, source updates committed between the last change processed by the Apply program and the update of ASN.IBMSNAP_PRUNCNTL will not be replicated. |
Issue the following SQL on the server where the SOURCE_CCD is located:
UPDATE ASN.IBMSNAP_REGISTER SET CCD_OLD_SYNCHPOINT = ccdsynchp, SYNCHPOINT = ccdsynchp, SYNCHTIME = ccdsyncht WHERE SOURCE_OWNER = 'source owner' AND SOURCE_TABLE = 'SOURCE_CCD'
Note that ccdsynchp and ccdsyncht are the values from Step 5.
Issue the following SQL on the control server for the CCD subscription:
UPDATE ASN.IBMSNAP_SUBS_SET SET LASTRUN = CURRENT TIMESTAMP LASTSUCCESS = CURRENT TIMESTAMP SYNCHTIME = CURRENT TIMESTAMP SYNCHPOINT = NULL WHERE SET_NAME = 'CCDSUB' AND APPLY_QUAL = 'CCDQUAL'
Issue the following SQL on the server where the SOURCE_CCD is located:
UPDATE ASN.IBMSNAP_PRUNCNTL SET SYNCHPOINT = ccdsynchp, SYNCHTIME = ccdsyncht WHERE SET_NAME = 'UCSUB' AND APPLY_QUAL = 'UCQUAL'
Note that ccdsynchp and ccdsyncht are the values from Step 5.
Issue the following SQL on the control server for the user copy subscription:
UPDATE ASN.IBMSNAP_SUBS_SET SET LASTRUN = ccdsyncht, LASTSUCCESS = ccdsyncht SYNCHTIME = ccdsynchp WHERE SET_NAME = 'UCSUB' AND APPLY_QUAL = 'UCQUAL'
Issue the following SQL on the control server for the CCD subscription:
UPDATE ASN.IBMSNAP_SUBS_SET SET ACTIVATE = 1 WHERE SET_NAME = 'CCDSUB' AND APPLY_QUAL = 'CCDQUAL'
Issue the following SQL on the control server for the user copy subscription:
UPDATE ASN.IBMSNAP_SUBS_SET SET ACTIVATE = 1 WHERE SET_NAME = 'UCSUB' AND APPLY_QUAL = 'UCQUAL'
Note: | Since this example uses two Apply qualifiers, you would need to start an Apply process for each qualifier. |