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

Using Views to Generate Audit Log Tables and Replicate Data to Teradata Targets

Using Views to Generate Audit Log Tables and Replicate Data to Teradata Targets

If you use Merge Apply mode with Teradata targets and have source tables with long column names, the Data Replication Console enables you to create views with shorter column names. You can then use the views to generate the audit log tables and to create mappings.
First generate a target table that has the same column names as the source tables. For the generated target table, create a view that includes the columns that correspond to the source columns but that have truncated column names. Generate the audit log table based on the view. Then map the source table to the corresponding view. You must perform all of these tasks in a single Data Replication Console session.
For example, a source table contains the TOTAL_NUMBER_OF_MEDICAL_CLAMPS column. You generate a target table with a column of the same name. You create a view for the target table that includes the column with the truncated name of TOTAL_NUMBER_OF_MEDICAL_C1. You generate an audit log table based on the view. The audit log table includes the TOTAL_NUMBER_OF_MEDICAL_C1_OLD and TOTAL_NUMBER_OF_MEDICAL_C1_NEW columns.
  1. Generate the target table for the source table that has the long column names.
  2. On the
    Map Tables
    view, right-click the target table and click
    Create View
    .
  3. Enter a name for the view and click
    OK
    .
    The view appears in the list of target tables.
  4. Generate an audit log table based on the view.
  5. Map the source table to the view.
  6. Save the configuration.

0 COMMENTS

We’d like to hear from you!