4-24 IBM Informix OnLine Database Server Administrator’s Guide
Blobspace Logging
Operations Logging
OnLine does not copy blobspace data to the logical log files. This is the
important difference between the way that OnLine logs blobspace data and
dbspace data.
Arecord of the blobspace operation is written to the logical log buffer, but the
logical log records do not include a copy of the blobspace data. The logical
log records only include images of the blobspace overhead pages: the free-
mappages and the bit-map pages. (Refer to page 2-148 for information about
theblobspace overhead pages.) By logging these overhead pages, the logical
log file records track blobpage allocation and deallocation (when blobs are
deleted from blobpages).
Since the logical log records do not include blobspace blob data, thetbtape
processmust somehow locate and copy to the logical log tape each blobpage
that was allocated while this logical log file was current.
How doestbtape know which blobpages to copy? It reads the information
from the entries in the blobspace free-map page.
Whena blob is written to a blobspace, it is the function of the blobspace free-
mappage to allocate and track the blobpages that were used to store the blob
data. Therefore, as part of blobpage allocation, an entry is placed in the free-
map page indicating the blobpages that are now allocated and contain blob
data.The entry also includes the logical log ID number that was current when
the blobpage was allocated. By reading this information, thetbtape process
can identify all blobpages that are associated with the insert, update, and
delete records contained in a specific logical log file. (Refer topage 4-26.)
Operations Rollback
How can a blobspace operation be rolled back if the logical log file does not
contain a copy of the data that was originally inserted?
Theanswer is that OnLine always has access to a copy of the blobspace data
until the transaction is committed. However, the accessible copy of the data
is maintained either in the blobspace on disk or on the logical log backup
tape, not in the logical log itself. The logical log is needed, because the log
contains the blobspace control pages, which track the location and status of
the blobpages.