Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Understanding Data Replication
  4. Sources - Preparation and Replication Considerations
  5. Targets - Preparation and Replication Considerations
  6. Starting the Server Manager
  7. Getting Started with the Data Replication Console
  8. Defining and Managing Server Manager Main Servers and Subservers
  9. Creating and Managing User Accounts
  10. Creating and Managing Connections
  11. Creating Replication Configurations
  12. Materializing Targets with InitialSync
  13. Scheduling and Running Replication Tasks
  14. Implementing Advanced Replication Topologies
  15. Monitoring Data Replication
  16. Managing Replication Configurations
  17. Handling Replication Environment Changes and Failures
  18. Troubleshooting
  19. Data Replication Files and Subdirectories
  20. Data Replication Runtime Parameters
  21. Command Line Parameters for Data Replication Components
  22. Updating Configurations in the Replication Configuration CLI
  23. DDL Statements for Manually Creating Recovery Tables
  24. Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Glossary

DBSYNC_SYNC_LSN Table

DBSYNC_SYNC_LSN Table

For DB2 for Linux, UNIX, and Windows sources, Data Replication uses a service table, which has the default name of DBSYNC_SYNC_LSN, to determine the Sync Point (LSN) value and the current LSN value at the time the Data Replication Console retrieves metadata for the configuration.
For DB2 for Linux, UNIX, and Windows sources, the Sync Point value is an LSN.
To determine the Sync Point values, Data Replication uses the records that InitialSync adds to the service table for each synchronized table. The Extractor writes the Sync Point value to the configuration for each synchronized table.
To determine the current LSN value, Data Replication uses the records that the Data Replication Console adds to the service table when refreshing schema and table metadata. When you run the Extractor later, it uses these records to determine the point in the transaction log from which to start processing DDL changes.
After you save a replication configuration, Data Replication deletes the records for the configuration that have an older session ID. Thereafter, the DBSYNC_SYNC_LSN table contains records for the latest session ID.
The following table describes the columns in the DBSYNC_SYNC_LSN table:
Column
Description
IDNTT
An incremental numeric identifier for the record.
CONFIG_NAME
A replication configuration name.
SCHEMA_NAME
A source schema name.
TABLE_NAME
A source table name.
APP_TYPE
The record type. Valid values are:
  • S
    . Indicates a schema LSN record. The Data Replication Console inserts a record of this type when getting metadata for the specified source schema.
  • T
    . Indicates a table LSN record. The Data Replication Console inserts a record of this type when getting metadata for the specified table.
  • F
    . Indicates a final LSN record. The Data Replication Console inserts a record of this type after saving the specified configuration.
  • I
    . Indicates the Sync Point (LSN) record that InitialSync adds after synchronizing the target table with the source table.
USER_ID
A unique user ID for the Data Replication user who opened, created, refreshed, or saved the specified replication configuration.
SESSION_ID
A unique identifier for the session. A session begins when you create, open, or refresh a configuration. A session ends when you save the configuration.

0 COMMENTS

We’d like to hear from you!