02 - Database System Concepts and Architecture-Ver2 PDF
02 - Database System Concepts and Architecture-Ver2 PDF
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
University of Indonesia
CSF2600700
Basis Data
Term 1 - 2012/2013
1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
University of Indonesia
Database System
Concepts and
Architecture
2
Acknowledgement
3
Outline
• Data Models
✤ Categories of Data Models
✤ History of Data Models
• Schema
✤ Three-Schema Architecture
• DBMS Component
• DBMS Architecture
4
Data Models
• Data Model:
✤ A set of concepts to describe the structure
of a database, and certain constraints that
the database should obey.
• Object-Relational Models:
✤ Most Recent Trend.
✤ Started with Informix Universal Server.
✤ Exemplified in the latest versions of
Oracle-10g, DB2, and SQL Server etc.
systems.
10
Network Graphical Representation
Courses
Course#* Title Descrip
Prereq Formats
PCourse#* Title Section#* Quarter Campus
Takes Teaches
Student Faculty
SSN#* Name GPA SSN#* Name Phone
11
Hierarchy Graphical Representation
Courses
Course#* Title Descrip
1 1
n
n
Prereq Formats
PCourse#* Title Section#* Quarter Campus
1
1
n
1
Student Faculty
SSN#* Name GPA SSFaN#* Name Phone
12
Relational Model
• Relational Model of Data Based on the Concept of a
Relation
14
Entity Relationship (ER) Data Model
16
Schemas
• Database Schema: The description of a
database. Includes descriptions of the database
structure and the constraints that should hold on
the database.
18
Database Schema Vs. Database State
• Distinction
✤ The database schema changes very
infrequently. The database state changes every
time the database is updated.
✤ Schema is also called intension, whereas state
is called extension.
19
Three-Schema Architecture - 1
20
Three-Schema Architecture - 2
21
Another view: Three Schema Architecture
22
Three-Schema Architecture - 3
• Defines DBMS schemas at three levels:
✤ Internal schema at the internal level to
describe physical storage structures and
access paths. Typically uses a physical data
model.
✤ Conceptual schema at the conceptual level to
describe the structure and constraints for the
whole database for a community of users.
Uses a conceptual or an implementation data
model.
✤ External schemas at the external level to
describe the various user views. Usually uses
the same data model as the conceptual level.
23
Conceptual Schema
• Describes the Meaning of Data in the
Universe of Discourse
✤ Emphasizes on General, Conceptually
Relevant, and Often Time Invariant
Structural Aspects of the Universe of
Discourse
24
External Schema
• Describes Parts of the Information in
the Conceptual Schema in a form
Convenient to a Particular User Group’s
View
25
Internal Schema
• Describes How the Information
Described in the Conceptual Schema is
Physically Represented in a Database
to Provide the Overall Best
Performance
26
Unified Example of Three Schemas
27
Data Independence
• Ability that Allows Application Programs Not Being
Affected by Changes in Irrelevant Parts of the
Conceptual Data Representation, Data Storage
Structure and Data Access Methods
29
Data Independence
30
Physical Data Independence
Physical
31
Logical Data Independence
Logical
32
DBMS Languages - 1
• Data Definition Language (DDL): Used by
the DBA and database designers to specify the
conceptual schema and internal schema of a
database and any mapping between the two.
34
DBMS Language - 3
35
DBMS Interfaces
37
The Database System Environment
• Main DBMS Modules
✤ DDL Compiler
✤ DML Compiler
✤ Ad-hoc (Interactive) Query Compiler
✤ Run-time Database Processor
✤ Stored Data Manager
✤ Concurrency/Back-Up/Recovery Subsystem
39
Database System Utilities
• Application Development
Environments and CASE (computer-
aided software engineering) tools:
✤ Power builder, Builder, VB, Java, C, C++,
etc
✤ Ms. Visio, ER-Win, DBDesigner, etc
41
Centralized Architectures
42
Client-Server Architectures - 1
• Servers:
✤ Specialized Servers with Specialized
functions
✤ Ex. Database Server, File Server, Web
Server, Email Server
43
Client-Server Architectures - 2
• Client:
✤ Provide appropriate interfaces and a
client-version of the system to access and
utilize the server resources.
✤ Clients maybe diskless machines or PCs
or Workstations with disks with only the
client software installed.
✤ Connected to the servers via some form
of a network.(LAN: local area network,
wireless network, etc.)
44
Two Tier Client-Server Architecture
45
Logical two-tier client/server architecture
46
Three Tier Client-Server Architecture
48
Database Classification
49