Recovery Algorithms Consider transaction 7;that transfers $50 from account A to account B Two updates:subtract 50 from A and add 50 to B Transaction T;requires updates to a and B to be output to the database. A failure may occur after one of these modifications have been made but before both of them are made. Modifying the database without ensuring that the transaction will commit may leave the database in an inconsistent state Not modifying the database may result in lost updates if failure occurs just after transaction commits Recovery algorithms have two parts 1.Actions taken during normal transaction processing to ensure enough information exists to recover from failures 2.Actions taken after a failure to recover the database contents to a state that ensures atomicity,consistency and durability Database System Concepts-6th Edition 16.4 ©Silberschat乜,Korth and SudarshanDatabase System Concepts - 6 16.4 ©Silberschatz, Korth and Sudarshan th Edition Recovery Algorithms Consider transaction Ti that transfers $50 from account A to account B Two updates: subtract 50 from A and add 50 to B Transaction Ti requires updates to A and B to be output to the database. A failure may occur after one of these modifications have been made but before both of them are made. Modifying the database without ensuring that the transaction will commit may leave the database in an inconsistent state Not modifying the database may result in lost updates if failure occurs just after transaction commits Recovery algorithms have two parts 1. Actions taken during normal transaction processing to ensure enough information exists to recover from failures 2. Actions taken after a failure to recover the database contents to a state that ensures atomicity, consistency and durability