GLOBAL CHECKPOINT SCN
First Claim
Patent Images
1. A computer-implemented method, comprising:
- a multi-node database server computing a snapshot query associated with a snapshot time;
generating a global checkpoint system change number, wherein any data block in said database that is associated with a system change number that is less than said global checkpoint system change number is stored persistently in the database;
wherein computing said snapshot query comprises;
determining whether said snapshot time is less than said global checkpoint system change number;
when said snapshot time is less than said global checkpoint system change number, then accessing said data blocks in the database without obtaining a global lock for any of said data blocks; and
when said snapshot time is greater than said global checkpoint system change number, obtaining a global lock for each data block of data blocks before accessing said data block in the database.
1 Assignment
0 Petitions
Accused Products
Abstract
Described herein are techniques for generating a global checkpoint system change number and computing a snapshot query using the global checkpoint system change number without a need to acquire global locks. In many cases, the need to acquire global locks is eliminated, thereby saving the overhead attendant to processing global locks.
66 Citations
14 Claims
-
1. A computer-implemented method, comprising:
-
a multi-node database server computing a snapshot query associated with a snapshot time; generating a global checkpoint system change number, wherein any data block in said database that is associated with a system change number that is less than said global checkpoint system change number is stored persistently in the database; wherein computing said snapshot query comprises; determining whether said snapshot time is less than said global checkpoint system change number; when said snapshot time is less than said global checkpoint system change number, then accessing said data blocks in the database without obtaining a global lock for any of said data blocks; and when said snapshot time is greater than said global checkpoint system change number, obtaining a global lock for each data block of data blocks before accessing said data block in the database. - View Dependent Claims (2, 3, 8, 9, 10)
-
-
4. A computer-implemented method, comprising:
-
each node of a multi-node database server generating a checkpoint system change number, wherein any data block that is associated with a system change number generated by said each node that is less than the checkpoint system change number of said node has been stored persistently by said each node; and generating a global checkpoint system change number by determining a minimum of the checkpoint system change numbers generated by the nodes of said multi-node database server. - View Dependent Claims (5, 6, 7, 11, 12, 13, 14)
-
Specification