EP0806015A1

System for maintenance of database integrity

Abstract

This record has no abstract on file.

Term

Term ended

Projected expiry passed 22 January 2016, 10.7 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

1 claim: 1 independent, 0 dependent

  1. 1
    Claims of equivalent WO 9623269 A1 WHAT IS CLAIMED IS:1. An improved process for preserving a database in the event of a failure occurring during a transaction involving database records, said process comprising the steps of: creating a log file, including a plurality of slots each identified by a unique slot index, for storing a LOG record corresponding to an transaction-in-progress, with each LOG record identified by a unique monotonically increasing log sequence number (LSN) and with each slot storing details of single transaction;locking all database records involved with a given transaction prior to writing a LOG record for the given transaction in the log file so that transactions concurrently active cannot operate on same database records thereby assuring independence of concurrent transactions;unlocking all database records involved with said given transaction when the transaction is completed;identifying a slot as unavailable if any database records involved with a corresponding transaction recorded in the slot have been locked;identifying a slot as an available slot after all database records involved with a corresponding transaction recorded in the slot have been unlocked;reusing slots to store LOG records of subsequently active transactions in the order that slots become available so that the slots are reused on a first-in-first-out basis thereby assuring that if there is a LOG record in the LOG file involving a given database record then the LOG file contains a LOG record corresponding to the last transaction involving the given database record;and during a recovery transaction, eliminating a given LOG record from further consideration if there is a LOG record with a higher LSN involving a same database record as involved with the transaction corresponding to the given LOG record. 2. The process of claim 1 wherein said step of eliminating further comprises the steps of: sorting the log file in forward order of increasing LSNs' ;and for a given LOG record corresponding to a transaction involving a particular database record, scanning forward from the given LOG record to determine whether a LOG record having a higher LSN corresponds to an transaction involving the particular database record.