Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(CSE249)
UNITS
UNIT 1 INTRODUCTION TO DATABASES
A file with the DAT file extension is usually a generic data file that stores
information specific to the application it refers to.
File-Based Processing
Purpose of Database Systems
• In the early days, database applications were built directly
on top of file systems
• Drawbacks of using file systems to store data:
– Data redundancy and inconsistency
• Multiple file formats, duplication of information in
different files
– Difficulty in accessing data
• Need to write a new program to carry out each new
task
– Data isolation — multiple files and formats
– Integrity problems
• Integrity constraints (e.g. account balance > 0)
become “buried” in program code rather than being
stated explicitly
• Hard to add new constraints or change existing ones
Purpose of Database Systems (Cont.)
• Hardware
– Can range from a PC to a network of computers.
• Software
– DBMS, operating system, network software (if necessary) and also
the application programs.
• Data
– Used by the organization and a description of this data called the
schema.
• Procedures
– Instructions and rules that should be applied to the design and use
of the database and DBMS.
• People
DBMS vs File Processing System
DBMS File Processing System
A database management system coordinates File-processing system coordinates only the physical access.
both the physical and the logical access to the
data
A database management system reduces the amount of Data written by one programming a file-processing system
data duplication by ensuring that a physical piece of may not be readable by another program.
data is available to all programs authorized to have
access to it
A database management system is designed to allow File-processing system is designed to allow predetermined
flexible access to data (i.e., queries) access to data (i.e., compiled programs).
A database management system is designed to A file-processing system is usually designed to allow one or
coordinate multiple users accessing the same more programs to access different data files at the same time.
data at the same time. In a file-processing system, a file can be accessed by two
programs concurrently only if both programs have read-only
access to the file.
Redundancy is control in DBMS Not in file system
DBMS provide back up and recovery When data is lost in file system then it not recover.
In DBMS, data is generally stored in either a hierarchical In RDBMS, the tables have an identifier called primary key
form or a navigational form. and the data values are stored in the form of tables.
DBMS uses file system to store data, so there will be no in RDBMS, data values are stored in the form of tables, so
relation between the tables. arelationship between these data values will be stored in the
form of a table as well.
DBMS has to provide some uniform methods to access the RDBMS system supports a tabular structure of the data and a
stored information. relationship between them to access the stored information.
DBMS is meant to be for small organization and deal with RDBMS is designed to handle large amount of data. it
small data. it supports single user. supportsmultiple users.