Lecture 3 - History of Database, Types of Databases, Components of DBMS
Lecture 3 - History of Database, Types of Databases, Components of DBMS
Lecture 3
History of Database
File System
3 Levels of Abstraction
Types of Databases
Components of DBMS
Zeshan Ahmer
Brief History of Database Systems
Inventory
User
Control
Customer
User
Order
SQL
DBMS
C/C++
Programs Shared facilities:
• Backup and recovery
• Data storage and Databases
Applications access modules
• Programming tools,
etc. 6
File Systems
7
Limitations of a File System
Separated and Isolated Data - Coordination and
representation of data is difficult
Data Duplication - Wastes space and can lead to
data integrity (inconsistency) problems
Application Program Dependencies - Changes to a
single file can require changes to numerous
application programs
Lack of Data Sharing - Difficult to control access to
files
8
Purpose
Purposeof
ofDatabase
DatabaseSystems
Systems
9
Purposes
Purposesof
ofDatabase
DatabaseSystems
Systems
10
Integrated Database Environment
Byte
Data-item or field
Record
File or Table
Database
Database management systems
11
Unit of measurement of data
12
Integrated Database Environment Data
Storage Hierarchy
Database
File
Record
Field
Character
(byte)
13
Advantages of Database Approach
15
Disadvantages of Database Approach
17
3-level architecture
User/View Level v1 v2 v3
Logical Level
Physical Level
18
3-Level Architecture
Logical Level:
e.g. tables
STUDENT (roll number, name)
COURSE (roll number, course id, grade)
Physical Level:
how are these tables stored, how many bytes,
restrictions etc
19
User/View Level, e.g.:
v1: select roll number from student
v2: select roll number , course id from course
20
Three
ThreeLevels
Levelsof
ofAbstraction
Abstraction
Logical
Company database
view
Physical
Files on disks
view
21
View Level:
Define a subset of the database for a particular
application
Logical Level:
Describes data stored in database, and the
relationships among the data
22
Physical Level:
Describe how a record is stored on disks.
e.g., “Divide the customer records into 3
partitions and store them on disks 1, 2 and
3”
23
Databases
Types & Physical Locations
Shared Databases
Shared by users in an organization within one
location
Typically found on local-area networks
24
Databases
Types & Physical Locations
Distributed Databases
Database stored on different computers in
different locations connected by a client / server
type of network
Centralized Databases
Database stored in one location that can be
accessed by different computers in different
locations via communication networks
26
Database Administrator (DBA)
The person who co-ordinates all related
activities and needs for an organization’s
database
Responsibilities include:
database design, implementation and operation
user coordination
system security
backup and recovery
performance monitoring
27
schema definition (‘logical’ level)
Physical schema (storage structure,
access methods)
schemas modifications
granting authorizations
28
Components of DBMS
Data
Hardware
Software
Users
29
Contents of a Database
A Database contains:
User Data
Metadata
Indexes
30
User Data
Data users work with directly by entering,
updating and viewing
For our purposes, data will be generally
stored in tables with some relationships
between tables
Each table has one or more columns. A
set of columns forms a database record
31
Meta Data
35
Roles Involve In Integrated Database Environment
Database Administrator
Application Programmers
End-users
36
Files Management
Basic File Operations
37
Files Management
File Manipulation Operations
Some operations are used for file
manipulation:
Creation of tables
Insertion of records
Deletion of records
Modification of records
Sorting of records
……
38
Files Management
Types Of Files
39
Files Management
Types Of Files
Table Files
Table files are permanent files containing
reference data used when processing
transaction files
Report Files
These are the collected contents of individual
repots or documents produced by the system
40
Files Management
Data Processing Methods
Online Processing
Also called “real-time” processing
Transactions entered into a computer systems as
they take place, and update the master files as the
transactions occur
Storage must be online and fast
May require expensive infrastructure
Used in financial institutions, airline etc
41
Files Management
Data Processing Methods
Batch Processing
Data collected over certain period of time in a
transaction file and then processed against a master
file all at one time
Less expensive but slow procedure
Uses “offline” storage method
Widely used in financial institution’s computerized
system
42