Method for restoring a database after I/O error employing write-ahead logging protocols
Abstract
Method for reducing data loss during I/O errors and power failure during non-atomic writes to media in a transaction management system using write-ahead logging protocol. A recovery log is written during forward processing. On system restart processing, the log is traversed and a REDO executed. Recovery is effected from detected incomplete log writes or log write failures and uncommitted transactions are undone. A technique is provided in which files having I/O errors are identified, whereby subsequent restart operations are prevented from accessing these files. In one embodiment index files with such error are renamed, serving to indicate that corresponding original files contain errors, and the error index files are automatically rebuilt whereby I/O error on the files causes no data loss. The index file rebuild does not invalidate access plans related to the failed index.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 163.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computerized database system including a storage medium for storing data files, index files, and a recovery log having a plurality of files, and a CPU for I/O to said storage medium, a method executed by said system for recovering a database after an I/O error, comprising the steps of: (a) writing log records during normal forward processing to said recovery log on said storage medium; (b) traversing across said recovery log on said storage medium during RESTART routine processing after said I/O error for detecting committed and uncommitted transactions, said RESTART routine including a
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 163 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (4)
- "Data Recovery in IBM Database 2", R. Crus, IBM Systems Journal, vol. 23, No. 2, 1984, pp. 178-188.
- "Minimizing Logging to Facilitate Recovery of Tablespace", IBM Technical Disclosure Bulletin, vol. 29, No. 8, Jan. 1987.
- Data Recovery in IBM Database 2 , R. Crus, IBM Systems Journal, vol. 23, No. 2, 1984, pp. 178 188.
- Minimizing Logging to Facilitate Recovery of Tablespace , IBM Technical Disclosure Bulletin, vol. 29, No. 8, Jan. 1987.