Method of checking index integrity in a DB2 database
First Claim
Patent Images
1. A method of testing DB2 index integrity, comprising the steps of:
- (a) reading, in parallel, (1) a plurality of DB2 data records from a DB2 table space, and (2) a plurality of DB2 index entries from each of at least one DB2 indexes associated with said DB2 table space, normally each said index entry being nominally associated with exactly one said DB2 data record;
(b) constructing a SORT record for each said data record and each said index entry;
(c) collating the SORT records for the data records and said SORT records for the index entries into a single sequence of SORT records to group together (1) the SORT records for each data record, with (2) the one or more SORT records for said one or more index entries associated with said respective date record; and
(d) performing a specified diagnosis routine utilizing said single sequence of SORT records as an input.
11 Assignments
0 Petitions
Accused Products
Abstract
A single-phase CHECK INDEX operation for DB2 entails creating a special SORT record for each data record and each index entry, collating the special SORT records in a particular way to group together the SORT records for each data record and any associated index entries, and performing diagnostic operations on the sorted records.
-
Citations
6 Claims
-
1. A method of testing DB2 index integrity, comprising the steps of:
-
(a) reading, in parallel, (1) a plurality of DB2 data records from a DB2 table space, and (2) a plurality of DB2 index entries from each of at least one DB2 indexes associated with said DB2 table space, normally each said index entry being nominally associated with exactly one said DB2 data record; (b) constructing a SORT record for each said data record and each said index entry; (c) collating the SORT records for the data records and said SORT records for the index entries into a single sequence of SORT records to group together (1) the SORT records for each data record, with (2) the one or more SORT records for said one or more index entries associated with said respective date record; and (d) performing a specified diagnosis routine utilizing said single sequence of SORT records as an input. - View Dependent Claims (3, 4, 6)
-
-
2. A method of testing DB2 index integrity, comprising the steps of:
-
(a) reading, in parallel, (1) a plurality of DB2 data records from a DB2 table space, and (2) a plurality of DB2 index entries from each of at least one DB2 indexes associated with said DB2 table space, each said index entry being nominally associated with exactly one said DB2 data record; (b) constructing a SORT record for each data record, each said SORT record respectively including (1) a row identifier field whose value uniquely identifies said respective data record, and (2) an index identifier field whose value indicates that said SORT record is associated with a data record; (c) constructing a SORT record for each said index entry, each said SORT record for said index entries respectively including (1) a field identifying the data record with which said index entry is associated, and (2) a field identifying the DB2 index from which the index entry was read; (d) collating the SORT records for the data records and said SORT records for the index entries into a single sequence of SORT records to group together (1) the SORT records for each data record, with (2) the one or more SORT records for said one or more index entries associated with said respective data record; and (e) performing a specified diagnosis routine utilizing said single sequence of SORT records as an input. - View Dependent Claims (5)
-
Specification