DB2 Replication Guide and Reference
To control the performance of the Capture program, you can specify the
following tuning parameters in the ASN.IBMSNAP_CCPPARMS tuning
parameters table:
- Retention limit
- The number of minutes to keep the change data (CD) table rows and the
unit-of-work (UOW) table rows. The default value is 10,800, which is 7
days. The rows are deleted up to where the changes have been
applied.
- Lag limit
- The number of minutes the Capture program can be backlogged from the
current local time before shutting itself down. The default value is
10,800, which is 7 days. This value is higher for a busy system;
therefore, a lower lag limit shuts down the Capture program. If the
Capture program shuts itself down, you should perform a cold start if the
database log has been archived and the log has wrapped around.
- Commit interval
- The number of seconds to wait before issuing a COMMIT statement.
The default value is 30 seconds. Set the interval smaller than the DB2
timeout interval if the Capture and Apply programs are running at the same
time. If the Apply program is not running at the same time as Capture
program, you can set the commit interval no higher than the DB2 timeout interval.
- Prune interval
- The number of seconds to wait before pruning the staging tables.
The default value is ten times the commit value or 300 seconds, whichever is
larger. This parameter is ignored if you start Capture program with the
NOPRUNE option; however, you can override this option with the PRUNE
command.
To specify the tuning parameters, do one of the following
tasks:
- Modify DPCNTL.* in the Control Center /sqllib/samples/repl
directory before you define the first replication source for a
database.
- Update the table with the following SQL statement after you create the
tuning parameters table:
UPDATE TABLE ASN.IBMSNAP_CCPPARMS
SET RETENTION_LIMIT=number_of_minutes,
LAG_LIMIT=number_of_minutes,
COMMIT_INTERVAL=number_of_seconds,
PRUNE_INTERVAL=number_of_seconds
If you need to change the values and refresh the tuning parameters while
the Capture program is running, enter the REINIT command after changing the
table values.
For information on the structure of the tuning parameters table, see Chapter 19. Table Structures.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
[ DB2 List of Books |
Search the DB2 Books ]