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. Appendix A: Troubleshooting
  19. Appendix B: Data Replication Files and Subdirectories
  20. Appendix C: Data Replication Runtime Parameters
  21. Appendix D: Command Line Parameters for Data Replication Components
  22. Appendix E: Updating Configurations in the Replication Configuration CLI
  23. Appendix F: DDL Statements for Manually Creating Recovery Tables
  24. Appendix G: Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Appendix H: Glossary

Generated Virtual Indexes

Generated Virtual Indexes

Data Replication requires DB2, Microsoft SQL Server, and Oracle source databases to log additional information in expanded log records to replicate Updates, resolve conflicts, and filter replicated rows. When you save a configuration, the Data Replication Console creates virtual indexes for the primary key definition, conflict resolution rules, and filtering conditions.
Data Replication does not generate or use virtual indexes, conflict resolution rules, and filtering conditions for MySQL sources.
To record generated virtual indexes, Data Replication enables the logging of additional information for a source in the following ways:
  • For DB2 sources, Data Replication uses the DATA CAPTURE CHANGES option for all of the mapped source tables. This option causes DB2 to log full row images.
  • For Microsoft SQL Server sources, Data Replication enables Change Data Capture for all of the mapped source tables.
  • For Oracle sources, Data Replication enables supplemental logging for virtual index columns.
The Data Replication Console also enables additional logging for the virtual index columns or for the entire table, as appropriate for the source database. Data Replication generates index names based on the following criteria:
  • For a primary key definition that is based on a database primary key, the Data Replication Console names the index by the database constraint name.
  • For a primary key definition that includes all of the table columns, the index name consists of the table name followed by the _PK suffix.
  • For conflict resolution rules, the index name consists of the table name followed by the _Conflict_Resolution suffix.
  • For filtering conditions that you define on the
    Map Columns
    tab, the index name consists of the table name followed by the _WHERE suffix.
  • For filtering conditions that you define on the
    Routing
    tab, the index name consists of the table name followed by the _FILTER suffix.
The following datatypes are not supported for additional logging because full before and after images are not available for them:
  • For DB2 sources, BLOB, CLOB, DBCLOB, LOB, LONG VARCHAR, and LONG VARGRAPHIC datatypes
  • For Microsoft SQL Server sources, IMAGE, NTEXT, NVARCHAR(-1), TEXT, XML, VARBINARY(-1), and VARCHAR(-1) datatypes
  • For Oracle sources, BLOB, CLOB, LONG, LONG RAW, NCLOB, and RAW datatypes
Because these datatypes cannot be a part of a virtual index, you cannot use them to define a custom virtual index, a filtering condition, and conflict resolution rules.

0 COMMENTS

We’d like to hear from you!