
4-18 IBM Informix OnLine Database Server Administrator’s Guide
OnLine Logging Overview
OnLine Logging Overview
ThelogicallogfilesareatthecenterofallOnLinedata-recoverymechanisms.
The logical log files receive three types of records during processing, even if
no databases are created with transaction logging:
■ 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 each SQL 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:
■ If a database uses transactions and a transaction mustberolledback,
OnLineuses the records in the logicallogfilesto reversethe changes
made on behalf of the transaction.
■ If a data restoreis needed, OnLine uses the records inthe 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 systembackonlinein a consistentstate without lossof
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.
Blobspacedataispotentiallytoovoluminoustobeincludedinthelogicallog
files. If it were, the many kilobytes of data per blob would overwhelm the
space allocated forthe logfiles. Instead ofstoring theblobspace data needed
for recovery in the logical log files, OnLine copies the blobspace pages from
disk directlyto the logicallogbackup tapes whenthelog filesare backed up,
without going through the logical log files.
Komentarze do niniejszej Instrukcji