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

Updating Source and Target Metadata for a Configuration in Non-interactive Mode

Updating Source and Target Metadata for a Configuration in
Non-interactive
Mode

To update source and target metadata for a configuration in non-interactive mode, enter the Replication Configuration CLI script at the prompt with the path to the XML configuration file as the first parameter. You can also include parameters that specify the recovery table name for the target and the auxiliary table name for a DB2 source.
  1. In the
    DataReplication_installation
    /uiconf/default.cfg file, set the
    use_default_values_during_saving
    parameter to true.
    If the default.cfg file does not exist, use a text editor to create the file in the uiconf directory and then add the parameter in the file. For more information, see Default.cfg File.
  2. From the command line, run the Replication Configuration CLI script with the path to the configuration as the first positional parameter.
    • On Windows, use the following syntax:
      idr_cmd_line.cmd
      path_to_configuration
      [recovery=
      schema.recovery_table
      ] [service=
      schema.auxiliary_table
      ]
    • On Linux and UNIX, use the following syntax:
      idr_cmd_line.sh
      path_to_configuration
      [recovery=
      schema.recovery_table
      ] [service=
      schema.auxiliary_table
      ]
    Include the optional
    recovery
    and
    service
    parameters if you did not create the recovery table or auxiliary table for the configuration earlier or if you want to override the one that you previously created.
    • The
      recovery
      parameter specifies a recovery table on the target.
    • The
      service
      parameter specifies an auxiliary table on a DB2 source.
    In the
    recovery
    and
    service
    parameters, the schema and table names are case-sensitive.
    The Replication Configuration CLI retrieves the source and target metadata and uses it to update the specified configuration.
    If the target tables that you mapped in the configuration do not have primary keys, the Replication Configuration CLI, by default, creates a virtual index for these tables and includes all table columns in the index. Alternatively, you can set the
    pk_warning_option
    parameter in the
    DataReplication_installation
    /uiconf/default.cfg file to 2 to disable replication of Update and Delete operations. With this parameter setting, Data Replication replicates only Insert operations.
    If the default.cfg file does not exist, use a text editor to create the file in the uiconf directory and then add the
    pk_warning_option
    parameter in the file.

0 COMMENTS

We’d like to hear from you!