ARCHIVAL OF DATA IN A RELATIONAL DATABASE MANAGEMENT SYSTEM USING BLOCK LEVEL COPY
First Claim
1. A method of archiving data in a relational database management system comprising the steps of:
- a computer creating an invisible index for each primary index of a data table by copying data from the data table of the primary indexes that will not be archived;
the computer updating both the primary index and invisible indexes based on changes to the data table until an input is received to initiate a block copy of data to be archived;
the computer receiving an input to initiate block copy of data to be archived;
the computer locking the data tables;
the computer block copying identified blocks of data from the data table to an archive table and updating the invisible index to correspond to the data table;
the computer swapping the primary index with the invisible index;
the computer unlocking the data tables;
the computer deleting data blocks from a main table which were copied into the archival table; and
the computer deleting the primary index in which the invisible index was created from prior to archiving.
2 Assignments
0 Petitions
Accused Products
Abstract
Archiving data in a relational database management system through a process in which an invisible index is created for each primary index of a data. When an input is received to initiate block copy of data to be archived; the data tables are locked and the identified blocks of data form the data table are block copied to an archive table. The invisible index is updated to correspond to the data table which had data archived. The primary index is then swapped with the invisible index and the data tables are unlocked. Data blocks from the main table which were copied into the archival table is deleted along with the old primary index.
4 Citations
20 Claims
-
1. A method of archiving data in a relational database management system comprising the steps of:
-
a computer creating an invisible index for each primary index of a data table by copying data from the data table of the primary indexes that will not be archived; the computer updating both the primary index and invisible indexes based on changes to the data table until an input is received to initiate a block copy of data to be archived; the computer receiving an input to initiate block copy of data to be archived; the computer locking the data tables; the computer block copying identified blocks of data from the data table to an archive table and updating the invisible index to correspond to the data table; the computer swapping the primary index with the invisible index; the computer unlocking the data tables; the computer deleting data blocks from a main table which were copied into the archival table; and the computer deleting the primary index in which the invisible index was created from prior to archiving. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product for archiving data in a relational database management system, a computer comprising at least one processor, one or more memories, one or more computer readable storage media, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by the computer to perform a method comprising:
-
creating, by the computer, an invisible index for each primary index of a data table by copying data from the data table of the primary indexes that will not be archived; updating, by the computer, both the primary index and invisible indexes based on changes to the data table until an input is received to initiate a block copy of data to be archived; receiving, by the computer, an input to initiate block copy of data to be archived; locking, by the computer, the data tables; block copying, by the computer, identified blocks of data from the data table to an archive table and updating the invisible index to correspond to the data table; replacing, by the computer, the primary index with the invisible index; unlocking, by the computer, the data tables; deleting, by the computer, data blocks from a main table which was copied into the archival table; and deleting, by the computer, the primary index in which the invisible index was created from prior to archiving. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer system for archiving data in a relational database management system comprising a computer comprising at least one processor, one or more memories, one or more computer readable storage media having program instructions executable by the computer to perform the program instructions comprising:
-
creating, by the computer, an invisible index for each primary index of a data table by copying data from the data table of the primary indexes that will not be archived; updating, by the computer, both the primary index and invisible indexes based on changes to the data table until an input is received to initiate a block copy of data to be archived; receiving, by the computer, an input to initiate block copy of data to be archived; locking, by the computer, the data tables; block copying, by the computer, identified blocks of data from the data table to an archive table and updating the invisible index to correspond to the data table; replacing, by the computer, the primary index with the invisible index; unlocking, by the computer, the data tables; deleting, by the computer, data blocks from a main table which was copied into the archival table; and deleting, by the computer, the primary index in which the invisible index was created from prior to archiving. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification