Fundamental of Database Systems
Fundamental of Database Systems
database systems
Unit 1
Data modeling: A DBMS provides tools for creating and modifying data models, which define
the structure and relationships of the data in a database.
Data storage and retrieval: A DBMS is responsible for storing and retrieving data from the
database, and can provide various methods for searching and querying the data.
Concurrency control: A DBMS provides mechanisms for controlling concurrent access to the
database, to ensure that multiple users can access the data without conflicting with each other.
Data integrity and security: A DBMS provides tools for enforcing data integrity and security
constraints, such as constraints on the values of data and access controls that restrict who can
access the data.
Backup and recovery: A DBMS provides mechanisms for backing up and recovering the data
in the event of a system failure.
DBMS can be classified into two types: Relational Database Management System (RDBMS) and
Non-Relational Database Management System (NoSQL or Non-SQL)
RDBMS: Data is organized in the form of tables and each table has a set of rows and columns.
The data is related to each other through primary and foreign keys.
COMPONENTS OF DATABASE SYSTEM
ENVIRONMENT
The database system is divided into three components:
Query Processor,
Storage Manager,
Disk Storage
Query Processor
Storage Manager is a program that provides an interface between the data stored in the database and the queries received.
It is also known as Database Control System. It maintains the consistency and integrity of the database by applying the
constraints and executing the DCL statements. It is responsible for updating, storing, deleting, and retrieving data in the
database.
It contains the following components –
Authorization Manager: It ensures role-based access control, i.e,. checks whether the particular person is
privileged to perform the requested operation or not.
Integrity Manager: It checks the integrity constraints when the database is modified.
Transaction Manager: It controls concurrent access by performing the operations in a scheduled way that it
receives the transaction. Thus, it ensures that the database remains in the consistent state before and after the
execution of a transaction.
File Manager: It manages the file space and the data structure used to represent information in the database.
Buffer Manager: It is responsible for cache memory and the transfer of data between the secondary storage and
main memory.
Disk Storage