The Capture program on the source system must be running continuously not only to capture changes made to the source database by the Sync Server, but possibly by other applications as well. If the source server is restarted, you must restart the Capture program before attempting to synchronize.
See the DB2 Universal Database Replication Guide and Reference for information on the authorization you need to run the Capture program.
How you start the Capture program depends on the operating system of the source server.
Use the ASNCCP command to start capturing changes to a Windows or UNIX source database.
To start the Capture program on a Windows source server
ASNCCP database_name
where database_name is the name of the source database with which you will synchronize.
If you are restarting the Capture process, issue the following command:
ASNCCP database_name warmnsThe Capture process started by the ASNCCP command runs continuously.
You can also operate the Capture program by using the Windows NT Service Control Manager. The Service Control Manager enables you to automatically start the Capture and Apply programs as services from the NT Control Panel. See the DB2 Universal Database Replication Guide and Reference for information on how to set up the NT service.
To start the Capture program on a UNIX source server
ASNCCP database_namewhere database_name is the name of the source database with which you will synchronize. The command must be issued in a directory for which you have the write privilege.
If you are restarting the Capture process, issue the following command:
ASNCCP database_name warmns
The Capture process started by the ASNCCP command runs continuously.
Use the STRDPRCAP (Start DPR Capture) command to start capturing changes to the AS/400 source database. Because this command processes all replication sources in the register table, make sure that the user running this command has the proper authority.
Specify a value of 5 for the DPRVSN (DataPropagator version) parameter. Do not cold start the Capture program (by issuing a value of NO for the RESTART parameter), because this causes the Sync Server to treat every row in the source database as a changed row, seriously degrading performance.
If your source system is an OS/390 system, you can use JCL to start the Capture program or you can start the program as a system-started task. See the DB2 Universal Database Replication Guide and Reference for more information on how to perform these tasks. Do not use the COLD and CHGONLY parameters for reasons given in Windows and UNIX systems.