Database-rearranging program, database-rearranging method, and database-rearranging apparatus
First Claim
1. A database-rearranging program for causing a computer to carry out a process for rearranging a database in which records to be stored are defined for each of a plurality of pages, wherein the computer is caused to function as:
- record copying means responsive to a request for rearranging a copy source database, for sequentially selecting pages of the copy source database, copying records in a selected one of the pages to a copy destination database, and setting a status of progress of copying of each page of the copy source database to a page status management table; and
record writing means responsive to a request for writing an updated record, for referring to the page status management table, and writing the updated record in a corresponding one of the pages of the copy source database if the page of the copy source database in which the updated record should be written is in an uncopied status, and writing the updated record in the copy source database and the copy destination database if the page in which the updated data should be written is in a copied status.
1 Assignment
0 Petitions
Accused Products
Abstract
A database-rearranging program which is capable of rearranging a database while maintaining high reliability, without stopping services provided by the database. When a request for rearranging the copy source database is input, a record copying module sequentially selects pages in the copy source database, and the records in the selected page are copied to the copy destination database. Further, the record copying module sets a progress of copying of each page of the copy source database to a page status management table. Thereafter, when a request for writing updated records is input, a record writing module refers to the page status management table, and when a page of the copy source database in which the updated records should be written is in an uncopied status, the updated records are written in the page of the copy source database, and when the same is in a copied status, the updated records are written in the copy source database and the copy destination database.
26 Citations
9 Claims
-
1. A database-rearranging program for causing a computer to carry out a process for rearranging a database in which records to be stored are defined for each of a plurality of pages, wherein the computer is caused to function as:
-
record copying means responsive to a request for rearranging a copy source database, for sequentially selecting pages of the copy source database, copying records in a selected one of the pages to a copy destination database, and setting a status of progress of copying of each page of the copy source database to a page status management table; and
record writing means responsive to a request for writing an updated record, for referring to the page status management table, and writing the updated record in a corresponding one of the pages of the copy source database if the page of the copy source database in which the updated record should be written is in an uncopied status, and writing the updated record in the copy source database and the copy destination database if the page in which the updated data should be written is in a copied status. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method of rearranging a database in which records to be stored are defined for each of a plurality of pages, comprising:
-
a record copying step of, in response to a request for rearranging a copy source database, sequentially selecting pages of the copy source database, copying records in a selected one of the pages to a copy destination database, and setting a status of progress of copying of each page of the copy source database to a page status management table; and
a record writing step of, in response to a request for writing an updated record, referring to the page status management table, and writing the updated record in a corresponding one of the pages of the copy source database if the page of the copy source database in which the updated record should be written is in an uncopied status, and writing the updated record in the copy source database and the copy destination database if the page in which the updated data should be written is in a copied status.
-
-
8. A database-rearranging apparatus for rearranging a database in which records to be stored are defined for each of a plurality of pages, comprising:
-
record copying means responsive to a request for rearranging a copy source database, for sequentially selecting pages of the copy source database, copying records in a selected one of the pages to a copy destination database, and setting a status of progress of copying of each page of the copy source database to a page status management table; and
record writing means responsive to a request for writing an updated record, for referring to the page status management table, and writing the updated record in a corresponding one of the pages of the copy source database if the pare of the copy source database in which the updated record should be written is in an uncopied status, and writing the updated record in the copy source database and the copy destination database if the page in which the updated data should be written is in a copied status.
-
-
9. A computer-readable recording medium storing a database-rearranging program for causing a computer to carry out a process for rearranging a database in which records to be stored are defined for each of a plurality of pages, wherein the computer is caused to function as:
-
record copying means responsive to a request for rearranging a copy source database, for sequentially selecting pages of the copy source database, copying records in a selected one of the pages to a copy destination database, and setting a status of progress of copying of each page of the copy source database to a page status management table; and
record writing means responsive to a request for writing an updated record, for referring to the page status management table, and writing the updated record in a corresponding one of the pages of the copy source database if the page of the copy source database in which the updated record should be written is in an uncopied status, and writing the updated record in the copy source database and the copy destination database if the page in which the updated data should be written is in a copied status.
-
Specification