12
DATA MANAGEMENT DATA MANAGEMENT 1) File Structure 2) Physical Organisation 3) Logical Organisation 4) File Organisation Prepared by: Teacher Fina 28 th May 2005, Saturday Lower Sixth Form Computer Studies

DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

Embed Size (px)

DESCRIPTION

A file is used in a broader sense to mean a data structure which could hold. For example: - a source code program written in a high-level language like PASCAL; - a binary file containing executable code; - a bitmapped graphic file; - a word processed letter. File Structure Page 3/12

Citation preview

Page 1: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

DATA MANAGEMENTDATA MANAGEMENT1) File Structure

2) Physical Organisation3) Logical Organisation

4) File Organisation

Prepared by: Teacher Fina

28th May 2005, SaturdayLower Sixth Form Computer Studies

Page 2: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

File StructureFile Structure Data is stored in folders. Each folder may contain information. The contents of the folder is a record which contains pieces of information called as fields such as names, address and etc. A file is defined as a collection of records, usually held on a disk.

Page 2/12

Page 3: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

A file is used in a broader sense to mean a data structure which could hold. For example:- a source code program written in a high-level language like PASCAL;- a binary file containing executable code;- a bitmapped graphic file;- a word processed letter.

File StructureFile Structure

Page 3/12

Page 4: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

Information has to be organised so that any item of data can be retrieved when it is needed.

File StructureFile Structure

BITSBITSCHARACTERSCHARACTERS

FIELDSFIELDSRECORDRECORDFILEFILE

DATABASEDATABASE

are grouped to form....which make up....

of data within each....on a...Several of which mayform a.......

Page 4/12

Page 5: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

Physical OrganisationPhysical Organisation Data is held on a disk being organised into physical blocks or physical records. On a disk, a physical block consists of 1 or more sectors. The physical block is read into a buffer. A buffer is a space set aside in memory as a temporary store.

Page 5/12

Page 6: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

For example,

when a user issues an instruction to read a particular customer record, the entire block is transferred to memory buffer. OS copies the record requested into a record buffer.

Physical OrganisationPhysical Organisation

Page 6/12

Page 7: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

Physical OrganisationPhysical OrganisationDouble buffering is a process of two buffers so that while data is being transferred into 1 buffer from the storage device, the other buffer is being emptied and the records processed

Page 7/12

Data entering buffer 1Data entering buffer 1

Data leaving buffer 2Data leaving buffer 2

Page 8: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

Logical OrganisationLogical Organisation Logical Organisation is meant the organisation as perceived by user, who does not need to be aware that the records are held in physical blocks. 2 types of logical organisation: -(i) Fixed length records(ii) Variable length records

Page 8/12

Page 9: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

FIXED LENGTH RECORD If the file consists of FIXED length record then every record has exactly the same number of fields and every field contains exactly the same number of bytes.

Logical OrganisationLogical Organisation

Page 9/12

Page 10: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

VARIABLE LENGTH RECORD If the file consists of VARIABLE length record then the number of bytes in any particular field may vary from record to record and the number of fields may vary from record to record.

Logical OrganisationLogical Organisation

Page 10/12

Page 11: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

File OrganisationFile Organisation

Types of File Organisation:(i) SERIAL;(ii) SEQUENTIAL;(iii) INDEXED SEQUENTIAL;(iv)RANDOM

Page 11/12

Page 12: DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical…

HOMEWORK

Make a reasearch-notes on relevant internet resources on those ‘4 types of file organisation’ and submit to me on 2nd June 2005, Wednesday.

File OrganisationFile Organisation

Page 12/12

THANK YOU FOR YOUR ATTENTION