Apparatus and method for identifying and recovering from database errors
First Claim
1. A database recovery system for repairing a database, the database containing a plurality of user-defined database elements and a plurality of integrity states, each associated with one of the database elements, each of the plurality of integrity states representing a predetermined one or more conditions related to a characteristic of the associated database element, the database recovery system comprising:
- a state identification unit constructed and arranged to determine the one or more conditions of each of the database elements, and to set the associated integrity state accordingly;
an element recovery unit constructed and arranged to improve said one or more conditions of the database elements so as to advance said plurality of associated integrity states to a more preferred integrity state;
and a memory, accessible by said state identification unit and said element recovery unit, constructed and arranged to store the plurality of associated integrity states) wherein said plurality of integrity states includes at least one of;
a valid state indicating said associated database element has not been damaged;
a repaired state indicating said associated database element was damaged and subsequently repaired; and
a damaged state indicating said associated database element is damaged.
7 Assignments
0 Petitions
Accused Products
Abstract
A database recovery system and method that associates integrity states with predetermined database elements, each representing one or more conditions of a characteristic of interest of the associated database elements. The system repairs or replaces the database elements having associated integrity states that are less preferred so as to improve their condition and advance their associated integrity state to a more preferred integrity state. The database elements are preferably user-selected, and may be any physical or logical portion of the database, such as data records, partitions and replicas. In an hierarchically-arranged object-oriented database, the database elements may be, for example, objects, attributes or properties of objects as well as data. The database recovery system automatically repairs database elements, preferably using available processes and tools, to advance the associated integrity state from a less-preferred to a more-preferred integrity state. The database recovery system includes a state identification unit for determining the conditions of each of the database elements, and to set the associated integrity state accordingly, and an element recovery unit for improving the conditions of the database elements so as to advance the plurality of associated integrity states to a more preferred integrity state. Preferably, the characteristic may be database element validity, and the conditions include whether the database elements have been damaged or repaired. The recovery processes include an external repair tool configured to repair damaged database elements; and replacement processes such as backup retrieval processes and replica synchronization processes, for replacing particular database elements having an associated first integrity state with a copy of the particular database elements having associated second integrity state, wherein the second integrity state is a more preferred integrity state than the first integrity state.
128 Citations
28 Claims
-
1. A database recovery system for repairing a database, the database containing a plurality of user-defined database elements and a plurality of integrity states, each associated with one of the database elements, each of the plurality of integrity states representing a predetermined one or more conditions related to a characteristic of the associated database element, the database recovery system comprising:
-
a state identification unit constructed and arranged to determine the one or more conditions of each of the database elements, and to set the associated integrity state accordingly; an element recovery unit constructed and arranged to improve said one or more conditions of the database elements so as to advance said plurality of associated integrity states to a more preferred integrity state; and a memory, accessible by said state identification unit and said element recovery unit, constructed and arranged to store the plurality of associated integrity states) wherein said plurality of integrity states includes at least one of; a valid state indicating said associated database element has not been damaged; a repaired state indicating said associated database element was damaged and subsequently repaired; and a damaged state indicating said associated database element is damaged. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A database recovery system for repairing a database having a plurality of user-defined database elements, comprising:
-
a plurality of integrity states, each of said plurality of integrity states representing a predetermined one or more conditions of predetermined characteristics of an associated database element; a state identification unit configured to identify which of said associated integrity states represents a current state of said one or more conditions; and an element recovery unit configured to apply processes to change said one or more conditions of each of said plurality of database elements and to advance said associated integrity state from a less preferred integrity state to a more preferred integrity state, wherein said plurality of integrity states includes at least one of; a valid state indicating said associated database element has not been damaged; a repaired state indicating said associated database element was damaged and subsequently repaired; and a damaged state indicating said associated database element is damaged. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A method for recovering a database including a plurality of user-defined database elements, comprising the steps of:
-
a) associating each of a plurality of integrity states with one of the plurality of database elements, each of said plurality of integrity states representing a predetermined one or more conditions related to a characteristic of the associated database element; b) determining said one or more conditions of each of the database elements; c) modifying said associated integrity states to reflect results of said step b); d) applying recovery processes to the database to improve said one or more conditions; and e) modifying said associated integrity states to reflect results of said step d) wherein said plurality of integrity states includes at least one of; a valid state indicating said associated database element has not been damaged; a repaired state indicating said associated database element was damaged and subsequently repaired; and a damaged state indicating said associated database element is damaged. - View Dependent Claims (21, 22, 23, 24, 25)
-
-
26. A database recovery system that identifies database elements which have an associated integrity state that is a less preferred integrity state, said integrity state representing a predetermined one or more current conditions of a characteristic of the associated database element, said database recovery system repairing and replacing said database elements so as to advance said database elements to a more preferred integrity state wherein said plurality of integrity states includes at least one of:
-
a valid state indicating said associated database element has not been damaged; a repaired state indicating said associated database element was damaged and subsequently repaired; and a damaged state indicating said associated database element is damaged.
-
-
27. A controller for enabling a processor to recover a replica of a distributed database, the database containing a plurality of user-defined database elements and a plurality of integrity states, each associated with one of the database elements, each of the plurality of integrity states representing a predetermined one or more conditions related to a characteristic of the associated database element, the controller comprising:
-
a state identifier constructed and arranged to determine the one or more conditions of each of the database elements, and to set the associated integrity state accordingly; and an element recovery mechanism constructed and arranged to improve said one or more conditions of the database elements so as to advance said plurality of associated integrity states to a more preferred integrity state wherein said plurality of integrity states includes at least one of; a valid state indicating said associated database element has not been damaged; a repaired state indicating said associated database element was damaged and subsequently repaired; and a damaged state indicating said associated database element is damaged.
-
-
28. A computer program product comprising a computer readable medium having computer program logic recorded thereon for enabling a processor in a computer system wherein a database is stored, to recover from errors in the database, said computer program product adapted to cause the computer system to perform the steps of:
-
a) associating each of a plurality of integrity states with one of the plurality of database elements, each of said plurality of integrity states representing a predetermined one or more conditions related to a characteristic of the associated database element; b) determining said one or more conditions of each of the database elements; c) modifying said associated integrity states to reflect results of said step b); d) applying recovery processes to the database elements having a less preferred integrity state to improve said one or more conditions; and e) modifying said associated integrity states to reflect results of said step d) wherein said plurality of integrity states includes at least one of; a valid state indicating said associated database element has not been damaged; a repaired state indicating said associated database element was damaged and subsequently repaired and a damaged state indicating said associated database element is damaged.
-
Specification