Header Pages
Go Up to Database Statistics Options
Displays header page information in the database summary. Below is an example of database summary header page information, followed by an explanation of each item.
This function corresponds to the -header
option of gstat
.
Database "C:\Embarcadero\InterBase\examples\Database\employee.ib" Database header page information: Flags 0 Checksum 12345 Generation 41 Page size 4096 ODS version 12.0 Oldest transaction 29 Oldest active 30 Oldest snapshot 30 Next transaction 34 Bumped transaction 1 Sequence number 0 Next attachment ID 0 Implementation ID 16 Shadow count 0 Page buffers 0 Next header page 0 Database dialect 1 Creation date Aug 26, 2006 17:05:03 Variable header data: Sweep interval: 20000 *END* Service ended at 9/3/2006 4:59:05 PM
The first line displays the name and location of the primary database file while the remaining lines contain information on the database header page. These items include:
Item | Description |
---|---|
Checksum |
InterBase supports true checksums only for ODS 8 and earlier. For ODS 9 and later, the checksum value is always “12345”. |
Generation |
Counter incremented each time header page is written. |
Page size |
The current database page size, in bytes. |
ODS version |
The version of the database’s on-disk structure. |
Oldest transaction |
The transaction ID number of the oldest “interesting” transaction (those that are active, in limbo, or rolled back, but not committed). |
Oldest active |
The transaction ID number of the oldest active transaction. |
Next transaction |
The transaction ID number that InterBase assigns to the next transaction. The difference between the oldest transaction and the next transaction determines when database sweeping occurs. For example, if the difference is greater than this difference (set to 20,000 by default), then InterBase initiates a database sweep. See Overview of Sweeping. |
Sequence number |
The sequence number of the header page (zero is used for the first page, one for second page, and so on). |
Next connection ID |
ID number of the next database connection. |
Implementation ID |
The architecture of the system on which the database was created. These ID definitions are platform-dependent #define directives for a macro class named CLASS:
|
Shadow count |
The number of shadow files defined for the database. |
Number of cache buffers |
The number of page buffers in the database cache. |
Next header page |
The ID of the next header page. |
Database dialect |
The SQL dialect of the database |
Creation date |
The date when the database was created. |
Attributes |
|
Variable header data |
|