Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes introduction to DBMS (BCA501) Introduction to Database Management Systems, ISBN: 9780070591196

Rating
-
Sold
-
Pages
22
Uploaded on
23-12-2021
Written in
2021/2022

UNIT 3rd lecture notes of data base management system

Institution
Course

Content preview

File Organization
o The File is a collection of records. Using the primary key, we can
access the records. The type and frequency of access can be determined
by the type of file organization which was used for a given set of
records.
o File organization is a logical relationship among various records. This
method defines how file records are mapped onto disk blocks.
o File organization is used to describe the way in which the records are
stored in terms of blocks, and the blocks are placed on the storage
medium.
o The first approach to map the database to the file is to use the several
files and store only one fixed length record in any given file. An
alternative approach is to structure our files so that we can contain
multiple lengths for records.
o Files of fixed length records are easier to implement than the files of
variable length records.

Objective of file organization
o It contains an optimal selection of records, i.e., records can be selected
as fast as possible.
o To perform insert, delete or update transaction on the records should be
quick and easy.
o The duplicate records cannot be induced as a result of insert, update or
delete.
o For the minimal cost of storage, records should be stored efficiently.

Types of file organization:
File organization contains various methods. These particular methods have
pros and cons on the basis of access or selection. In the file organization, the
programmer decides the best-suited file organization method according to his
requirement.

,Types of file organization are as follows:




o Sequential file organization
o Heap file organization
o Hash file organization
o B+ file organization
o Indexed sequential access method (ISAM)
o Cluster file organization

o Indexed sequential access method
(ISAM)
o ISAM method is an advanced sequential file organization. In this
method, records are stored in the file using the primary key. An index
value is generated for each primary key and mapped with the record.
This index contains the address of the record in the file.

, o


If any record has to be retrieved based on its index value, then the address of
the data block is fetched and the record is retrieved from the memory.

Pros of ISAM:
o In this method, each record has the address of its data block, searching
a record in a huge database is quick and easy.
o This method supports range retrieval and partial retrieval of records.
Since the index is based on the primary key values, we can retrieve the
data for the given range of value. In the same way, the partial value can
also be easily searched, i.e., the student name starting with 'JA' can be
easily searched.

Cons of ISAM
o This method requires extra space in the disk to store the index value.
o When the new records are inserted, then these files have to be
reconstructed to maintain the sequence.

Connected book

Written for

Institution
Course

Document information

Uploaded on
December 23, 2021
Number of pages
22
Written in
2021/2022
Type
Class notes
Professor(s)
Deepa singh
Contains
All classes

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sumitkumarsingh10211

Also available in package deal

Get to know the seller

Seller avatar
sumitkumarsingh10211 meerut institute of Technology
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
4 year
Number of followers
1
Documents
39
Last sold
4 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions