Documente Academic
Documente Profesional
Documente Cultură
UNIT-I: Introduction to File – Flat File – Advantage and disadvantage of Flat File – Introduction to Database - Types
of database structure: Hierarchical Data Base – Relational Data Base – Object Relational Data Base.
DATABASE MANAGEMENT SYSTEM (DBMS) ACID Properties:
A database management system is a collection of DBMS follows the concepts of Atomicity,
interrelated data and a set of programs to access those Consistency, Isolation, and Durability (ACID).
data. Collection of data is referred to as a database. These concepts are applied on transactions, which
A database is a collection of data elements stored in a manipulate data in a database.
computer in such a systematic way that a computer ACID help the database stay healthy in multi-
program can consult it to answer questions. transactional environments and in case of failure.
A Database Management System (DBMS) is a software Multiuser and Concurrent Access:
package to facilitate the creation and maintenance of a DBMS supports multi-user environment and allows
computerized database. to access & manipulate data in parallel.
Though there are restrictions on transactions when
DBMS CHARACTERISTICS
users attempt to handle the same data item, but
Real-world entity:
users are always unaware of them.
A modern DBMS is more realistic and uses real-
world entities to design its architecture. Multiple views:
DBMS offers multiple views for different users.
Relation-based tables:
A user who is in the Sales department will have a
DBMS allows entities and relations to form tables.
different view of database than a person working in
Users understand the database architecture in the
the Production department.
table names.
This feature enables the users to have a
Isolation of data and application:
concentrate view of the database according to
Database system is entirely different from data.
their requirements.
A database is an active entity, whereas data is
passive entity, on which the database works and Security:
Features like multiple views offer security to some
organizes.
extent where users are unable to access data of
DBMS stores metadata (data about data), to ease
other users and departments.
its own process.
DBMS offers constraints while entering and
Less redundancy:
retrieving the data from database.
DBMS follows the rules of normalization, which
DBMS offers many different levels of security
splits a relation when its attributes is having
features, which enables multiple users to have
redundancy in values.
different views with different features.
Normalization is a mathematically rich and
scientific process that reduces data redundancy. File Systems Versus Database Systems
Consistency: − DBMS are expensive to create in terms of software,
Consistency is a state where every relation in a hardware, and time invested.
database remains consistent. − If we just keep all data in files, then we use word-
There exist methods and techniques, which leaving processors to edit the files (insert, delete, or update
database in inconsistent state. data).
A DBMS can provide greater consistency as − As well as we write our own programs to query the
compared to file-processing systems. data. This solution is called maintaining data in flat
Query Language: files.
DBMS is equipped with query language, which − However, flat files have the following limitations.
makes it more efficient to retrieve and manipulate • Uncontrolled redundancy • Inconsistent data
data. • Inflexibility • Limited data sharing
A user can apply as many and as different • Poor enforcement of standards
filtering options as required to retrieve a set of • Low programmer productivity
data. • Excessive program maintenance
Traditionally it was not possible where file- • Excessive data maintenance
processing system was used.
Dr. K.T.Senthilkumar M.C.A., M.Phil., M.Sc.-VES., Ph.D., 1
RDB College of Arts and Science Introduction to Oracle and SQL
ADVANTAGE AND DISADVANTAGES OF 5. Integrity Problems:
FLAT-FILE SYSTEM • Data integrity means that the data contained
Advantage of File-oriented system: in the database in both correct and consistent.
1. Backup: For this purpose the data stored in database
• It is possible to take faster and automatic back- must satisfy correct and constraints.
up of data stored in files of computer-based 6. Atomicity Problems:
systems. • Any operation on database must be atomic.
• Computer systems provide back-up • This means, it must happen in its entirely or
functionalities. It is also possible to develop not at all.
specific application program for back-up. 7. Concurrent Access Anomalies:
2. Compactness: • Multiple users are allowed to access data
• It is possible to store data compactly.
simultaneously.this is for the sake of better
3. Data Retrieval:
performance and faster response.
• Computer-based systems provide enhanced
8. Security Problems:
data retrieval techniques to retrieve data stored
• Database should be accessible to users in
in files in easy and efficient way.
limited way.
4. Editing:
• Each user should be allowed to access data
• It is easy to edit any information stored in
computers in form of files. concerning his requirements only.
• Specific application programs or editing Database Users
software can be used for this purpose.
5. Remote Access: Users are differentiated by the way they expect to
• In computer-based systems, it is possible to interact with the system
access data remotely. Application programmers: They interact with system
• so, to access data for a user who not present at through DML calls
location where these data are kept. Sophisticated users: They form requests in a
6. Sharing: database query language
• Data stored in files of computer-based systems Specialized users: They write specialized database
can be shared among multiple users at a same applications that do not fit into the traditional data
time. processing framework
Disadvantage of File-oriented system: Naïve users: They invoke one of the permanent
1. Data Redundancy: application programs that have been written
• It is possible that the same information may be previously E.g. people accessing database over the
duplicated in different files.this leads to data web, bank tellers, clerical staff
redundancy results in memory wastage. Database Administrator
2. Data Inconsistency: Database Administrator Coordinates all the activities
• Because of data redundancy,it is possible that of the database system; he has a good understanding
data may not be in consistent state. of the enterprise’s information resources and needs.
3. Difficulty in Accessing Data:
Database administrator’s duties include:
• Accessing data is not convenient and efficient
a. Schema definition
in file processing system.
b. Storage structure and access method definition
4. Limited Data Sharing:
c. Schema and physical organization modification
• Data are scattered in various files. Also the
d. Granting user authority to access the database
different files may have different formats and
may be stored in different folders of different
e. Specifying integrity constraints
departments. f. Acting as relationship with users
• So, due to this data isolation, it is difficult to
share data among different applications.