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

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!