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

Generating Audit Log Tables Based on Target Table Schema

For all target types for which Data Replication supports Merge Apply mode, including Greenplum, Netezza, Oracle, Teradata
, and Vertica
, you can generate audit log tables based on the schema of existing target tables. Also, InitialSync uses audit log tables to process SQL expressions that are defined for source tables in configurations that use SQL Apply mode and have Microsoft SQL Server or MemSQL targets, in certain load scenarios.
Before you begin, open the configuration and connect to the source and target databases.
  1. Click
    Schema
    Generate Schema for the Target
    on the menu bar, or click the
    Generate Schema for the Target
    icon button on the Replication Configurations toolbar.
    The
    Generating Schema for the Target
    dialog box appears.
  2. Under
    Source/Target
    , select the
    Target
    option.
  3. In the
    Schema/owner
    field, enter the schema or owner name of the target tables that you want to use to generate the audit log tables.
    Tables that match the selected schema or owner name are listed in the
    Tables
    box.
    At any time, you can click
    Refresh
    to refresh the schemas for the source and target databases.
  4. To filter the list of tables, in the
    Table filter
    field, enter the first few letters of the target table names that you want to use for generating the audit log tables. For case-sensitive filtering, enclose the filter value in double quotation marks (").
    Only the tables that match the filter criteria display in the
    Tables
    box.
  5. Select the tables to use for generating the target audit log tables.
    • To select all listed tables, click
      Select All
      .
    • To select tables individually, select the
      Convert
      check box in the table row.
  6. Under
    Target
    , in the
    Schema
    field, enter a schema or owner name.
  7. In the
    Database type
    list, select the target database type.
  8. To generate audit log tables, select the
    Generate audit log tables
    check box. In the adjacent
    Audit tables suffix
    field, enter a suffix for the generated audit log table names.
    • For SQL Apply and Merge Apply, specify the suffix that is specified for the
      Log table suffix for merge apply
      field on the
      Runtime Settings
      tab >
      Calculated Columns
      view.
    • For Audit Apply, you can specify any alphanumeric string as the suffix. However, to use the
      Map All
      or
      Wildcard map
      button to quickly map all of the audit log tables to the corresponding source tables, you must enter the suffix that is specified for the
      Log table suffix for merge apply
      field on the
      Runtime Settings
      tab >
      Calculated Columns
      view.
    The default suffix is _LOG.
  9. To create the audit log tables, perform one of the following actions:
    • To generate a script with SQL CREATE TABLE statements, click
      Save
      . In the
      Save
      dialog box, save the generated script to a directory of your choice. You can run the script later, if necessary.
    • To create the audit log tables on the target immediately, click
      Run
      .
      If you cancel the Run operation while it is in process, Data Replication does not cancel any tables that were already created on the target. You can find the SQL CREATE TABLE statements for these tables in the %DBSYNC_HOME%/logs/ui/se.log file.
  10. Click
    Close
    .

0 COMMENTS

We’d like to hear from you!