SlideShare une entreprise Scribd logo
1  sur  36
A PRESENTATION ON
FILE ORGANIZATION
SS2 DATA PROCESSING
FILE
ORGANIZATION
OBJECTIVES
By the end of this lesson, the students should
be able to;
• Define file organization
• State the types of file organization
• Sate the efficiency of file organization
• Sate the significance of choosing of an
appropriate file organization for your data
FILE
• A file is a collection of data stored on
a storage media, that is treated as a
single unit on a peripheral device.
Types of Data Files
• There are numerous types of files used for
storing data needed for processing, reference
or back up.
• The main common types of processing files
include
 Master File
 Transaction (movement or activity) file
 Reference file
 Backup file
 Report file
Types of Data Files
• Master File
It contains record of permanent data types.
They are created when you install your
business.
• Transaction (movement or activity) file
A transaction file is used to hold data during
transaction processing. The file is later used
to update the master file and audit daily,
weekly or monthly transactions.
Types of Data Files
• Reference file
A reference file is mainly used for reference or look-
up purposes. Look-up information is that
information that is stored in a separate file but is
required during processing.
• Backup file
A backup files is used to hold copies (backups) of
data or information from the computers fixed
storage (hard disk
STORAGE DEVICES
CHARACTERISTICS
• The major storage media
are;
• Tape (Magnetic technology)
• Hard Disk (Optical Technology)
• Solid State Drive (Flash memory/Solid
state memory)
TERMINOLOGIES
• Seek Time is defined as the time required by the
read/write head to move from one track to another.
• Rotational latency (sometimes called rotational
delay or just latency) is the delay waiting for the
rotation of the disk to bring the required disk sector
under the read-write head.
• Access time is total time it takes a computer to
request data, and then that request to be met
• The access time, therefore, depends on the seek
time and the latency time.
TERMINOLOGIES
• Fixed-length records - all the records are exactly
the same length. (read the note for more)
• Variable-length records - the length of each record
varies.
TYPES OF FILE ORGANIZATION
FILE ORGANIZATION
File organization refers to the way records
are physically arranged on a storage device
The main types of file organization are;
Sequential
Indexed Sequential
Direct Access /Random
Access/Hash/Relative
TYPES OF FILE ORGANIZATION
Other types are;
• Heap File Organization
• Cluster File Organization
• B+ Tree File Organization
Sequential File Organization
Here each file/records are stored one after the
other in a sequential manner, that is, in the
order in which they are created. This can be
achieved in two ways:
pile or serial file method
sorted file method
Sequential File Organization
Pile or Serial method
Records are stored one after the other as they
are inserted into the tables, they are unordered.
When a new record is inserted, it is placed at the
end of the file. In the case of any modification or
deletion of record, the record will be searched in
the memory blocks. Once it is found, it will be
marked for deleting
Cannot be used as master
Used as temporary transaction file
Sequential File Organization
Sorted method
A collection of records
Stored in key sequence
Adding/deleting record requires making new
file
Used as master files
Advantages
Simple file design
Very efficient when most of the records must
be processed e.g. Payroll
Very efficient if the data has a natural order
Can be stored on inexpensive devices like
magnetic tape.
Disadvantages
For the sorted method, entire file must be
processed even if a single record is to be
searched, hence time consuming.
Overall processing is slow
Random enquiries not possible to handle
Examples of media in Sequential
orgnization
Tape
Video Cassettes
Music cassettes
Direct (Random) File Organization
Records are read directly from or written on
to the file.
The records are stored at known address.
Address is calculated by applying a
mathematical function (hashing
function) to the key field.
Records can be accessed both
randomly and sequentialy
Direct (Random) File Organization
A random file would have to be stored on a
direct access backing storage medium e.g.
magnetic disc, CD, DVD, flash drive, Blu-
ray disk.
Example : Any information retrieval system.
Eg Train timetable system.
Advantages
Any record can be directly accessed.
Speed of record processing is very fast.
Up-to-date file because of online updating.
Concurrent processing is possible.
Disadvantages
More complex than sequential
Does not fully use memory locations
More security and backup problems
(backup facility needed)
Indexed sequential file
Each record of a file has a key field which
uniquely identifies that record.
An index consists of keys and addresses.
An indexed sequential file is a sequential
file (i.e. sorted into order of a key field) which
has an index.
A full index to a file is one in which there is
an entry for every record.
Indexed sequential file
Indexed sequential file
Indexed sequential files are important for
applications where data needs to be
accessed.....
–
–
sequentially
randomly using the index.
Indexed sequential file
An indexed sequential file can only be stored
on a random access device
e.g. magnetic disc, CD.
Advantages
Provides flexibility for users who need both
type of accesses with the same file
Faster than sequential
Disadvantages
Extra storage space for the index is
required
• Less efficient in storage
Factors to consider when choosing
a file organization method.
• Frequency of update: A file that needs to be
updated every now and then needs an
organization method that will allow easy retrieval
of information and ease of updating, example of
such a file is the transaction file.
• File activity: Different files have different
activities, example a sort file is used to sort data
in sequential order and therefore sequential
method would be appropriate for such a file.
Factors to consider when choosing
a file organization method.
• File access method: Definitely different files
have different methods of being accessed,
example a reference file is accessed using
random method for easy retrieval of data.
• Nature of the system: Files that are used in a
particular system will depend on the nature of
the system i.e the suitable organization method
for that particular system.
Factors to consider when choosing
a file organization method.
• Master file medium: The master file is the main
file for keeping permanent updates of records
from transaction files and other sources, the
medium by which it is updated will determine
the organization method to be used.

Contenu connexe

Tendances

Process management os concept
Process management os conceptProcess management os concept
Process management os conceptpriyadeosarkar91
 
Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...Drusilla918
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringMeghaj Mallick
 
Data flow oriented modeling
Data flow oriented modelingData flow oriented modeling
Data flow oriented modelingKavithaGowri
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLAjit Nayak
 
Database administration and security
Database administration and securityDatabase administration and security
Database administration and securityDhani Ahmad
 
Static keyword ppt
Static keyword pptStatic keyword ppt
Static keyword pptVinod Kumar
 
Fundamental software engineering activities
Fundamental software engineering activitiesFundamental software engineering activities
Fundamental software engineering activitiessommerville-videos
 
Deadlock in operating systems
Deadlock in operating systemsDeadlock in operating systems
Deadlock in operating systemsjamunaashok
 
Rapid Application Development Model
Rapid Application Development ModelRapid Application Development Model
Rapid Application Development ModelDamian T. Gordon
 
Chapter 13 - Recursion
Chapter 13 - RecursionChapter 13 - Recursion
Chapter 13 - RecursionAdan Hubahib
 
BACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMSBACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMSBaivabiNayak
 

Tendances (20)

Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...
 
DBTG MODEL
DBTG MODELDBTG MODEL
DBTG MODEL
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software Engineering
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Data flow oriented modeling
Data flow oriented modelingData flow oriented modeling
Data flow oriented modeling
 
Data flow diagrams - DFD
Data flow diagrams - DFDData flow diagrams - DFD
Data flow diagrams - DFD
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
 
Sdlc
SdlcSdlc
Sdlc
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UML
 
Database administration and security
Database administration and securityDatabase administration and security
Database administration and security
 
File Systems
File SystemsFile Systems
File Systems
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Static keyword ppt
Static keyword pptStatic keyword ppt
Static keyword ppt
 
Fundamental software engineering activities
Fundamental software engineering activitiesFundamental software engineering activities
Fundamental software engineering activities
 
Sdlc
SdlcSdlc
Sdlc
 
Deadlock in operating systems
Deadlock in operating systemsDeadlock in operating systems
Deadlock in operating systems
 
Rapid Application Development Model
Rapid Application Development ModelRapid Application Development Model
Rapid Application Development Model
 
Chapter 13 - Recursion
Chapter 13 - RecursionChapter 13 - Recursion
Chapter 13 - Recursion
 
BACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMSBACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMS
 

Similaire à Wk 1 - File organization.pptx

Fileorganization AbnMagdy
Fileorganization AbnMagdyFileorganization AbnMagdy
Fileorganization AbnMagdyMohamed Magdy
 
FIle Organization.pptx
FIle Organization.pptxFIle Organization.pptx
FIle Organization.pptxSreenivas R
 
File organisation in system analysis and design
File organisation in system analysis and designFile organisation in system analysis and design
File organisation in system analysis and designMohitgauri
 
File Structure.pptx
File Structure.pptxFile Structure.pptx
File Structure.pptxzedd15
 
UNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptxUNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptxNavyaKumar22
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learningLavanya Sharma
 
File Management & Access Control
File Management & Access Control File Management & Access Control
File Management & Access Control YuvrajWadavale
 
DBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxDBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxJayendranath3
 
File organization and introduction of DBMS
File organization and introduction of DBMSFile organization and introduction of DBMS
File organization and introduction of DBMSVrushaliSolanke
 
fileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdffileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdfFraolUmeta
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File SystemSanthiNivas
 
File system and Deadlocks
File system and DeadlocksFile system and Deadlocks
File system and DeadlocksRohit Jain
 

Similaire à Wk 1 - File organization.pptx (20)

File organisation
File organisationFile organisation
File organisation
 
Fileorganization AbnMagdy
Fileorganization AbnMagdyFileorganization AbnMagdy
Fileorganization AbnMagdy
 
File organization
File organizationFile organization
File organization
 
File Management
File ManagementFile Management
File Management
 
File organisation
File organisationFile organisation
File organisation
 
FIle Organization.pptx
FIle Organization.pptxFIle Organization.pptx
FIle Organization.pptx
 
File organisation in system analysis and design
File organisation in system analysis and designFile organisation in system analysis and design
File organisation in system analysis and design
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
File Structure.pptx
File Structure.pptxFile Structure.pptx
File Structure.pptx
 
File organization
File organizationFile organization
File organization
 
UNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptxUNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptx
 
File Management
File ManagementFile Management
File Management
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
 
File Management & Access Control
File Management & Access Control File Management & Access Control
File Management & Access Control
 
DBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxDBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptx
 
File organization and introduction of DBMS
File organization and introduction of DBMSFile organization and introduction of DBMS
File organization and introduction of DBMS
 
fileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdffileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdf
 
File organization
File organizationFile organization
File organization
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
 
File system and Deadlocks
File system and DeadlocksFile system and Deadlocks
File system and Deadlocks
 

Dernier

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 

Dernier (20)

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 

Wk 1 - File organization.pptx

  • 1. A PRESENTATION ON FILE ORGANIZATION SS2 DATA PROCESSING
  • 3. OBJECTIVES By the end of this lesson, the students should be able to; • Define file organization • State the types of file organization • Sate the efficiency of file organization • Sate the significance of choosing of an appropriate file organization for your data
  • 4. FILE • A file is a collection of data stored on a storage media, that is treated as a single unit on a peripheral device.
  • 5. Types of Data Files • There are numerous types of files used for storing data needed for processing, reference or back up. • The main common types of processing files include  Master File  Transaction (movement or activity) file  Reference file  Backup file  Report file
  • 6. Types of Data Files • Master File It contains record of permanent data types. They are created when you install your business. • Transaction (movement or activity) file A transaction file is used to hold data during transaction processing. The file is later used to update the master file and audit daily, weekly or monthly transactions.
  • 7. Types of Data Files • Reference file A reference file is mainly used for reference or look- up purposes. Look-up information is that information that is stored in a separate file but is required during processing. • Backup file A backup files is used to hold copies (backups) of data or information from the computers fixed storage (hard disk
  • 8. STORAGE DEVICES CHARACTERISTICS • The major storage media are; • Tape (Magnetic technology) • Hard Disk (Optical Technology) • Solid State Drive (Flash memory/Solid state memory)
  • 9.
  • 10.
  • 11.
  • 12. TERMINOLOGIES • Seek Time is defined as the time required by the read/write head to move from one track to another. • Rotational latency (sometimes called rotational delay or just latency) is the delay waiting for the rotation of the disk to bring the required disk sector under the read-write head. • Access time is total time it takes a computer to request data, and then that request to be met • The access time, therefore, depends on the seek time and the latency time.
  • 13. TERMINOLOGIES • Fixed-length records - all the records are exactly the same length. (read the note for more) • Variable-length records - the length of each record varies.
  • 14. TYPES OF FILE ORGANIZATION FILE ORGANIZATION File organization refers to the way records are physically arranged on a storage device The main types of file organization are; Sequential Indexed Sequential Direct Access /Random Access/Hash/Relative
  • 15. TYPES OF FILE ORGANIZATION Other types are; • Heap File Organization • Cluster File Organization • B+ Tree File Organization
  • 16. Sequential File Organization Here each file/records are stored one after the other in a sequential manner, that is, in the order in which they are created. This can be achieved in two ways: pile or serial file method sorted file method
  • 17. Sequential File Organization Pile or Serial method Records are stored one after the other as they are inserted into the tables, they are unordered. When a new record is inserted, it is placed at the end of the file. In the case of any modification or deletion of record, the record will be searched in the memory blocks. Once it is found, it will be marked for deleting Cannot be used as master Used as temporary transaction file
  • 18.
  • 19. Sequential File Organization Sorted method A collection of records Stored in key sequence Adding/deleting record requires making new file Used as master files
  • 20.
  • 21. Advantages Simple file design Very efficient when most of the records must be processed e.g. Payroll Very efficient if the data has a natural order Can be stored on inexpensive devices like magnetic tape.
  • 22. Disadvantages For the sorted method, entire file must be processed even if a single record is to be searched, hence time consuming. Overall processing is slow Random enquiries not possible to handle
  • 23. Examples of media in Sequential orgnization Tape Video Cassettes Music cassettes
  • 24. Direct (Random) File Organization Records are read directly from or written on to the file. The records are stored at known address. Address is calculated by applying a mathematical function (hashing function) to the key field. Records can be accessed both randomly and sequentialy
  • 25. Direct (Random) File Organization A random file would have to be stored on a direct access backing storage medium e.g. magnetic disc, CD, DVD, flash drive, Blu- ray disk. Example : Any information retrieval system. Eg Train timetable system.
  • 26. Advantages Any record can be directly accessed. Speed of record processing is very fast. Up-to-date file because of online updating. Concurrent processing is possible.
  • 27. Disadvantages More complex than sequential Does not fully use memory locations More security and backup problems (backup facility needed)
  • 28. Indexed sequential file Each record of a file has a key field which uniquely identifies that record. An index consists of keys and addresses. An indexed sequential file is a sequential file (i.e. sorted into order of a key field) which has an index. A full index to a file is one in which there is an entry for every record.
  • 30. Indexed sequential file Indexed sequential files are important for applications where data needs to be accessed..... – – sequentially randomly using the index.
  • 31. Indexed sequential file An indexed sequential file can only be stored on a random access device e.g. magnetic disc, CD.
  • 32. Advantages Provides flexibility for users who need both type of accesses with the same file Faster than sequential
  • 33. Disadvantages Extra storage space for the index is required • Less efficient in storage
  • 34. Factors to consider when choosing a file organization method. • Frequency of update: A file that needs to be updated every now and then needs an organization method that will allow easy retrieval of information and ease of updating, example of such a file is the transaction file. • File activity: Different files have different activities, example a sort file is used to sort data in sequential order and therefore sequential method would be appropriate for such a file.
  • 35. Factors to consider when choosing a file organization method. • File access method: Definitely different files have different methods of being accessed, example a reference file is accessed using random method for easy retrieval of data. • Nature of the system: Files that are used in a particular system will depend on the nature of the system i.e the suitable organization method for that particular system.
  • 36. Factors to consider when choosing a file organization method. • Master file medium: The master file is the main file for keeping permanent updates of records from transaction files and other sources, the medium by which it is updated will determine the organization method to be used.

Notes de l'éditeur

  1. For a fixed head disk, the seek time is 0).
  2. For a fixed head disk, the seek time is 0).