4-18 IBM Informix OnLine Database Server Administrator’s Guide

OnLine Logging Overview

OnLine Logging Overview
Thelogical log files are at the center of all OnLine data-recovery mechanisms.
Thelogical log files receive three types of records during processing, even if
no databases are created with transactionlogging:
SQL data definition statements (DDL) for all databases
Changes to OnLine configuration (includes changes to chunks,
dbspaces, and blobspaces)
Checkpoint events
The logical log files also receive one or more records of eachSQL data
management statement (DML) that is executed in a database created with
logging. SELECT statements are not logged.
The logical log files serve three functions that affect all OnLine mechanisms
for data recovery and consistency:
Ifa database uses transactions and a transaction must be rolled back,
OnLineuses the records in the logical log files to reverse the changes
made on behalf of the transaction.
Ifa data restore is needed, OnLine uses the records in the logical log
files to roll forward all work performed since the last archive.
If OnLine has been shut down in an uncontrolled manner, OnLine
uses the records in the logical log files to implement fast recovery
andbring the system back online in a consistent state without loss of
data.
The information that OnLine writes to the logical log differs, depending on
whether the operation involves dbspace data or blobspace data. When
OnLine logs operations involving dbspace data, the data rows (including
dbspace blobs) are included in the logical log records. This is not true for
blobspace data. Blobspace data is not copied to the logical log.
Blobspacedata is potentially too voluminous to be included in the logical log
files. If it were, the many kilobytes of data per blob would overwhelm the
spaceallocated for the log files. Instead of storing the blobspace data needed
for recovery in the logical log files, OnLine copies the blobspace pages from
diskdirectly to the logical log backup tapes when the log files are backed up,
without going through the logical log files.