DBMS Full
DBMS Full
Introduction
What is a database?
software
package designed to store,
manage and provide access to
databases.
?
Why Study Databases??
Shift from computation to information
A data model :
– is a collection of concepts for describing data.
A schema :
– is a description of a particular collection of data,
using the given data model.
The relational model of data
– The most widely used model today.
– Main concept: relation, basically a table with rows
and columns.
– Every relation has a schema, which describes the
columns, or fields.
Data Definition Language (DDL)
Specification notation for defining the
database schema
DDL compiler generates a set of tables
stored in a data dictionary
Data dictionary contains metadata (data
about data)
Data storage and definition language –
special type of DDL in which the storage
structure and access methods used by the
database system are specified
Data Manipulation Language (DML)
Utilize
locking of resources and other
protocols for guaranteeing consistency.
System Crash : Ensuring Atomicity
If system crashes in the middle of a
Xact, then DBMS ensures atomicity
Second generation
– Relational
Third generation
– Object-Relational
– Object-Oriented
Overall System Structure
naïve users application sophisticated database users
(tellers, agents, etc) programmers users administrator
storage
transaction buffer manager manager
manager
File manager
CIS-552 Introduction 32
Summary
DBMS used to maintain & query large datasets.
Benefits include recovery from system crashes,
concurrent access, quick application
development, data integrity and security.
Levels of abstraction give data independence.
A DBMS typically has a layered architecture.