Method and apparatus for incremental undo
AssigneeOracle Corporation
InventorsBhagat Nainani, Gary C. Ngai, Wei Huang, Jonathan D. Klein, Roger J. Bamford
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle Corporation
InventorsBhagat Nainani, Gary C. Ngai, Wei Huang, Jonathan D. Klein, Roger J. Bamford
Estimating the term…
A method and apparatus for incremental undo is provided. A process, executing in a database system, establishes a rollback entry in an undo log file as a current rollback entry. The rollback entry, which was selected from a set of rollback entries contained in an undo record, contains data that indicates a change made by a transaction to a data block in the database system. The process first determines whether the rollback entry has been applied by testing a status flag. In one embodiment, the status flag is a bit in a bit vector in the undo block. If the rollback entry has been applied to the database, then the rollback entry is not re-applied; rather, a next rollback entry is established from the set of rollback entries and the process repeats. If the rollback entry has not been applied, then undo information from the rollback entry is retrieved from the undo block and change is generated. The status flag is set to indicate that the rollback entry has been applied and a next rollback entry corresponding to the data block is retrieved. The process repeats until there are no more rollback entries to be performed, then the multiple changes are applied to disk in a single atomic operation.
A method for performing incremental undo when recovering a computer database from a failure, the method comprising:
A computer-readable medium carrying one or more sequences of instructions for performing incremental undo when recovering a computer database from a failure, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
A computer system comprising a database server, wherein said database server is configured to recover a particular data block from a failure by performing the steps of:
Dependencies are inferred from the claim text.