Maintaining database consistency when nearing the end of a database recovery log
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.
1 Assignment
0 Petitions
Accused Products
Abstract
Log records are generated by a computer system and stored in a computer readable storage area for recording changes to database objects responsive to receiving transaction requests, wherein the locators for the log records are of a predetermined maximum size that provides a maximum trackable size limit of the storage area. A computer system estimates an amount of time for the storing of the generated log records to fill the storage area up to the maximum trackable size limit. A computer system sets a soft limit to the storage area that is smaller than the maximum trackable size limit, including setting the soft limit based on the estimated amount of time.
14 Citations
18 Claims
-
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 Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for database transaction logging, the computer program product including a non-transitory computer readable storage medium having instructions stored thereon for execution by a computer system, wherein the instructions, when executed by the computer system, cause the computer system to implement a method 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 Dependent Claims (8, 9, 10, 11, 12, 14, 15, 16, 17, 18)
-
-
13. A system for database transaction logging, a comprising:
-
a processor; and a computer readable storage medium connected to the processor, wherein the computer readable storage medium has stored thereon a program for controlling the processor, and wherein the processor is operative with the program to execute the program for; 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.
-
Specification