Preview

Database management system notes

Powerful Essays
Open Document
Open Document
1369 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Database management system notes
FILE OPERATIONS
File can be thought of as “logical” or a “physical” entity. File as a logical entity: a sequence of records. Records are either fixed size or variable size. A file as a physical entity: a sequence of fixed size blocks (on the disk), but not necessarily physically contiguous (the blocks could be dispersed). Blocks in a file are either physically contiguous or not, but the following is generally simple to do (for the file system):
»Find the first block
»Find the last block
»Find the next block
»Find the previous block

Records are stored in blocks
» This gives the mapping between a “logical” file and a “physical” file
Assumptions (some to simplify presentation for now)
»Fixed size records
»No record spans more than one block
»There are, in general, several records in a block
»There is some “left over” space in a block as needed later (for chaining the blocks of the file)
We assume that each relation is stored as a file, Each tuple is a record in the file.

A file is a sequence of records, where each record is a collection of data values (or data items).
A file descriptor(or file header includes information that describes the file, such as the field names and their data types , and the addresses of the file blocks on disk. Records are stored on disk blocks. The blocking factor bfr or a file is the (average) number of file records stored in a disk block. A file can have fixed-length records or variable-length records.
File records can be unspanned or spanned
Unspanned : no record can span two blocks
Spanned : a record can be stored in more than one block
The physical disk blocks that are allocated to hold the records of a file can be contiguous, linked, or indexed. In a file of fixed-length records, all records have the same format. Usually, unspanned blocking is used with such files. Files of variable-length records require additional information to be stored in each record, such as separator characters and field types.

You May Also Find These Documents Helpful

  • Good Essays

    A student writes a report using a word processor, saving the report in a file called my report. The student stores the file on his laptop hard disk drive. Later, he posts the file on a file-sharing site for a classmate to review the report. Then, he copies an updated version of the file to a flash drive to submit it to his instructor. Which of the following are some of the important features supplied by files as defined by a computer OS? (choose three answers)…

    • 957 Words
    • 4 Pages
    Good Essays
  • Good Essays

    9. A student writes a report using a word processor, saving the report in a file called my report. The student stores the file on his laptop hard disk drive. Later, he posts the file on a file-sharing site for a classmate to review the report. Then, he copies an updated version of the file to a flash drive to submit it to his instructor. Which of the following are some of the important features supplied by files as defined by a computer OS? (Choose three answers.)…

    • 856 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Nt1330 Unit 1 Study Guide

    • 1178 Words
    • 5 Pages

    A Database is generally used for storing data in a structured way in an efficient manner for insert, update and retrieval of data in well defined formats. On the other hand, in file system the data stored in unstructured manner with an unrelated data.…

    • 1178 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    |File – Is a place where data is stored on a computer, there are many different types of files and most if not all data is stored in a file. |…

    • 829 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    File – A resource within a computer’s main memory. It is used to store several types of information.…

    • 437 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 4639 Words
    • 19 Pages

    Computers store data ondisks using files, which are structured in specific ways in order to allow for faster access, higher reliability, and to make better use out of the drive's available space. The specific way in which files are stored on a disk is called a file system, and enables files to have names and attributes. It also allows them to be stored in a hierarchy of directories or folders arranged in a directory tree.…

    • 4639 Words
    • 19 Pages
    Powerful Essays
  • Powerful Essays

    Unit 18 - Database P1, M1

    • 995 Words
    • 4 Pages

    Data type is the type of content and it decides the content can be input and the file size.…

    • 995 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 2 Explore and Discuss

    • 1383 Words
    • 6 Pages

    C.1.a) POSIX - a family of standards specified by the IEEE for maintaining compatibility between operating systems.…

    • 1383 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    8 The extra copy of data files made at a specific point in time is known as…

    • 484 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Steve Jobs’ stories create a persona for himself. He makes himself out to be an individual who carries on even in the tenebrous of times and who has overcome numerous snags when things didn't look great. He is trying to tell the audience that failure can at times be great; these are paramount bits of his persona to create. He is known as a very successful man. Creating this persona permits him to unite with audience considerably more.…

    • 707 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Review the range of groups and individuals whose communication needs must be addressed in your own work job role.…

    • 3751 Words
    • 11 Pages
    Good Essays
  • Powerful Essays

    List of file signatures

    • 829 Words
    • 4 Pages

    This is a list of file signatures, data used to identify or verify the content of a file. Such signatures are also known…

    • 829 Words
    • 4 Pages
    Powerful Essays
  • Better Essays

    | Access to records in a Sequential file is serial. To reach a particular record, all the preceding records must be read.As we observed when the topic was introduced earlier in the course, the organization of an unordered Sequential file means it is only practical to read records from the file and add records to the end of the file (OPEN..EXTEND). It is not practical to delete or update records.While it is possible to delete, update and insert records in an ordered Sequential file, these operations have some drawbacks.…

    • 2969 Words
    • 12 Pages
    Better Essays
  • Powerful Essays

    Office Filing System

    • 4408 Words
    • 18 Pages

    The electronic filing is an organized collection of data that is stored in the external memory of a computer, and can be accessed and manipulated as a single named unit. It is done by the computer technique where the data is passed in the form of electronic pulse into the computer or word processor for storage on magnetic tape or disk.…

    • 4408 Words
    • 18 Pages
    Powerful Essays
  • Good Essays

    Traditional file organization describes storing data in paper files, within folders and filing cabinets. Electronic file organization is a common alternative to paper filing; each system has its benefits and drawbacks.…

    • 614 Words
    • 3 Pages
    Good Essays