Replication

b_book1.gif (162 bytes)DBMS
Overview | Methods | Snapshot | Continuous methods
l_stone.gif (2795 bytes)

Overview

Users need quick access to changes made to operational data on which they rely on to make their daily business decisions.

Decision suport systems (DSS) are typicaly concerned with read-only subsets of operational data. Data warehousing projects are concerned with capturing and transforming mainframe data before downloading to a LAN based warehouse.

Replication definitions vary and can mean everything from a snapshot copy of the database to two phase commit (transactions are applied to two independant databases)


Methods

Replication can be divided into two classes;

Snapshot

Making a copy of the database or a subset, at regular intervals (daily, weekly or monthly).

dadbr01.jpg (19115 bytes)

Problems:
Once applied data becomes stale as soon as a new transaction is applied to the source database.
Can be costly and introduces long latency periods (when data is out of sync).
Normally the utility does not descriminate between existing data in the database and the changed/added data.
Advantage:
Data may be customised for the target database.

Examples include: BMC Software's UNLOAD PLUS, Platinum's Fast Unload.

Continuous methods

Trigger based

Rely on primary database "after" triggers to capture updates made to primary tables. An update triggers an additional update to a :"staging table" (a staging table is required for each table to be replicated). To maintain transaction integrity a related transaction table mapping the transaction operations is also maintained. Both tables usually reside in the primary database.

dadbr02.jpg (22942 bytes)

Disadvantage:
Additional overhead required by triggers and log tables.
Not optimal for high through put application, but can provide a reasonable latency period for many DSS applications.

Log exit based

A semi-intrusive methd where the update is captured while en route to the primary database or other internal process.

dadbr03.jpg (23884 bytes)

This log provides a one time snapshot of the changed record and must be stored until the replication system can guarantee the data has been successfully replicated to all downstream subscribers. Typicaly captured log records are stored in the primary database.
Examples include; Sybase' replication agent for Lotus Notes, IBM Data Propogator Relational (DPropR) for DBG2/MVS.

Log based

dadbr04.jpg (22012 bytes)

Advantages:
Non-intrusive, high performance replication system.
Typically are transaction based, allowing the transaction to be applied to the target databases.
Are transparent to the application.
Are asynchronous so provide a neglible impact to the primary operational (OLTP) system.

l_syb01a.gif (106240 bytes) An overview of Database Replication, Sybase (1997, 3rd quarter)
b_www.gif (422 bytes)www.sybase.com Sybase logo: All rights reserved

[Rev: 16/1/98] 12/10/97© 1997-98 V/2-Com (Verhaart), P O Box 8415, Havelock North, New Zealand.