DBMS
Overview | Methods | Snapshot
| Continuous methods
![]()
| 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) |
Replication can be divided into two classes;
Making a copy of the database or a subset, at regular intervals (daily, weekly or monthly).

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.
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.

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.
A semi-intrusive methd where the update is captured while en route to the primary database or other internal process.

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.

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.
An overview of Database Replication, Sybase (1997, 3rd quarter)
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.