Unit 1
Unit 1
Unit 1
Introduction
A database is a collection of related data, we mean known facts that can be recorded and that
have implicit meaning.
For example, consider the names, telephone numbers, and addresses of the people.
Database has the following implicit properties:
• A database represents some aspect of the real world, sometimes called the mini world or the
universe of discourse (UoD). Changes to the mini world are reflected in the database. • A
database is a logically coherent collection of data with some inherent meaning. A random
assortment of data cannot correctly be referred to as a database.
• A database is designed, built, and populated with data for a specific purpose. It has an intended
group of users and some preconceived applications in which these users are interested.
File-based Systems
A file system is a technique of arranging the files in a storage medium like a hard disk, pen drive, DVD,
etc. It helps you to organize the data and allows easy retrieval of files when they are required. It mostly
consists of different types of files like mp3, mp4, txt, doc, etc. that are grouped into directories. A file
system enables you to handle the way of reading and writing data to the storage medium. It is directly
installed into the computer with the Operating systems such as Windows and Linux.
Features of a File system - Here are important elements of the file system:
∙ It helps you to store data in a group of files.
∙ Files data are dependent on each other.
∙ C/C++ and COBOL languages were used to design the files.
∙ Shared File System Support
∙ Fast File System Recovery.
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 part of program code
• Hard to add new constraints or change existing ones
• Atomicity of updates
• Failures may leave database in an inconsistent state with partial updates carried out • E.g.
transfer of funds from one account to another should either complete or not happen at all
• Concurrent access by multiple users
• Concurrent accessed needed for performance
• Uncontrolled concurrent accesses can lead to inconsistencies
• E.g. two people reading a balance and updating it at the same time
• Security problems
1. File system is a software that manages and DBMS is a software for managing the
organizes the files in a storage medium database.
within a computer.
3. It doesn’t provide backup and recovery of It provides backup and recovery of data
data if it is lost. even if it is lost.
5. There is less data consistency in file system. There is more data consistency because of
the process of normalization.
7. File systems provide less security in DBMS has more security mechanisms as
comparison to DBMS. compared to file system.
There are several advantages of Database management system over file system. Few of them are as
follows:
∙ No redundant data: Redundancy removed by data normalization. No data duplication saves storage
and improves access time.
∙ Data Consistency and Integrity: As we discussed earlier the root cause of data inconsistency is data
redundancy, since data normalization takes care of the data redundancy, data inconsistency also been
taken care of as part of it
∙ Data Security: It is easier to apply access constraints in database systems so that only authorized user
is able to access the data. Each user has a different set of access thus data is secured from the issues
such as identity theft, data leaks and misuse of data.
∙ Privacy: Limited access means privacy of data.
∙ Easy access to data – Database systems manages data in such a way so that the data is easily
accessible with fast response times.
∙ Easy recovery: Since database systems keeps the backup of data, it is easier to do a full recovery of
data in case of a failure.
∙ Flexible: Database systems are more flexible than file processing systems.
Disadvantages of DBMS:
∙ DBMS implementation cost is high compared to the file system
∙ Complexity: Database systems are complex to understand
∙ Performance: Database systems are generic, making them suitable for various applications. However
this feature affect their performance for some applications
∙ Hierarchical: This type of DBMS employs the "parent-child" relationship of storing data. This type of
DBMS is rarely used nowadays. Its structure is like a tree with nodes representing records and branches
representing fields. The windows registry used in Windows XP is an example of a hierarchical
database. Configuration settings are stored as tree structures with nodes.
∙ Network DBMS: This type of DBMS supports many-to-many relations. It usually results in complex
database structures. RDM Server is an example of a database management system that implements the
network model.
∙ Relational DBMS: This type of DBMS defines database relationships in the form of tables, also known
as relations. Unlike network DBMS, RDBMS does not support many to many relationships. Relational
DBMS usually have pre-defined data types that they can support. It is the most popular DBMS type in
the market. Examples of relational database management systems include MySQL, Oracle, and
Microsoft SQL Server database.
∙ Object-Oriented Relation DBMS: This type supports the storage of new data types. The data to be
stored is in the form of objects. The objects to be stored in the database have attributes (i.e., gender,
ager) and methods that define what to do with the data. PostgreSQL is an example of an object oriented
relational DBMS.
• Tools are include packages for database design, performance monitoring, natural language or
graphical interfaces, prototyping, simulation, and test data generation.
3) Operators and maintenance personnel: This person who conduct execution operation and
maintenance activities of the actual hardware and software environment surrounding the databasesystem.