Unit-1-Database System Architecture
Unit-1-Database System Architecture
Management
System
Introduction
Database is an integral part of real life application system. The
course will enable student understand the different issues
involved in the design and implementation of a database
system. Student will learn the physical and logical database
designs, database modeling, relational, hierarchical, and
network models.
Database
Store Retrieve
Unit–1
Database System
Architecture
What is Database Management System (DBMS)?
e.g. Books Database in e.g. Viewing result in GTU e.g. Oracle, My SQL
Library, Student Database website, Searching exam SQL Server,
in University etc papers in GTU website
What is Database Management System (DBMS)?
Data - Fact that can be recorded or stored
• e.g. Person Name, Age, Gender and Weight etc.
DBMS - A Database Management System is a collection of
interrelated data and a set of program to access those data.
OR
DBMS - A Database Management System is a software for
creating and managing databases. It provides a systematic way
to create, retrieve, update and manage data.
Database management
system can remove such Same data is stored at
data redundancy by four different places
storing data centrally.
Sum of both
account before
transfer is 3000
Person A Person B
Account A Transfer 500 Account B
Bal : 2000 Bal : 1000
Step 1 : Debit 500 from Account A
Step 2 : Credit 500 into Account B
Sum of both
Sum of both account account is 2500
after transfer is 3000 So Inconsistent
DBMS Vs File System(cont…)
5. Allow to implement integrity constraints
EmpName Address MobileNo Subject
Vatsal Patel Navsari 9898052340 PPS
Must contain
exact 10 digits
Must between
0 and 10
Want
Wanttoto
access
access
Database management
system allows more than
one user to access same
data simultaneously.
Information
• When data is processed, organized, structured or presented in a given
context so as to make it useful, it is called information.
• Example: Percentage
• Percentage = (DBMS + DS + DF) / 3
(85 + 80 + 75) / 3 = 80%
Basic Terms (cont…)
Metadata
• Metadata is data about data.
• Data such as table name, column name, data type, authorized user and
user access privileges for any table is called metadata for that table.
Faculty
EmpName Address Mob Subject Salary
Vatsal Patel Navsari 1234 PPS 50000
Faculty
EmpName Address Mob Subject Salary
Vatsal Patel Navsari 1234 PPS 50000
Basic Terms (cont…)
Instances
• Databases change over time as information is inserted and
deleted.
• The collection of information stored in the database at a
particular moment is called instance of the database.
Schemas
• The overall design of the database is called the database
schema.
• Schemas are changed frequently.
Data Abstraction (3-tier architecture)
3 Levels ANSI SPARC Database System
User 1 User 2 User 3
How data are viewed View
by each users? View 1 View 2 View 3
Level
Database
Data Abstraction (3-tier architecture)
Mapping
Want to access some data
Request
Conceptual
Level
Internal
Process of transforming Level
requests and results Result
between the three
levels is called mapping
Database
Types of Mapping
Want to access some data
External/Conceptual
Mapping
• Which objects on the Conceptual
conceptual level correspond to Level
the objects requested on a
particular user's external view Conceptual/Internal
• Several mapping Mapping
Internal
Level
• How conceptual records
and fields stored
• One mapping
Database
Data Independence
Want to access some data