High availability data replication of an R-tree index
First Claim
1. In a database including primary and secondary servers and a data replicator that copies database log entries from the primary server to the secondary server and updates the secondary server using the copied database log entries, an indexing method including:
- creating on the primary server a user-defined index of contents of the database, the user-defined index including at least user-defined routines and the creating including at least some operations that do not produce database log entries;
obtaining on the primary server a lock on the user-defined index;
constructing on the primary server a definitional data set containing information on the user-defined routines;
transferring the definitional data set from the primary server to the secondary server;
constructing on the secondary server secondary user-defined routines based on the definitional data set;
transferring contents of the user-defined index from the primary server to the secondary server as transferred contents, the transferred contents in combination with the secondary user-defined routines defining a secondary user-defined index corresponding to the user-defined index created on the primary server; and
removing the lock on the user-defined index;
1 Assignment
0 Petitions
Accused Products
Abstract
In a database system having a primary server side (10) and a secondary server side (30), a high availability data replicator (26, 46) transfers log entries from the primary side (10) to the secondary side (30) and replays the transferred log entries to synchronize the secondary side (30) with the primary side (10). R-tree index transfer threads (54, 56) copy user-defined routines, the user defined index, and index databases deployed on the primary server side (10) to the secondary server side (30) and deploy the copied user-defined routines, reconstruct the user-defined index, and copy data pages on the secondary side (30) to make the user-defined index consistent and usable on the secondary side (30).
41 Citations
20 Claims
-
1. In a database including primary and secondary servers and a data replicator that copies database log entries from the primary server to the secondary server and updates the secondary server using the copied database log entries, an indexing method including:
-
creating on the primary server a user-defined index of contents of the database, the user-defined index including at least user-defined routines and the creating including at least some operations that do not produce database log entries;
obtaining on the primary server a lock on the user-defined index;
constructing on the primary server a definitional data set containing information on the user-defined routines;
transferring the definitional data set from the primary server to the secondary server;
constructing on the secondary server secondary user-defined routines based on the definitional data set;
transferring contents of the user-defined index from the primary server to the secondary server as transferred contents, the transferred contents in combination with the secondary user-defined routines defining a secondary user-defined index corresponding to the user-defined index created on the primary server; and
removing the lock on the user-defined index;
- View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A database backup system for monitoring a database deployed on a primary server and for maintaining a copy of said database on a secondary server, the database backup system including:
-
a data replicator in operative communication with the primary and secondary servers to copy database log entries from the primary server to the secondary server and to update the secondary server using the copied database log entries; and
a user-defined routines replicator in operative communication with the primary and secondary servers to copy user-defined routines deployed on the primary server to the secondary server and to deploy the copied user-defined routines on the secondary server. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. An article of manufacture comprising one or more program storage media readable by a computer and embodying one or more instructions executable by the computer to perform a method for maintaining a multi-dimensional index of contents of a database system that includes a primary database deployed on a primary side, a secondary database deployed on a secondary side, and a data replication module replicating contents of the primary database to the secondary database by replaying database log entries of the primary database on the secondary side, the method including:
-
after creation of the multi-dimensional index of contents and prior to executing database operations that access the multi-dimensional index of contents, performing an index replication process including;
locking the multi-dimensional index on the primary side, copying the multi-dimensional index to the secondary side, and unlocking the multi-dimensional index on the primary side;
wherein after the performing of the index replication process, database operations that access the multi-dimensional index of contents are performed on the primary side and database log entries corresponding thereto are replayed on the secondary side, the replaying accessing the copy of the multi-dimensional index on the secondary side. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification