SlideShare a Scribd company logo
Module I – Session 2
Database, File system,
DBMS
●
File System
●
Database
●
Database Management
System
Presented by
Dr.S.Zulaikha Beevi,
Professor/CSE
Files
●
A file represents a sequence of bytes on the disk
where a group of related data is stored.
●
File is created for permanent storage of data.
#include<stdio.h>
struct emp
{
char name[10];
int age;
};
void main()
{
struct emp e;
FILE *p,*q;
p =
fopen("one.tx
t", "a");
q = fopen("one.txt", "r");
printf("Enter Name and Age:");
scanf("%s %d", e.name, &e.age);
fprintf(p,"%s %d", e.name, e.age);
fclose(p);
do
{
fscanf(q,"%s %d", e.name,
e.age);
printf("%s %d", e.name,
e.age);
}
while(!feof(q));
}
File System to
DBMS
File System manages data using files in hard disk. Users
are allowed to create, delete, and update the files
according to their requirement.
Let us consider the example of file based University
Management System. Data of students is available to their
respective Departments, Academics Section, Result
Section, Accounts Section, Hostel Office etc. Some of the
data is common for all sections like Roll No, Name, Father
Name, Address and Phone number of students but some
data is available to a particular section only like Hostel
allotment number which is a part of hostel office.
Issues in File
System
Redundancy of data: Data is said to be redundant if
same data is copied at many places. If a student wants
to change Phone number, he has to get it updated at
various sections. Similarly, old records must be deleted
from all sections representing that student.
Inconsistency of Data: Data is said to be inconsistent if
multiple copies of same data does not match with each
other. If Phone number is different in Accounts Section
and Academics Section, it will be inconsistent.
Inconsistency may be because of typing errors or not
updating all copies of same data.
Difficult Data Access: A user should know the exact
location of file to access data, so the process is very
cumbersome and tedious. If user wants to search
student hostel allotment number of a student from
10000 unsorted students’ records, how difficult it can be.
Unauthorized Access: File System may lead to
unauthorized access to data. If a student gets access to
file having his marks, he can change it in unauthorized
way.
No Concurrent Access: The access of same data by
multiple users at same time is known as concurrency. File
system does not allow concurrency as data can be
accessed by only one user at a time.
No Backup and Recovery: File system does not
incorporate any backup and recovery of data if a file is
lost or corrupted.
Database
Database is a collection of inter-related data
which helps in efficient retrieval, insertion and
deletion of data from database and organizes
the data in the form of tables, views, schemas,
reports etc.
For Example, university database organizes
the data about students, faculty, and admin
staff etc. which helps in efficient retrieval,
insertion and deletion of data from it.
Database
Architecture
•Centralized databases
• One to a few cores, shared memory
•Client-server,
• One server machine executes work
on behalf of multiple client
machines.
•Parallel databases
• Many core shared memory
• Shared disk
• Shared nothing
•Distributed databases
• Geographical distribution
• Schema/data heterogeneity
Database File System in  DBMS, File Management
Database File System in  DBMS, File Management
Database File System in  DBMS, File Management
Database Management System
The software which is used to manage database is
called Database Management System (DBMS).
For Example, MySQL, Oracle etc. are popular
commercial DBMS used in different applications.
DBMS allows users the following tasks:
Data Definition: It helps in creation, modification and
removal of definitions that define the organization of data
in database.
Data Updation: It helps in insertion, modification
and deletion of the actual data in the database.
Data Retrieval: It helps in retrieval of data from the
database which can be used by applications for
various purposes.
User Administration: It helps in registering and
monitoring users, enforcing data security, monitoring
performance, maintaining data integrity, dealing with
concurrency control and recovering information
corrupted by unexpected failure.
Advantages of
DBMS
DBMS helps in efficient organization of data in database which has following advantages over
typical file system.
Minimized redundancy and data consistency: Data is normalized in DBMS to minimize the
redundancy which helps in keeping data consistent. For Example, student information can be
kept at one place in DBMS and accessed by different users.
Simplified Data Access: A user need only name of the relation not exact location to access
data, so the process is very simple.
Multiple data views: Different views of same data can be created to cater the needs of different
users. For Example, faculty salary information can be hidden from student view of data but
shown in admin view.
Data Security: Only authorized users are allowed to access the data in DBMS. Also, data can
be encrypted by DBMS which makes it secure.
Concurrent access to data: Data can be accessed concurrently by different users at same time
in DBMS.
Backup and Recovery mechanism: DBMS backup and recovery mechanism helps to avoid
data loss and data inconsistency in case of catastrophic failures.
Need for
DBMS
A Data Base Management System is a system software
for easy, efficient and reliable data processing and
management. It can be used for:
●
Creation of a database.
●
Retrieval of information from the database.
●
Updating the database.
●
Managing a database.
Database File System in  DBMS, File Management
Qui
z
1. What is database?
A. Collection of organized data that allows access,
retrieval of that data.
B. Collection of organized data that allows access,
retrieval, and use of that data.
C. Collection of organized data that allows retrieval, and
use of that data.
Answer : B
Ad

Recommended

Introduction to Database Systems, File System vs DBMS,
Introduction to Database Systems, File System vs DBMS,
agrawalmonikacomp
 
Lecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.ppt
DeeptimaanKrishnaJad
 
Database Lecture Notes
Database Lecture Notes
FellowBuddy.com
 
Unit 1_1680588168525885258552585525855.pptx
Unit 1_1680588168525885258552585525855.pptx
dgfs55437
 
6134DBMS Introduction 5 sem.pptx
6134DBMS Introduction 5 sem.pptx
Danishompi
 
DBMS Introduction.pptx DATA BASE MANAGEMENT SYSTEMS
DBMS Introduction.pptx DATA BASE MANAGEMENT SYSTEMS
ShamshadAli58
 
DBMS ppt by dipali jadhav
DBMS ppt by dipali jadhav
dipumaliy
 
Ch01
Ch01
Mahavir Devmane
 
Dbms introduction about data models,data
Dbms introduction about data models,data
kngaravind54
 
DBMS Introduction 5 .pptx
DBMS Introduction 5 .pptx
NitinKashyap89
 
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbmscse61
 
REC-UNIT-I-DataBaseManagementSystems.pptx
REC-UNIT-I-DataBaseManagementSystems.pptx
Uma Kakarlapudi
 
Mca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbms
Rai University
 
Rdbms
Rdbms
Muhammad Adeel Rajput
 
data base manage ment
data base manage ment
kaleemullah125
 
Dbms Basics
Dbms Basics
DR. Ram Kumar Pathak
 
Module-1 Data base management systems chap1-Introduction to database.pptx
Module-1 Data base management systems chap1-Introduction to database.pptx
ambikavenkatesh2
 
Database management system in the business
Database management system in the business
ssuserd329601
 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
renadmajid789
 
UNIT 1. Database management system notes
UNIT 1. Database management system notes
n32310997
 
Lecture-1.ppt
Lecture-1.ppt
ChSheraz3
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
Dios Kurniawan
 
1_DBMS_Introduction.pdf
1_DBMS_Introduction.pdf
JubairAhmedNabin
 
Database basics
Database basics
Imran Chowdhary
 
Bsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systems
Rai University
 
database management systems for ug students
database management systems for ug students
veenashinde8
 
Introduction of dbms
Introduction of dbms
RUpaliLohar
 
Unit01 dbms
Unit01 dbms
arnold 7490
 
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 

More Related Content

Similar to Database File System in DBMS, File Management (20)

Dbms introduction about data models,data
Dbms introduction about data models,data
kngaravind54
 
DBMS Introduction 5 .pptx
DBMS Introduction 5 .pptx
NitinKashyap89
 
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbmscse61
 
REC-UNIT-I-DataBaseManagementSystems.pptx
REC-UNIT-I-DataBaseManagementSystems.pptx
Uma Kakarlapudi
 
Mca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbms
Rai University
 
Rdbms
Rdbms
Muhammad Adeel Rajput
 
data base manage ment
data base manage ment
kaleemullah125
 
Dbms Basics
Dbms Basics
DR. Ram Kumar Pathak
 
Module-1 Data base management systems chap1-Introduction to database.pptx
Module-1 Data base management systems chap1-Introduction to database.pptx
ambikavenkatesh2
 
Database management system in the business
Database management system in the business
ssuserd329601
 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
renadmajid789
 
UNIT 1. Database management system notes
UNIT 1. Database management system notes
n32310997
 
Lecture-1.ppt
Lecture-1.ppt
ChSheraz3
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
Dios Kurniawan
 
1_DBMS_Introduction.pdf
1_DBMS_Introduction.pdf
JubairAhmedNabin
 
Database basics
Database basics
Imran Chowdhary
 
Bsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systems
Rai University
 
database management systems for ug students
database management systems for ug students
veenashinde8
 
Introduction of dbms
Introduction of dbms
RUpaliLohar
 
Unit01 dbms
Unit01 dbms
arnold 7490
 
Dbms introduction about data models,data
Dbms introduction about data models,data
kngaravind54
 
DBMS Introduction 5 .pptx
DBMS Introduction 5 .pptx
NitinKashyap89
 
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbmscse61
 
REC-UNIT-I-DataBaseManagementSystems.pptx
REC-UNIT-I-DataBaseManagementSystems.pptx
Uma Kakarlapudi
 
Mca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbms
Rai University
 
Module-1 Data base management systems chap1-Introduction to database.pptx
Module-1 Data base management systems chap1-Introduction to database.pptx
ambikavenkatesh2
 
Database management system in the business
Database management system in the business
ssuserd329601
 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
renadmajid789
 
UNIT 1. Database management system notes
UNIT 1. Database management system notes
n32310997
 
Lecture-1.ppt
Lecture-1.ppt
ChSheraz3
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
Dios Kurniawan
 
Bsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systems
Rai University
 
database management systems for ug students
database management systems for ug students
veenashinde8
 
Introduction of dbms
Introduction of dbms
RUpaliLohar
 

Recently uploaded (20)

Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
 
DESIGN OF REINFORCED CONCRETE ELEMENTS S
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
International Journal of Advanced Information Technology (IJAIT)
International Journal of Advanced Information Technology (IJAIT)
ijait
 
How to Un-Obsolete Your Legacy Keypad Design
How to Un-Obsolete Your Legacy Keypad Design
Epec Engineered Technologies
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
Stay Safe Women Security Android App Project Report.pdf
Stay Safe Women Security Android App Project Report.pdf
Kamal Acharya
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
 
DESIGN OF REINFORCED CONCRETE ELEMENTS S
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
International Journal of Advanced Information Technology (IJAIT)
International Journal of Advanced Information Technology (IJAIT)
ijait
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
Stay Safe Women Security Android App Project Report.pdf
Stay Safe Women Security Android App Project Report.pdf
Kamal Acharya
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Ad

Database File System in DBMS, File Management

  • 1. Module I – Session 2 Database, File system, DBMS ● File System ● Database ● Database Management System Presented by Dr.S.Zulaikha Beevi, Professor/CSE
  • 2. Files ● A file represents a sequence of bytes on the disk where a group of related data is stored. ● File is created for permanent storage of data. #include<stdio.h> struct emp { char name[10]; int age; }; void main() { struct emp e; FILE *p,*q; p = fopen("one.tx t", "a"); q = fopen("one.txt", "r"); printf("Enter Name and Age:"); scanf("%s %d", e.name, &e.age); fprintf(p,"%s %d", e.name, e.age); fclose(p); do { fscanf(q,"%s %d", e.name, e.age); printf("%s %d", e.name, e.age); } while(!feof(q)); }
  • 3. File System to DBMS File System manages data using files in hard disk. Users are allowed to create, delete, and update the files according to their requirement. Let us consider the example of file based University Management System. Data of students is available to their respective Departments, Academics Section, Result Section, Accounts Section, Hostel Office etc. Some of the data is common for all sections like Roll No, Name, Father Name, Address and Phone number of students but some data is available to a particular section only like Hostel allotment number which is a part of hostel office.
  • 4. Issues in File System Redundancy of data: Data is said to be redundant if same data is copied at many places. If a student wants to change Phone number, he has to get it updated at various sections. Similarly, old records must be deleted from all sections representing that student. Inconsistency of Data: Data is said to be inconsistent if multiple copies of same data does not match with each other. If Phone number is different in Accounts Section and Academics Section, it will be inconsistent. Inconsistency may be because of typing errors or not updating all copies of same data.
  • 5. Difficult Data Access: A user should know the exact location of file to access data, so the process is very cumbersome and tedious. If user wants to search student hostel allotment number of a student from 10000 unsorted students’ records, how difficult it can be. Unauthorized Access: File System may lead to unauthorized access to data. If a student gets access to file having his marks, he can change it in unauthorized way. No Concurrent Access: The access of same data by multiple users at same time is known as concurrency. File system does not allow concurrency as data can be accessed by only one user at a time. No Backup and Recovery: File system does not incorporate any backup and recovery of data if a file is lost or corrupted.
  • 6. Database Database is a collection of inter-related data which helps in efficient retrieval, insertion and deletion of data from database and organizes the data in the form of tables, views, schemas, reports etc. For Example, university database organizes the data about students, faculty, and admin staff etc. which helps in efficient retrieval, insertion and deletion of data from it.
  • 7. Database Architecture •Centralized databases • One to a few cores, shared memory •Client-server, • One server machine executes work on behalf of multiple client machines. •Parallel databases • Many core shared memory • Shared disk • Shared nothing •Distributed databases • Geographical distribution • Schema/data heterogeneity
  • 11. Database Management System The software which is used to manage database is called Database Management System (DBMS). For Example, MySQL, Oracle etc. are popular commercial DBMS used in different applications. DBMS allows users the following tasks: Data Definition: It helps in creation, modification and removal of definitions that define the organization of data in database.
  • 12. Data Updation: It helps in insertion, modification and deletion of the actual data in the database. Data Retrieval: It helps in retrieval of data from the database which can be used by applications for various purposes. User Administration: It helps in registering and monitoring users, enforcing data security, monitoring performance, maintaining data integrity, dealing with concurrency control and recovering information corrupted by unexpected failure.
  • 13. Advantages of DBMS DBMS helps in efficient organization of data in database which has following advantages over typical file system. Minimized redundancy and data consistency: Data is normalized in DBMS to minimize the redundancy which helps in keeping data consistent. For Example, student information can be kept at one place in DBMS and accessed by different users. Simplified Data Access: A user need only name of the relation not exact location to access data, so the process is very simple. Multiple data views: Different views of same data can be created to cater the needs of different users. For Example, faculty salary information can be hidden from student view of data but shown in admin view. Data Security: Only authorized users are allowed to access the data in DBMS. Also, data can be encrypted by DBMS which makes it secure. Concurrent access to data: Data can be accessed concurrently by different users at same time in DBMS. Backup and Recovery mechanism: DBMS backup and recovery mechanism helps to avoid data loss and data inconsistency in case of catastrophic failures.
  • 14. Need for DBMS A Data Base Management System is a system software for easy, efficient and reliable data processing and management. It can be used for: ● Creation of a database. ● Retrieval of information from the database. ● Updating the database. ● Managing a database.
  • 16. Qui z 1. What is database? A. Collection of organized data that allows access, retrieval of that data. B. Collection of organized data that allows access, retrieval, and use of that data. C. Collection of organized data that allows retrieval, and use of that data. Answer : B