Chapter 2 Database System Concepts and Architecture
Chapter 2 Database System Concepts and Architecture
The DBTG recognized the need for a two- ANSI-SPARC recognized the need for a
level approach with a system view called the three-level approach with a system
schema and user views called subschemas. catalog.
The users’ view of the database. This level describes that part of the
For example, one user may view dates in the form (day, month, year),
The community view of the database. This level describes what data is stored
Data Model:
A set of concepts to describe the structure of a database, the
operations for manipulating these structures, and certain constraints
that the database should obey.
Data Model Structure and Constraints:
Constructs are used to define the database structure
2. A manipulative part, defining the types of operation that are allowed on the
data (this includes the operations that are used for updating or retrieving data
from the database and for changing the structure of the database);
3. Possibly a set of integrity constraints, which ensures that the data is accurate
The way the DBMS and the operating system perceive the data.
Provide concepts that describe details of how data is stored in the
computer.
The physical representation of the database on the computer.
The internal level is concerned with such things as:
Storage space allocation for data and indexes;
Record descriptions for storage (with stored sizes for data items);
Record placement;
Data compression and data encryption techniques.
Categories of Data Models
14
Object-based data models use concepts such as entities, attributes, and relationships.
decade before the relational data model, so their links to traditional file
processing concepts are more evident.
Relational data model
Slide
2- 18
In the relational model, data and relationships are represented as tables, each
The hierarchical model organizes data into a tree-like structure, where each
That order is used as the physical order for storing the database.
child records.
It was most popular in the 70s after it was formally defined by the Conference
models, the most common ones being the unifying model and the
frame memory.
Schemas, Mappings, and Instances
Slide
2- 22
Database Schemas-
A database schema is the skeleton structure that
represents the logical view of the entire database.
It defines how the data is organized and how the
relations among them are associated.
It formulates all the constraints that are to be applied
on the data.
Schemas versus Instances
23
Database State:
Database State:
Refers to the content of a database at a moment in time.
Valid State:
A state that satisfies the structure and constraints of the
database.
Database Schema vs. Database State
26
Distinction
STUDENT
Smith 17 1 CS
Brown 8 2 CS
Three-Schema Architecture
29
The capacity to change the internal schema without having to change the
conceptual schema.
For example, the internal schema may be changed when certain file structures
are reorganized or new indexes are created to improve database performance
Data Independence (continued)
37
conceptual schema
Storage definition language (SDL)- Specifies the internal schema
Data Definition Language (DDL):
41
The DDL statement is used to identify description of the schema construct and
Example:
DDL is Used by the DBA and database designers to specify the conceptual
schema of a database.
In many DBMSs, the DDL is also used to define internal and external schemas
(views).
In some DBMSs, separate Storage Definition Language (SDL) And View
Definition Language (VDL) are used to define internal and external schemas.
SDL is typically realized via DBMS commands provided to the DBA
and database designers
Data Manipulation Language (DML)
44
DBMS interface- is a user interface which allows for the ability to input
User-friendly interfaces
Forms-based interfaces
Centralized DBMS:
Combines everything into single system including:-
DBMS software,
hardware,
application programs, and
user interface processing software.
User can still connect through a remote terminal –
however, all processing is done at centralized site.
A Physical Centralized Architecture
54
Basic 2-tier Client-Server Architectures
55
Three-Schema Architecture
Data Independence
Classification of DBMSs
Questions
Slide
2- 64