Professional Documents
Culture Documents
What Is a DBMS?
A
Historical Perspective
Early
1960s
Historical Perspective
Late
1960s
Historical Perspective
1970
Edgar Codd, at IBMs San Jose Research Laboratory, pro
Historical Perspective
1980s
Relational data model consolidated its positio
Historical Perspective
Datasets
me.
DBMS
encompasses most of CS
Data Models
data model is a collection of concepts for des
cribing data.
A schema is a description of a particular collecti
on of data, using the a given data model.
The relational model of data is the most widely
used model today.
A
Levels of Abstraction
Physical
schema:
External
schema:
Schema (View):
Course_info(cid:string,enrollment:integer)
Data Independence
Applications
Concurrency Control
Concurrent
is e
Interleaving
Ensuring Atomicity
ensures atomicity (all-or-nothing propert
y) even if system crashes in the middle of a Xact.
Idea: Keep a log (history) of all actions carried ou
t by the DBMS while executing a set of Xacts:
DBMS
The Log
The
Log
Database Cache
Log Buffer
read
write
begin
Database
Database
Page
Page
commit, rollback
write
Volatile
Memory
Stable
Storage
Stable
Database
fetch
Database
Database
Page
Page
flush
Log
Log Entry
Entry
force
Stable
Log
Log
Log Entry
Entry
Database
administrator (DBA)
Structure of a DBMS
These layers
must consider
concurrency
control and
recovery
Summary
DBMS