US11048599B2

Time-based checkpoint target for database media recovery

Summary by NHIP

Time-based database checkpoint method

The method applies change records to standby database buffers and calculates a target time by subtracting a checkpoint delay from the present time. It creates an incremental checkpoint by flushing buffers with times before that target and updates file headers with logical times after specific intervals.

Claim Score by NHIP

Read claim 1, the broadest

Abstract

A method, apparatus, and system for a time-based checkpoint target is provided for standby databases. Change records received from a primary database are applied for a standby database, creating dirty buffer queues. As the change records are applied, a mapping is maintained, which maps timestamps to logical times of change records that were most recently applied at the timestamp for the standby database. On a periodic dirty buffer queue processing interval, the mapping is used to determine a target logical time that is mapped to a target timestamp that is prior to a present timestamp by at least a checkpoint delay. The dirty buffer queues are then processed up to the target logical time, creating an incremental checkpoint. On a periodic header update interval, file headers reflecting a consistent logical time for the checkpoint are also updated. The intervals and the checkpoint delay are adjustable by user or application.

US11048599B2, drawing sheet 1
Sheet 1 of 7

Term

8.4 yearsleft in the term

Expires 16 February 2035, including 287 days of term adjustment.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

20 claims: 2 independent, 18 dependent

  1. 1
    Broadest claimClaim Score 49, average(NHIP)A method comprising:applying, into a plurality of buffers of a standby database, a plurality of change records received from a primary database, wherein each buffer of the plurality of buffers has a respective time of a change record that was latest, of the change records in the buffer, to be applied to a primary database;calculating, by subtracting a checkpoint delay from a present time, a target time that is before the present time;creating a checkpoint for one or more database files of the standby database by flushing a subset of the plurality of buffers that have a respective time that is before the target time that is before the present time;updating in the checkpoint, after said flushing at least one buffer of the subset of the plurality of buffers;metadata that reflects the subset of the plurality of buffers, anda logical time in a checkpoint file that does not contain said metadata that reflects the subset of the plurality of buffers;wherein the method is performed by one or more computing devices.
  2. 13
    One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause:applying, into a plurality of buffers of a standby database, a plurality of change records received from a primary database, wherein each buffer of the plurality of buffers has a respective time of a change record that was latest, of the change records in the buffer, to be applied to a primary database;calculating, by subtracting a checkpoint delay from a present time, a target time that is before the present time;creating a checkpoint for one or more database files of the standby database by flushing a subset of the plurality of buffers that have a respective time that is before the target time that is before the present time;updating in the checkpoint, after said flushing at least one buffer of the subset of the plurality of buffers;metadata that reflects the subset of the plurality of buffers, anda logical time in a checkpoint file that does not contain said metadata that reflects the subset of the plurality of buffers.