System and method for reconciling transactions between a replication system and a recovered database
First Claim
Patent Images
1. A device for performing replication between a source system and a target system, the device comprising:
- a source system having data files, and log files storing transactions corresponding to changes made to the data files;
a target system; and
a replication system performing replication of at least portions of the data files of the source system to the target system by reading the log files and posting the changes from the log files to the target system, the replication system comprising;
transaction-level poster queues, each poster queue storing statements corresponding to a particular transaction from the source system, and a reconcile process which purges transactions from the poster queues when the transactions have already been applied to the target system during recovery of the target system.
25 Assignments
0 Petitions
Accused Products
Abstract
The invention is a reconcile system for providing data replication between a source system and a target system. The reconcile system includes a reconcile process that determines a recovery position for a failed or otherwise desynchronized target system, and purges queues of the reconcile system of stale transactions occurring before the recovery position, thereby ensuring synchronization between the source and target systems.
-
Citations
34 Claims
-
1. A device for performing replication between a source system and a target system, the device comprising:
-
a source system having data files, and log files storing transactions corresponding to changes made to the data files;
a target system; and
a replication system performing replication of at least portions of the data files of the source system to the target system by reading the log files and posting the changes from the log files to the target system, the replication system comprising;
transaction-level poster queues, each poster queue storing statements corresponding to a particular transaction from the source system, and a reconcile process which purges transactions from the poster queues when the transactions have already been applied to the target system during recovery of the target system.
-
-
2. A replication system for replicating at least portions of the data contained in a source database to a target database, the replication system comprising:
-
poster queues which store information corresponding to changes made to at least portions of a source system;
at least one poster process which reads the information stored in the poster queues and generates commands interpretable by a target system and designed to change the target system to reflect the changes made to the at least portions of the source system; and
a reconcile process which purges stale information stored in the poster queues, the stale information corresponding to changes made to the target system during the instantiation or recovery thereof. - View Dependent Claims (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33)
-
-
17. A method of recovering or instantiating a target database during replication from a source database to the target database, the method comprising:
-
creating a copy of data from a source database;
recovering the copy; and
reconciling information contained in a replication system with information stored in the recovered copy, thereby purging stale transactions from the replication system.
-
-
26. A method of reconciling transactional information stored in a replication system with a recovered database, the method comprising:
-
parsing a log file of a recovered database to determine a placement indicator of a recovery flag;
reading transaction data corresponding to changes made to a source database to determine placement indicators of completed transactions; and
purging the transactional data when the placement indicator corresponding to the completed transaction occurred before the placement indicator of the recovery flag.
-
-
34. A device comprising:
-
a source system having a source database management system (SDBMS) which governs the storage of data within the source system and creates a log file tracking changes made to the source system;
a target system having a target database management system (TDBMS) which governs the storage of data within the target system and creates a log file tracking the changes made to the target system; and
a replication system having queues and communicating with the log file of the TDBMS and the log file of the SDBMS, thereby purging from the queues transactions applied after the beginning, but before the completion, of the recovery or instantiation of the target system, wherein the transactions correspond to the changes made to the source system.
-
Specification