Download DBMS revision book for student and more Study notes Database Programming in PDF only on Docsity!
Chapter FILE ORGANIZATION 3.1 INTRODUCTION A file organization is a way of arranging the records in a file when the file is stored on secondary storage (disk, tape etc.). The different ways of arranging the records enable different operations to be carried out efficiently over the file. A database management system supports several file organization techniques. The most important task of DBA is to choose _a_best organization for each file, based on its use. The organization of records in a file is influenced by number of factors that_must_be taken into consideration while choosing a particular technique. These factors are (a) fast retrival, updation and transfer of records, (b) efficient use of disk space, (c) high throughput, (d) type of use, (e) efficient manipulation, (f) security from unauthorized access, (g) scalability, (4) reduction in cost, (i) protection from failure. This chapter discusses various file organizations in detail. 3.2. BASIC CONCEPTS OF FILES A File is a collection of related sequence of records. A collection of field names and their corresponding data types constitutes a record. A data type, associated with each field, specifies the types of values a field can take. All records in a file are of the same record type. 3.2.1 Records and Record Types Data is generally stored in the form of records. A record is a collection of fields or data items dnd data items is formed of one or more bytes. Each record has a unique identifier called record-id. The records in a file are one of the following two types : (i) Fixed Length records. (it) Variable Length records. 47