Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Installing Data Replication
  4. Preparing Source and Target Systems
  5. Replication Basic Concepts
  6. InitialSync Processing
  7. Extractor and Applier Processing
  8. DDL Replication
  9. Recovery and Checkpoint Processing
  10. Configuring the Server Manager
  11. Creating Replication Configurations in the Data Replication Console
  12. Managing Replication Configurations
  13. Running Data Replications
  14. Configuring Selected Replication Types
  15. Monitoring Data Replication
  16. Maintaining the Replication Environment
  17. Troubleshooting
  18. Data Replication Files and Subdirectories
  19. Data Replication Runtime Parameters
  20. InitialSync, Extractor, and Applier Command Line Parameters
  21. Server Manager Command Line Parameters
  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

AFTER_APPLY XML Data Structure

AFTER_APPLY XML Data Structure

The Applier stores the results of the current apply cycle in the AFTER_APPLY XML data structure in memory. Data Replication can use this information to generate post-apply SQL statements for the target database.
The following example XML defines the in-memory AFTER_APPLY XML data structure:
<?xml version="1.0" encoding="UTF-8"?> <AFTER_APPLY> <ConfigFile name="config_post_apply.xml"/> <Cycle cycle_id="15"/> <Mapping src_schema="src_db1" src_table="TAB2" dest_schema="tgt_db1" dest_table="TAB2" type="MergeApply" inserts="10" updates="0" deletes="0" /> <Mapping src_schema="src_db1" src_table="TAB1" dest_schema="tgt_db1" dest_table="TAB1" type="MergeApply" inserts="9" updates="0" deletes="0" /> </AFTER_APPLY>
The following table describes the attributes of the in-memory AFTER_APPLY XML data structure, which you can use in XSL transformation scripts:
Element
Attribute
Description
ConfigFile
name
The name of the XML configuration file.
Cycle
cycle_id
An incremental numeric identifier for the apply cycle.
Mapping
src_schema
The source schema name.
Mapping
src_table
The source table name.
Mapping
dest_schema
The target schema name.
Mapping
dest_table
The target table name.
Mapping
type
The type of mapping between the source and target tables that are specified in the
src_table
and
dest_table
attributes. This attribute can have one of the following values:
  • Normal
    for SQL Apply
  • AuditLog
    for Audit Apply
  • MergeApply
    for Merge Apply
Mapping
inserts
The number of Insert operations on the source table that the Applier processed during the current apply cycle.
Mapping
updates
The number of Update operations on the source table that the Applier processed during the current apply cycle.
Mapping
deletes
The number of Delete operations on the source table that the Applier processed during the current apply cycle.

0 COMMENTS

We’d like to hear from you!