Last Update: 20 November 2010
Product: SQDR Plus for UDB
Version: SQDR Plus/UDB 3.68 or later
Article ID: SQV00PU005
SQDR Plus/UDB provides a mechanism for bidirectional synchronization between two DB2 UDB for Linux, UNIX & Windows database systems. This mechanism can be used to provide a hot backup system that can quickly be moved into production if the primary system fails. After the primary system is recovered, any changes made on the secondary system will automatically be replicated to the primary system. Another use would be Load Sharing or Load Balancing of applications or user groups, although additional considerations may apply if both databases are being updated simultaneously as no built-in mechanism exists for collision detection and resolution.
Prerequisites:
In the procedure below, we will designate one DB2 system as the primary (the “P” system) and one as the secondary (the "Q" system. The examples below show UNIX-style pathnames and commands; a similar procedure can be used if one or both of the DB2 systems is running on Windows.
This procedure was developed and tested where both DB2 UDB systems were running the same version of DB2 and running on the same operating system, but the same process should work between different versions of DB2 and different host platforms, as long as attention is paid to differences (for example, database backup/restore cannot be used to move the snapshot between different host platform architectures, and data types introduced in later versions of DB2 may not be available in older versions).
This procedure involves the use of several advanced features of SQDR and SQDR Plus. Refer to the SQDR Documentation Addendum for details on TableChecker (utility in the Tools subfolder), “Append replicated rows to existing data”, “Use unique indexes” and “Manual Synchronization” (options on the destination pane for IR subscriptions), “Use Unique Constraints" (option on the Advanced pane for an IR group), and the ability to copy IR subscriptions from one group to another. Refer to the SQDR Plus Documentation Addendum for details on filterUserID (setting in sqagent.properties), which is used to prevent replication loops.
The information in technical documents comes without any warranty or applicability for a specific purpose. The author(s) or distributor(s) will not accept responsibility for any damage incurred directly or indirectly through use of the information contained in these documents. The instructions may need to be modified to be appropriate for the hardware and software that has been installed and configured within a particular organization. The information in technical documents should be considered only as an example and may include information from various sources, including IBM, Microsoft, and other organizations.