×

Maintaining database consistency when nearing the end of a database recovery log

  • US 9,665,599 B2
  • Filed: 06/03/2013
  • Issued: 05/30/2017
  • Est. Priority Date: 06/03/2013
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for database transaction logging, comprising:

  • generating log records by a computer system and storing them in a computer readable log record storage area for storing log records, wherein the log records record what changes in respective database objects responsive to respective received transaction requests, and wherein locators for the log records indicate locations of the log records in the log record storage area and each log record is of a predetermined maximum size that provides a maximum trackable size limit of the log record storage area where if there is no more space for log records then database transactions must stop;

    estimating, by a computer system, an amount of time for the storing of the generated log records to fill the log record storage area up to the maximum trackable size limit, where the estimating includes determining how much log record space was filled during a sampling time interval when transactions occurred for which log records were generated and were stored in the log record storage area, thereby taking up more space in the log record storage area;

    setting, by a computer system, a soft limit to the log record storage area that is smaller than the maximum trackable size limit, including setting the soft limit based on the estimated amount of time,determining the log records have filled the log record storage area up to the soft limit and at least one database transaction request has been received after the log records have filled the log record storage area up to the soft limit;

    determining the at least one database transaction request is for a certain kind of database transaction; and

    blocking at least execution completion of the at least one database transaction for the database transaction request responsive to the determining the at least one database transaction request is for the certain kind of database transaction and responsive to the determining the log records have filled the log record storage area up to the soft limit and the at least one database transaction request has been received after the log records have filled the log record storage area up to the soft limit log records.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×