Implementing shadow tables in HADR environments
Implement shadow tables in HADR environments to get the performance benefits of BLU Acceleration for analytic queries in OLTP environments.
Before you begin
- Ensure that you are familiar with the software architecture for shadow tables. For more information, see IBM InfoSphere Change Data Capture software architecture and concepts for shadow tables.
- Ensure that you are familiar with the concepts related to the IBM® InfoSphere Change Data Capture (InfoSphere CDC) software. For more information, see IBM InfoSphere Change Data Capture software architecture and concepts for shadow tables.
- Ensure that you are familiar with the physical design guidelines for shadow tables. For more information, see Physical design for shadow tables.
- Ensure that you are familiar with the topology for shadow tables in HADR environments. For more information, see Shadow tables in HADR environments.
About this task
Shadow tables are implemented as materialized query tables (MQTs) that are maintained by replication. IBM InfoSphere Change Data Capture for Db2® (InfoSphere CDC), a component of IBM InfoSphere Data Replication, maintains shadow tables. To implement shadow tables in your HADR environment, you must set up and configure all software components and replication, create the shadow tables, start replication to populate the shadow tables with data, and enable query routing to shadow tables.
Procedure
To implement shadow tables in HADR environments:
What to do next
Verify that your setup for shadow tables and InfoSphere CDC in an HADR environment is functional and that the standby is able to take over for the primary in the event of an outage by following the procedure described in Switching HADR roles with shadow tables. After you are satisfied that the shadow tables are functional on the new primary, perform another role switch to revert to the original topology.
As well, after you implement shadow tables, ensure that you maximize the performance benefits by tuning their performance. For more information, see Performance tuning for shadow tables.