Introduction to database systems
Introduction to database systems
DATABASE SYSTEMS
Dr. Baljeet Kaur
AGENDA 2
What is Database?
Database Management System
DBMS Architecture
Types of Database
Relational and Non-Relational Databases
DBMS Schemas
DBMS Usage
Advantages & Disadvantages of DBMS
Why Learn DBMS?
Applications of DBMS
Data Abstraction and Data Independence
WHAT IS DATABASE?
DATABASE
https://www.oracle.com/ca-en/database/what-is-da
tabase/
5
SOFTWARE
• This is the set of programs used to control and manage the overall
database. This includes the DBMS software itself, the operating
system, the network software being used to share the data among
users, and the application program used to access data in the DBMS.
• This is the main component, as this the program which controls
everything. The DBMS software is more like a wrapper around the
physical database, which provides us with an easy-to-use interface
to store, access and update data.
• This software component is capable of understanding the database
access language and converts it into actual database commands to
execute or run them on the database.
• The software in DBMS environment includes operating system,
database management system, application programs, support utility
programs.
9
DATA
• The main task of DBMS is to process the data. Here database
are defined, constructed, and then data is stored, retrieved,
and updated to and form the database.
• It is the most important component of the database
management system. The database contains both the
metadata(data about data) and the actual(operational) data.
• DBMS exists to collect, store, process and access data, the
most important component. In a typical database , the user
saved data is present and meta data is stored.
• For example- when I store my name in a database, the DBMS
will store when the name was stored in the database, what is
the size of the name, is it stored as related data to some other
data, or is it independent, all this information is Metadata.
10
PROCEDURES
• These are the instructions and rules that assist on how to
use the DBMS, and in designing and running the
database, using documented procedures, to guide the
users that operate and manage it.
• Procedures are used to setup and install a new DBMS to
login and logout of DBMS software, to manage DBMS or
application programs, to take backup of the database,
and to change the structure of the database, etc.
PEOPLE 11
• The people are who control and manage the databases and
perform different types of operations on the database in the DBMS.
• The people includes databse administrator, software developer
and End user.
• Database administrator-database administrator is the one who
manages the complete database management system. DBA takes
care of the security of the DBMS, it’s availability, managing the
license keys, managing user accounts and access,etc.
• Software developer-This user group is involved in developing and
designing the parts of DBMs.
• End user- These days all the modern applications, web or mobile,
store user data. How do you think the do it? Yes, applications are
programmed in such a way that they collect user data and store
the data on DBMS system running on their server. End user are the
one who store, retrieve, update and delete data.
DBMS ARCHITECTURE 12
https://www.mongodb.com/resources/basics/databases/database-
16
TWO-TIER ARCHITECTURE
THREE-TIER ARCHITECTURE
• Most modern web
applications use a three-
tier architecture. In this
architecture, the clients
connect to a back end,
which in turn connects to
the database.
• An example of this type of
architecture would be a
React application that
connects to a Node.js back
end. The Node.js back end
processes the requests
and fetches the necessary
information from a
database such as
MongoDB Atlas, using the
native driver.
BENEFITS OF 18
THREE-TIER ARCHITECTURE
• Security: Keeping the database connection open to a single back end reduces
the risks of being hacked.
There are also other specialized types of databases, such as spatial databases, which
are used to store and analyze geographical data, and time-series databases, which
21
Physical schema: This is the lowest level of abstraction and describes the
physical organization of the data on a storage device.
Logical schema: This is the next level of abstraction and describes the
logical organization of the data in the database. It defines the structure of
the tables, columns, and relationships between different data elements.
External schema: This is the highest level of abstraction and describes
how users view the data. It defines how users interact with the database
and specifies which data is exposed.
23
APPLICATIONS OF DBMS
ADVANTAGES: 24
Data security: DBMSs provide many features to protect the data from
unauthorized access, such as user authentication, access controls, and
encryption.
Data integrity: DBMSs enforce rules to ensure that the data is accurate and
consistent, such as constraints that prevent data from being entered into the
database unless it meets certain conditions.
Concurrency control: DBMSs allow multiple users to access and update the
database simultaneously and provide mechanisms to ensure that the data
remains consistent and accurate.
Backup and recovery: DBMSs provide tools for backing up and restoring the
database in case of a failure or disaster.
25
DISADVANTAGES
• Some of the main disadvantages of DBMSs include the following:
• Tables: Tables are used to store data in a structured format, with rows
representing individual records and columns representing the
attributes of those records.
• Indexes: Indexes are used to speed up data retrieval from a table by
providing a way to quickly locate specific rows based on the values in
one or more columns.
• Views: Views are virtual tables derived from one or more tables and
can present a different perspective on the data.
THANK
YOU
https://medium.com/@mangavkarsonali
/components-of-dbms-environment-f4f0
651e6daf
https://www.mongodb.com/resources/b
asics/databases/database-architecture
https://www.simplilearn.com/tutorials/
dbms-tutorial#what_is_database