Patent ID: 7949632
Filing Date: 2011-05-24
Classification: G06F

Abstract:
1. A computer-readable, non-transitory medium storing a database-rearranging program for rearranging a database, the database-rearranging program causing a computer to execute a procedure comprising: sequentially selecting pages of a first database in response to a request for rearranging data stored in the first database, and copying records in the sequentially selected pages to a second database, while recording a progress status of the copying in a page status management table such that each page in the first database is given an uncopied status indicating that the page has not yet been subjected to the copying, or a being-copied status indicating that the page is in process of the copying, or a copied status indicating that the copying of the page has been completed; and referring to the page status management table, in response to a request for writing an updated record in a specified page of the first database, to retrieve the progress status of the specified page, writing the updated record in the specified page of the first database when the retrieved progress status indicates that the specified page is in the uncopied status, writing the updated record in the specified page of both the first and second databases when the retrieved progress status indicates that the specified page is in the copied status, waiting for a change in the progress status when the retrieved progress status indicates that the specified page is in the being-copied status, and writing the updated record in the specified page of both the first and second databases when the progress status of the specified page is changed from the being-copied status to the copied status.