Documente Academic
Documente Profesional
Documente Cultură
customer records
employee records
billing information
management records
Access by a collection
of ad hoc programs
in C++, Java, PHP, etc.
users of
the data
There is no control or
coordination of what
these programs do
data stored as bits on disks
organized as files with the data
With a DBMS, we have:
applications
DBMS users of
the data
data
data definition data
description processor data
dictionary
application
application
DML: data manipulation language application
program(s)
application
program(s) users of
QL: query language program(s)
program(s) the data
GPL: general purpose languages
query processor
security manager
concurrency manager system
index manager configuration
languages
DDL:
data data
definition definition data
language processor data
dictionary
Anything you can do with a DBMS,
you can do with a file system, a network
and a heap of C code
query processor
software operating
security manager
between the data and
concurrency manager the applications can
index manager provide many
capabilities
in a generic way
data
definition data
processor data
dictionary
A DBMS provides
persistent objects, types and data structures
query processor
DBMS security manager
system concurrency manager
developers index manager system
database administrator
designer data (and DB
designer)
definition data
processor data
dictionary
Actors On the Scene
(people interested in the actual data):
database administrators
database designers
systems analysts and application programmers
end users
Database Administrators
acquiring a DBMS
managing the system
acquiring HW and SW to support the DBMS
authorizing access (security policies)
managing staff, including DB designers
Database Designers
develop new theory, new designs, new data models and new
algorithms to improve future database management systems
A database instance is the collective values of
all database objects at some point in time
also called the (data) instance or (database) state
Accounts
No PIN Balance constraint:
101 8965 10965.78 account.Balance must be non-negative
387 6643 652.55
543 4287 8720.12 any transaction withdrawing
more than $652.55 from acct 387
will violate this constraint
Accounts Accounts
No PIN Balance No PIN Balance
101 8965 10965.78 101 8965 10965.78
387 6643 652.55 387 6643 652.55
543 4287 8720.12 543 4287 10233.35
$500.00
$8720.12 $10233.35
$1983.23
happen
concurrently
Accounts Accounts
No PIN Balance No PIN Balance
101 8965 10965.78 101 8965 10965.78
387 6643 652.55 387 6643 50652.55
543 4287 8720.12 543 4287 8720.12
Sources of failure:
computer or operating system crash
disk failure
fire, theft, power outage, earthquake, operator errors, …
transaction = an indivisible unit of data processing