The database on secondary storage is organized into one or more files; each file
consists of one or more records and each record consists of one or more fields.
Typically, a record corresponds to an entity and a field to an attribute. Consider
the reduced Staff relation from the DreamHome case study shown in Figure F.1.
We may expect each tuple in this relation to map to a record in the operating
system file that holds the Staff relation. Each field in a record would store one
attribute value from the Staff relation. When a user requests a tuple from the
DBMS—for example, Staff tuple SG37—the DBMS maps this logical record on to
a physical record and retrieves the physical record into the DBMS buffers in primary
storage using the operating system file access routines.
The physical record is the unit of transfer between disk and primary storage, and
vice versa. Generally, a physical record consists of more than one logical record,
although depending on size, a logical record can correspond to one physical record.
It is even possible for a large logical record to span more than one physical record.
The terms block and page are sometimes used in place of physical record. In the
remainder of this appendix we use the term “page.” For example, the
The database on secondary storage is organized into one or more files; each fileconsists of one or more records and each record consists of one or more fields.Typically, a record corresponds to an entity and a field to an attribute. Considerthe reduced Staff relation from the DreamHome case study shown in Figure F.1.We may expect each tuple in this relation to map to a record in the operatingsystem file that holds the Staff relation. Each field in a record would store oneattribute value from the Staff relation. When a user requests a tuple from theDBMS—for example, Staff tuple SG37—the DBMS maps this logical record on toa physical record and retrieves the physical record into the DBMS buffers in primarystorage using the operating system file access routines.The physical record is the unit of transfer between disk and primary storage, andvice versa. Generally, a physical record consists of more than one logical record,although depending on size, a logical record can correspond to one physical record.It is even possible for a large logical record to span more than one physical record.The terms block and page are sometimes used in place of physical record. In theremainder of this appendix we use the term “page.” For example, the
การแปล กรุณารอสักครู่..
