RDBMS - M01 - C01 - PPT - Overview of Database Management System
RDBMS - M01 - C01 - PPT - Overview of Database Management System
Overview of Database
Management System
Aim
To provide knowledge on basic concepts of Database
Management System
Instructional Objectives
Objectives of this chapter are:
• Describe purpose of DBMS with its components
• Explain views of data
• Explain different data models
• Describe the types of Database languages used for data management
• Explain database System Architecture and data independence
• Explain the responsibilities of database administrator and database users
Purpose of DBMS with its components
Database Management System (DBMS)
• A Database Management System (DBMS) is a software system designed to store, manage, and
facilitate access to databases.
• Collection of interrelated data
• Set of programs to access the data
• DBMS contains information about a particular enterprise
• DBMS provides an environment that is both convenient and efficient to use.
• Database Applications:
• Banking: all transactions
• Airlines: reservations, schedules
• Universities: registration, grades
• Sales: customers, products, purchases
SQL
Database
Application DBMS
Programs
Users Database
DBMS Components
Characteristics of DBMS
• A modern DBMS has the following characteristics −
• Real-world entity − A modern DBMS is more realistic and uses real-world entities to design its
architecture. It uses the behavior and attributes too. For example, a school database may use students as
an entity and their age as an attribute.
• Relation-based tables − DBMS allows entities and relations among them to form tables. A user can
understand the architecture of a database just by looking at the table names.
• Less redundancy − DBMS follows the rules of normalization, which splits a relation when any of its
attributes is having redundancy in values. Normalization is a mathematically rich and scientific process
that reduces data redundancy.
• Consistency − Consistency is a state where every relation in a database remains consistent. There exist
methods and techniques, which can detect attempt of leaving database in inconsistent state. A DBMS can
provide greater consistency as compared to earlier forms of data storing applications like file-processing
systems.
• Query Language − DBMS is equipped with query language, which makes it more efficient to retrieve and
manipulate data. A user can apply as many and as different filtering options as required to retrieve a set
of data. Traditionally it was not possible where file-processing system was used.
Characteristics of DBMS
• Multiuser and Concurrent Access − DBMS supports multi-user
environment and allows them to access and manipulate data in parallel.
Though there are restrictions on transactions when users attempt to handle
the same data item, but users are always unaware of them.
• Multiple views − DBMS offers multiple views for different users. A user who
is in the Sales department will have a different view of database than a
person working in the Production department. This feature enables the
users to have a concentrate view of the database according to their
requirements.
• Security − DBMS offers many different levels of security features, which
enables multiple users to have different views with different features.
Advantages of DBMS.
• Due to its centralized nature, the database system can overcome the disadvantages of the file system-based system
• Data abstraction: Application program should not be exposed to details of data representation and storage.
DBMS provides the abstract view that hides these details.
• Efficient data access: DBMS utilizes a variety of sophisticated techniques to store and retrieve data efficiently.
• Data integrity and security: Data is accessed through DBMS, it can enforce integrity constraints. E.g.: Inserting
salary information for an employee.
• Data Administration: When users share data, centralizing the data is an important task, Experience professionals
can minimize data redundancy and perform fine tuning which reduces retrieval time.
• Concurrent access and Crash recovery: DBMS schedules concurrent access to the data. DBMS protects user from
the effects of system failure.
• Reduced application development time: DBMS supports important functions that are common to many
applications.
Quiz / Assessment
1) Data is______________
a. Collection of related data items
b. Facts or figures, or information that is stored in or used by a computer
c. Collection of related records
d. Collection of related relations
Conceptual
Conceptual Schema
Level
Databas
e
Views of data in DBMS
• A collection of interrelated data and a set of programs that allow users to access and modify
these data is a database system. The main purpose of database system is to provide users with an
abstract view of data. Certain details on how the data is stored and maintained is hidden by
database system.
• Data Abstraction:
• A system must retrieve data efficiently for it to be usable. Complex data structures are used by
designers to represent the data in database because of need for efficiency. To simplify user
interactions, designers hide the complexity through various levels of abstraction from database
users. The process of hiding irrelevant details from user is called as data abstraction.
• There are various levels of abstraction in which you can view data. It includes:
• Physical View
• Conceptual View
• External View
Views of data in DBMS
• Physical View: The physical view or internal schema is the lowest level of
abstraction that explains how the data like files, indices, etc., is actually stored
on the random access disk system. It also describes the complex low-level data
structures.
• Conceptual View: The conceptual view is also referred to as logical level is the
next higher level of abstraction. This level describes what data are stored in the
database and what relationships exist among those data i.e., the logical level
describes the entire database in terms of small number of relatively simple
structures.
• External View: The external view or external schema is the highest level of
abstraction. This view level of abstraction is only a part of the entire database
and simplifies the interaction between user and system. It provides various
views for the same database. In the relational model, this view level presents
data as a set of relations.
Quiz / Assessment
1) The _______data structures are described in the physical level.
a. Complex high-level c. Simple low-level
b. Complex low-level d. Simple high-level
2) The three levels of data abstraction are ________, ______ and ______
a. Physical level, logical level and view level
b. Physical level, lower level and view level
c. Physical level, logical level and background level
d. Physical level, upper level and view level
Different Data Models
Explain different data models
Data model is defined as
“A collection of conceptual tools for describing data, data relationships, data
semantics and consistency constraints.”
• Provides the design of a database at the physical, logical and view levels
• Defines how data is connected to each other and how they are processed and
stored inside the system.
Explain different data models
Entity Relationship
Relational
Data Model
Object-Based Relationship
Semi-Structured
CREATE ALTER
DDL
DROP RENAME
Describe the types of database languages used for data management
Data Manipulation Language [DML]
• Permits user to manipulate data in database
• DML commands are not auto-committed
DML
Describe the types of database languages used for data management
Data Control Language [DCL]
• Used to create privileges for users in accessing and
manipulating database
• Handles security issues in database
GRANT REVOKE
DCL
Describe the types of database languages used for data management
Transaction Control Language [TCL]
• Used to manage transactions in database
• Allows statements to be grouped together into logical transactions
COMMIT
ROLLBACK TCL
SAVEPOINT
Database System Architecture and Data
Independence
Meta Data
• A metadata (also called the data dictionary) is the data about the data. It is the
self describing nature of the database that provides program-data
independence. It is also called as the System Catalog. It holds the
following information about each data element in the databases, it normally
includes:
• + Name
• + Type
• + Range of values
• + Source
• + Access authorization
Operating
System
DBMS
Central
Computer
Database
Computer Systems
Centralised Database System
Explain database System Architecture and data independence
Server
Distributed Systems
Explain database System Architecture and data independence
MEMORY
Parallel Systems
Responsibilities of DBA and database users
Explain the responsibilities of database administrator and database
users
• Application Programmers: They are the developers who interact with the
database by means of DML queries.
• Sophisticated Users: They are database developers, who write SQL queries to
select/insert/delete/update data. They do not use any application or programs
to request the database.
• Specialized Users: These are also sophisticated users, but they write special
database application programs. They are the developers who develop the
complex programs to the requirement.
• Naive Users: These are the users who use the existing application to interact
with the database. For example, online library system, ticket booking systems,
ATMs etc which has existing application and users use them to interact with
the database to fulfill their requests.
Explain the responsibilities of database administrator and database
users
• Installing and upgrading the DBMS Servers
• Performance tuning
• Security
• Documentation
Database Interfaces
• Different Interfaces
• Menu-Based Interfaces for Web Clients or Browsing
• Present users with list of options (menus)
• User can fill out form to insert new data or fill out only certain entries.
o The three levels of data abstraction are Physical level, Logical level and view level
o The different categories of data models are: Relational model, The Entity-Relationship Model,
Object-based Data Model and Semi-structured Data Model
o The four different types of database- system users are Naïve users, Application programmers,
sophisticated users and specialised users
e-References
• Codex.. DBMS. Retrieved January 07, 2016, from http://codex.cs.yale.edu/avi/db-
book/db4/slide-dir/ch1-2.pdf
• Eazynotes. Introduction to DBMS. Retrieved January 07, 2016, from
http://www.eazynotes.com/pages/database-management-system/introduction-to-
dbms.html
• CS.Sfu. Introduction to DBMS. Retrieved on January 13, 2016, from
http://www.cs.sfu.ca/CourseCentral/354/zaiane/material/notes/Chapter1/node1.h
tml
• Tutorials Point. Database Management System. Retrieved on January 15, 2016 from
http://www.tutorialspoint.com/dbms/
External Resources
1. WAGmob. (2016). DBMS . USA: GoLearningBus.Forouzan.
2. Bagui, S., & Earp, R. (2012). Database Design Using Entity-Relationship Diagrams USA:
Library of Congress.