1-File Structure
1-File Structure
https://docs.oracle.com/cd/E19253-01/819-6957/chp-typeopexpr-2/index.html
About memory
Advantages Disadvantages
• It is simple to program and easy to • Sequential file is time consuming
design. process.
• Sequential file is best use if storage • It has high data redundancy.
space.
• This approach is used when a large • Random searching is not possible.
number of records must be • After you place a record into a
accessed, such as when calculating
sequential file, you cannot shorten,
a student’s grade or generating a
wage slip. lengthen, or delete the record.
However, you can update
• This strategy is employed in the (REWRITE) a record if the length
creation of reports and statistical
does not change.
calculations.
Direct Access file organization
Advantages Disadvantages
• Direct access file helps in online • Direct access file does not provide back
transaction processing system up facility.
(OLTP) like online railway • Implementation of direct-access systems
reservation system. is often difficult because of the complexity
• In direct access file, sorting of the and the high level of programming
records are not required. (software) support that such systems
need. In addition, the cost of developing
• It accesses the desired records and maintaining a direct-access system is
immediately. greater than the expense of a sequential
processing system.
• It updates several files quickly.
• It has less storage space as compared to
• It has better control over record sequential file.
allocation.
Indexed sequential access file
organization
• Indexed sequential access file combines both sequential file and
direct access file organization.
• In indexed sequential access file, records are stored randomly on a
direct access device such as magnetic disk by a primary key.
• The data can be access either sequentially or randomly using the
index. The index is stored in a file and read into memory when the
file is opened.
Indexed sequential access file
organization
Advantages Disadvantages
• In indexed sequential access file, • Indexed sequential access file requires
sequential file and random file access unique keys and periodic reorganization.
is possible. • Indexed sequential access file takes
• It accesses the records very fast if longer time to search the index for the
the index table is properly organized. data access or retrieval.
• The records can be inserted in the • It requires more storage space.
middle of the file.
• It is expensive because it requires special
• It provides quick access for software.
sequential and direct processing.
• It is less efficient in the use of storage
• It reduces the degree of the space as compared to other file
sequential search. organizations.
Indexed sequential access file organization
Imagen tomada de
https://www.researchgate.net/publication/273380260_ADMINISTRACION_DE_ARCHIVOS_Ejemplos_practicos_de_utilizacion_de_archivos_Secuenciales_Indexados_y_directos_utilizando_el_lenguaje_C/figures?
lo=1&utm_source=google&utm_medium=organic
Referencias
https://www.geeksforgeeks.org/learn-data-structures-and-algorithms-dsa-tutorial/
https://www.tutorialride.com/data-structures/file-organization-in-data-structure.htm
https://www.ibm.com/docs/en/cobol-aix/5.1?topic=mode-file-organization-access
https://byjus.com/gate/sequential-file-organization-in-dbms-notes/