Understanding DB2®: Learning Visually with Examples
by Raul F. Chong, Clara Liu, Sylvia F. Qi, Dwaine R. Snow
13.14. Summary
In this chapter you have learned the concepts of unit of work, (UOW), logging methods, and different recovery strategies.
A unit of work (UOW) is composed of one or more statements and completed by a COMMIT or ROLLBACK. If the UOW is interrupted in the middle, all statements executed up to that point will be rolled back. This ensures data integrity.
When a database is connected for the first time, DB2 allocates a number of primary logs, based on the setting in the LOGPRIMARY database configuration parameter. When there are not enough primary logs, DB2 allocates secondary logs, one at a time. When the maximum number of secondary logs is reached, specified by the LOGSECOND database parameter, DB2 encounters a log full condition. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access