Persistence and initialization of synchronization state for serialized data log replay in database systems
First Claim
Patent Images
1. A computer implemented method comprising:
- receiving table state information from a primary database system at a secondary database system, the table state information comprising information identifying which tables had an open data definition language (DDL) query during a savepoint event;
parsing metadata associated with the tables to identify table state information from the metadata;
creating, without a record of a start of the DDL query, a lock for each table identified as having an open DDL query during the savepoint event after replaying a corresponding DDL Start (DDLStart) transaction log record;
parsing log transaction information sequentially;
returning a table that is locked to an unlocked state after replaying a DDL End (DDLEnd) transaction log record; and
initializing the secondary database after the savepoint event but before a subsequent savepoint event;
wherein a DDL operation scope object on a DDL operation thread stack controls writing of the DDLStart and DDLEnd transaction log records so that the DDLEnd is always written regardless of how the DDL operation thread exits.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer implemented method for initializing a secondary database system includes receiving table state information from a primary database system at a secondary database system. The table state information includes information identifying which tables had an open operation during a savepoint event. Metadata associated with the tables is parsed to identify table state information from the metadata and a lock is created for each table identified as having an open operation during the savepoint event. Afterwards, log transaction information is sequentially parsed. Related apparatus, systems, techniques and articles are also described.
-
Citations
20 Claims
-
1. A computer implemented method comprising:
-
receiving table state information from a primary database system at a secondary database system, the table state information comprising information identifying which tables had an open data definition language (DDL) query during a savepoint event; parsing metadata associated with the tables to identify table state information from the metadata; creating, without a record of a start of the DDL query, a lock for each table identified as having an open DDL query during the savepoint event after replaying a corresponding DDL Start (DDLStart) transaction log record; parsing log transaction information sequentially; returning a table that is locked to an unlocked state after replaying a DDL End (DDLEnd) transaction log record; and initializing the secondary database after the savepoint event but before a subsequent savepoint event; wherein a DDL operation scope object on a DDL operation thread stack controls writing of the DDLStart and DDLEnd transaction log records so that the DDLEnd is always written regardless of how the DDL operation thread exits. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13)
-
-
11. A system comprising:
-
a processor; and a non-transitory computer readable media having computer executable instructions stored therein, which, when executed by the processor, causes the system to perform operations comprising; receiving table state information from a primary database system at a secondary database system, the table state information comprising information identifying which tables had an open data definition language (DDL) query during a savepoint event; parsing metadata associated with the tables to identify table state information from the metadata; creating, without a record of a start of the DDL query, a lock for each table identified as having an open DDL query during the savepoint event after replaying a corresponding DDL Start (DDLStart) transaction log record; parsing log transaction information sequentially; returning a table that is locked to an unlocked state after replaying a DDL End (DDLEnd) transaction log record; and initializing the secondary database after the savepoint event but before a subsequent savepoint events; wherein a DDL operation scope object on a DDL operation thread stack controls writing of the DDLStart and DDLEnd transaction log records so that the DDLEnd is always written regardless of how the DDL operation thread exits. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification