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

Filtering Column Data

Filtering Column Data

To filter source data for a replication job, you can define filter conditions for one or more source columns. The Data Replication Console then generates a table WHERE clause based on those conditions. The Extractor uses the WHERE clauses to filter the source data from redo logs for replication.
  1. On the
    Map Columns
    tab, select a column for which to create a filter from the source columns list.
  2. Click the
    Set WHERE Clause
    icon button above the source columns box, or right-click a source column row and click
    Set WHERE Clause
    .
    The
    Filtering Condition for the Column 'table.column_name'
    dialog box appears.
    Filtering Condition for the Column 'table.column_name' dialog box
  3. In the
    Operator
    field, select one of the following comparison operators: =, <>, <, >, >=, <=, IS NULL, IS NOT NULL, LIKE, BETWEEN, or NOT BETWEEN.
    The operators that are available depend on the column datatype.
  4. In the
    Value
    field, enter a value to use with the operator.
  5. Select the
    OR
    check box to add another condition for the current column.
    With the OR connector, at least one of the conditions must be true to filter the data for the column.
    If you clear the
    OR
    check box, the Data Replication Console removes any conditions that follow the first one.
  6. Click
    OK
    .
    To enable supplemental logging for a condition column, the Data Replication Console creates a virtual index for the table, if a virtual index that includes the condition column does not already exist. To name the index, the Data Replication Console uses the table name followed by the _WHERE suffix.
  7. To verify the resulting WHERE filter for the column, click the
    Map Columns
    tab >
    Show Filter
    button.
    To remove the WHERE filter, click
    Reset Filter
    .
  8. Repeat steps 1 through 7 to add filter conditions for other columns.
    Filter conditions for all of the columns must be met to filter data.
The Extractor extracts the records that match the filtering conditions that you defined from the
Map Columns
tab. If you add filters to the configuration after the Extractor processes the database logs, Data Replication does not apply these filters to the replicated data.

0 COMMENTS

We’d like to hear from you!