Download Guide to IBM Informix Enterprise Replication

Transcript
Capture Transactions
Capture Transactions
As the database server writes rows to the logical log, it marks rows that
should be replicated. Later, Enterprise Replication reads the logical log to
obtain the row images for tables that participate in replication.
Informix database servers manage the logical log in a circular fashion; the
most recent logical-log entries write over the oldest entries. Enterprise Replication must read the logical log quickly enough to prevent new logical-log
entries from overwriting the logs Enterprise Replication has not yet
processed. If the database server comes close to overwriting a logical log that
Enterprise Replication has not yet processed, user transactions are blocked
until Enterprise Replication can advance. (This situation is called blockout
mode and occurs only if the system is severely misconfigured.)
The row images that participate in replication are passed to Enterprise Replication for further evaluation.
Evaluate Data for Replication
Enterprise Replication evaluates transactions based on a change to a final
image of a row.
Row Images
Enterprise Replication evaluates the initial and final images of a row and any
changes that occur between the two row images to determine which rows to
replicate. Each row image contains the data in the row as well as the action
performed on that row.
A row might change more than once in a particular transaction. For example,
a transaction might insert and then update a row prior to committing. Enterprise Replication evaluates the net effect (final state) of a transaction based on
the row buffers in the log. Enterprise Replication then determines what
should replicate, based on the net effect, the initial state of the row, and
whether the replicate definition (in particular, the WHERE clause) applies to
the initial and final state.
The table in Figure 1-1 shows the logic that determines which rows are candidates for replication.
About Informix Enterprise Replication 1-9