DB2 uses WAL write-ahead logging. Transactions are logged while they occur, regardless of whether or not the transactions commit. Transactions go from the log buffer to log files (transactional logging) before any data is written from the buffer pools to the database structures.