Dbms Presentation
Dbms Presentation
What is a Database?
A database is any organized collection of data.
Some
may
Database Management
Database management is the process of
Data
Data is nothing but a random, unorganized
collection of indications or measurements of
certain qualities or attributes relating to an
entity,
recorded
either
in
alphabetical,
numerical, alphanumerical, voice, image, text
or any other form.
Examples
person names
telephone numbers
salaries
addresses
Data Processing
Data
Processing
Informatio
n
Data Processing
Capturing
What is information?
What is data?
Data
can
be
defined in many
ways. Information
science
defines
data
as
unprocessed
information.
Characteristics of Information
It
It
It
It
Why do we need a
Database?
Keep records of our:
Clients
Staff
Volunteers
To keep a record of
activities
and
interventions;
Keep sales records;
Develop reports;
Perform research; etc.
Purpose of Database
Systems
In the early days, database applications were built
problems
Is to transform
Data
Information
Knowledge
Action
DBMS-Concept
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
Sales:
customers,
products,
purchases
Manufacturing:
production,
inventory, orders, supply chain
Human
resources:
employee
records, salaries, tax deductions
Databases touch all aspects of our
lives
DBMS-Definition
DBMS is basically a software which performs the
functions of defining,
controlling the database.
creating,
revising
and
DBMS-illustration
Components of DBMS
Transaction Management
Ensuring Atomicity
Concurrency Control
Recovery Management
Security Management
Language Interface
Storage Management
Database Catalog Management
Transaction Management
A transaction is a sequence of database operations that
Ensuring Atomicity
DBMS ensures atomicity (all-or-nothing property)
by the DBMS.
Concurrency Control
Concurrency Control is the database management activity
Concurrency Control
Concurrent execution of user programs is
Recovery Management
Ensures that aborted or failed transaction
Security Management
Refers to the protection of data against unauthorized
Language Interface
Provides support languages used for the definition and
Storage Management
The DBMS provides a mechanism for management of
Data Catalog
Management
Data Catalog or Data Dictionary is a system database
Structure of a DBMS
A typical DBMS has a
layered architecture.
This is one of several
possible architectures;
each system has its
own variations.
These layers
must consider
concurrency
control and
recovery
Query Optimization
and Execution
Relational Operators
Files and Access Methods
Buffer Management
Disk Space Management
DB
Database Languages
Data Definition Language (DDL)
define relation, schemes and constraints.
DBMS Approach
Database
DBMS approach
dictionary
Data dictionary contains metadata (i.e., data about data)
Database schema
Data storage and definition language
Specifies the storage structure and access methods used
Integrity constraints
Domain constraints
Referential integrity (e.g. branch_name must correspond to a valid
branch in the branch table)
Authorization
An Example
The Wine Cellar Database:
Cellar:
Bin
Wine
Comments
2
Chardonnay
1
85
3
Chardonnay
6 Chardonnay
Thanksgiving
12
Jo. Riesling
83
Late Harvest
16
Jo. Riesling
83
Very dry
43
Cab. Sauvignon
50
Pinot Noir
85
Harvest
51
Pinot Noir
86
Retrieval:
Producer
Louis Martini 81
5
Chappellet
82
Buena Vista
Sattui
Result:
Bin
2
6
50
84
85
82
82
Robt. Mondavi 77 12
Mirassou
77
3
Wine
Chardonnay
Chardonnay
Pinot Noir
83
Producer
Buena Vista
Chappellet
Mirassou
87
2
An Example
(cont.)
Deletion:
Result:
Bin
Wine
Comments
43
51
Cab. Sauvignon
Pinot Noir
Producer
Robt. Mondavi
77
12
Ch. St. Jean
78
2
87
86
Insertion:
Result:
Comments
43
51
53
Cab. Sauvignon
Pinot Noir
Pinot Noir
1
Robt. Mondavi
77
12
Ch. St. Jean
78
2
Franciscan
86
for Joan
79
87
86
1-37
An Example
(cont.)
Update
DML:
UPDATE Cellar
SET Bottles = 4
WHERE Bin = 51;
Result:
Bin
Wine
Ready Comments
43
Cab. Sauvignon
12
87
51
Pinot Noir
4
86
53
Pinot Noir
79
1
Producer
Year
Robt. Mondavi
Bottle
77
78
Franciscan
for Joan
1-38
Data Types
rolled back)
Concurrent-Access Anomalies
Security Problems
Disadvantages of Using a
DBMS
Confidentiality, Privacy and Security
(centralized information)
Data Quality (multi users-damage of data)
Data Integrity (concurrency-accuracy)
Enterprise Vulnerability (centralizedunauthorized access of data)
The Cost of Using a DBMS (installation
cost)
Experts (specialised personnel)
Levels of Abstraction
Physical level: describes how a record (e.g.,
customer) is stored.
Logical level: describes data stored in database,
and the relationships among the data.
type customer = record
customer_id : string;
customer_name : string;
customer_street : string;
customer_city : string;
end;