The IBM Infosphere CDC Management Console is an interactive GUI tool that you can use to configure and monitor replication (caching) subscriptions between the cache and backend databases. This section provides a high-level overview of how you can create replication subscriptions for evaluation purposes.
Before you begin
▪Check that the tables you intend to replicate exist in the backend database.
▪Check that your solidDB® and backend databases are running.
▪Check that your IBM Infosphere CDC instances for solidDB® and backend data servers are running.
▪Check that you have sufficient access privileges to your databases.
▪Check that you have defined your desired replication principles in accordance with your business rules.
▪If you intend to use bidirectional replication and your backend data server is DB2 for Linux, UNIX, and Windows, set the IBM Infosphere CDC for DB2 system parameter ddl_awareness to false.
Procedure
Log in to Management Console by connecting to Access Server
For more details, see “Logging into Management Console (Connecting to Access Server)” in the IBM Infosphere Change Data Capture Management Console, Administration Guide.
Tip: To be able to work in the Access Manager perspective of the Management Console, you must be a System Administrator that has the privilege to manage datastores and user accounts. The System Administrator account was created during the installation of the Management Console.
Add new datastore for the solidDB® database
1 Click Access Manager > Datastore Management.
2 Click File > Access Server > New Datastore.
3 Type the name of the datastore in the Name box.
4 Type a description in the Description box.
5 In the Host Name box, type the host name or the full IP address of the server where you have installed IBM Infosphere CDC for solidDB®.
6 In the Port box, type the port number which IBM Infosphere CDC uses for communication with the other components. For example, IBM Infosphere CDC for solidDB® uses by default port number 11101.
7 Ping the server. If successful, this returns the datastore properties including the type of server where you have installed IBM Infosphere CDC and the version number of the product.
Add new datastore for the backend database
1 Click Access Manager > Datastore Management.
2 Click File > Access Server > New Datastore.
3 Type the name of the datastore in the Name box.
4 Type a description in the Description box.
5 In the Host Name box, type the host name or the full IP address of the server where you have installed IBM Infosphere CDC.
6 In the Port box, type the port number which IBM Infosphere CDC uses for communication with the other components. For example, IBM Infosphere CDC for Informix uses by default port number 10901.
7 Ping the server. If successful, this returns the datastore properties including the type of server where you have installed IBM Infosphere CDC and the version number of the product.
Assign users to the datastores
You need to assign the same users to both the solidDB® datastore and the backend datastore.
1 Click Access Manager > Datastore Management.
2 Select a datastore.
3 Right-click and select Assign User.
4 Select a user or hold Ctrl to select multiple users.
5 Review the connection parameters. Click OK to accept the default connection parameters on the datastore or modify the parameters for the selected users.
For detailed instructions, see “Setting up datastores” in the IBM Infosphere Change Data Capture Management Console, Administration Guide.
Create a new backend-to-solidDB® subscription
For detailed instructions on how to set up subscriptions using Management Console, see “Setting up subscriptions” in the IBM Infosphere Change Data Capture Management Console, Administration Guide.
Tip: As an example, the following steps describe how to create subscriptions for bidirectional replication environment.
1 Click Configuration > Subscriptions.
2 Right-click anywhere in the Subscriptions field and select New Subscription.
3 Type the name of the new backend-to-solidDB® subscription in the Name box.
4 Type the description of the new subscription in the Description box.
5 Select the backend datastore from the Source list.
6 Select the solidDB® datastore from the Target list.
7 Click OK.
Create a new solidDB®-to-backend subscription
1 Click Configuration > Subscriptions.
2 Right-click anywhere in the Subscriptions field and select New Subscription.
3 Type the name of the new solidDB®-to-backend subscription in the Name box.
4 Type the description of the new subscription in the Description box.
5 Select the solidDB® datastore from the Source list.
6 Select the backend datastore from the Target list.
7 Click OK.
Map tables for replication in both subscriptions
This procedure assumes the backend data server contains the tables you want to cache into the solidDB® database.
1 Click Configuration > Subscriptions.
2 Select the backend-to-solidDB® subscription, right-click and select Map Tables..
3 Select Multiple One-to-One Mappings and click Next.
4 Expand the database, schema, or table from the Source Tables list to view tables from your database that are available for mapping. Right-click the database user or schema and click Refresh if you do not see your table listed.
5 Enable one or more tables to map from the Source Tables list, and then click Next.
6 Click Create new target tables., and then click Next.
7 Specify a target owner for each source owner.
8 Specify how the new target table names relate to their corresponding source table names., and then click Next.
9 Set the replication method to Mirror (Change Data Capture).
10 Verify the mappings in the Complete Mappings dialog, and click Next.
11 Review the mapping summary and click Finish.
For detailed instructions, see “Mapping tables” in the IBM Infosphere Change Data Capture Management Console, Administration Guide.
Optional: For each table mapping, set conflict detection and resolution in accordance with your business rules
1 Click Configuration > Subscriptions.
2 Select the subscription.
3 Click the Table Mappings view and select the table mapping from the Source Table column.
4 Right-click and select Open Details....
5 Click the Conflicts tab.
6 Select the columns on which you want to detect conflicts.
7 Select the conflict resolution from the Conflict Resolution Method list.
8 Click Save.
For detailed instructions, see “Setting conflict detection and resolution” in the IBM Infosphere Change Data Capture Management Console, Administration Guide.
Optional: Set character set conversions for source columns
If your solidDB® database mode is Unicode(General.InternalCharEncoding=UTF8), set the encoding of character data type columns (CHAR, VARCHAR, and so on) to UTF-8.
1 Start replication on subscriptions. To start caching, start continuous mirroring on the subscriptions you have created.
2 Click Monitoring > Subscriptions.
3 Right-click on the two subscriptions and select Start Mirroring.
4 Select Continuous and click OK to start mirroring.
For detailed instructions, see “Starting and ending replication on subscriptions” in the IBM Infosphere Change Data Capture Management Console, Administration Guide.
Results
You have set up, for example, bidirectional replication subscriptions between the backend and solidDB® databases. As you make changes in either database, IBM Infosphere CDC replication mechanism takes care of replicating the changes to the other database.
For example, you can use solidDB® SQL Editor (solsql) to issue SQL statements in the solidDB® server. The IBM Infosphere CDC components will then take care of replicating the changes to the backend database.