There are the following four recovery types supported within Db2:
- Crash recovery: Transactions against a database can be interrupted unexpectedly. If a failure, such as power failure, operating system failure, or a hardware failure occurs before all the changes that are part of the transactions are completed and committed, the database is left in an inconsistent state. Crash recovery is the process by which the database is moved back to a consistent state by using transaction logs to undo or redo the changes. The incomplete transactions are rolled back and completed changes are committed that were still in database memory when the crash occurred. The crash recovery will automatically be initiated if there is a problem, however you can also initiate a crash recovery by using the RESTART DATABASE command. The basic syntax for this command is as follows...