0% found this document useful (0 votes)
67 views10 pages

Chapter 2 DB

This document summarizes key concepts in database system architecture and design. It discusses the tight integration of user interfaces, DBMS, and stored data. It also describes conceptual data models that define data structure, relationships and constraints. Database schemas define the structure and organization of data separately from actual stored data instances. Effective database design incorporates three schema layers: internal, conceptual, and external/user views. Data independence principles aim to isolate changes in one schema layer from requiring changes in other layers. Database languages like DDL and DML are used to define and manipulate data respectively.

Uploaded by

r.ghannam5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views10 pages

Chapter 2 DB

This document summarizes key concepts in database system architecture and design. It discusses the tight integration of user interfaces, DBMS, and stored data. It also describes conceptual data models that define data structure, relationships and constraints. Database schemas define the structure and organization of data separately from actual stored data instances. Effective database design incorporates three schema layers: internal, conceptual, and external/user views. Data independence principles aim to isolate changes in one schema layer from requiring changes in other layers. Database languages like DDL and DML are used to define and manipulate data respectively.

Uploaded by

r.ghannam5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Chapter 2

DATABASE SYSTEM CONCEPT AND


ARCHITECTURE
• DBMS Architecture
– Tightly integrated systems architecture: the user
interface + DBMS + data are located in one place.
– Client-server system architecture:
Client Module Server Module
Request

User Interface DBMS + Data


Reply

Ala Hamarsheh -- 1
ahamarsheh@aauj.edu
• Data Model: a collection of concepts that used to
describe the structure of database.
➔ Structure: data type, constraints, and relationships.
– We use the data model to achieve some levels of data
abstraction.
– The data model should include a set of basic operations for
retrievals and updates on the DB.
• CATEGORIES OF DATA MODEL:
– High level: provide concepts that are close to the way
users perceive data (SQL).
– Low Level: provide concepts that describe the details
of how data is stored in the computer.
– Representational (implementation) data model:
provide concepts that may be understood by end
users but that are not too far from the way data is
organized within the computer (Entities)
Ala Hamarsheh -- 2
ahamarsheh@aauj.edu
• Schemas:
– Any data model should distinguish between the
description of the database and the database itself.
➔ The description of DB is called DB schema.
– Schema diagram: displays the structure of each
record type, BUT not the actual instances of
records.

STUDENT
StID SNAME CLASS MAJOR

This Schema will be Schema


changed Infrequently Construct

Ala Hamarsheh -- 3
ahamarsheh@aauj.edu
– Database State: the current set of instances or
occurrences.
➔ DB State will be changed frequently.
Notes:
➢ When we define new database we specify DB schema.
➢ Every time an update operation is applied to DB, we get
another DB state.
➢ DBMS responsible for ensuring that every state of the
database is a valid state → satisfies the structure and
constrains specified in the database schema.
➢ DBMS stores the description of the schema constructs
and constrains in the meta-data (catalog files).
➢ Schema is called intension whereas state is called
extension.
Ala Hamarsheh -- 4
ahamarsheh@aauj.edu
THREE SCHEMA ARCHITECTURE:
– Internal Level: to describe the data storage structure
and access paths-typically uses physical data model.
– Conceptual Schema: to describe the structure and
constraints for the whole database.-uses
implementational data model.
– External Level: to describe the various user views.
→ We need mapping among these levels.

Ala Hamarsheh -- 5
ahamarsheh@aauj.edu
Ala Hamarsheh -- 6
ahamarsheh@aauj.edu
DATA INDEPENDENCE:
Changing the schema of one level of the DB system
doesn't require to change the schema of the next higher
levels.
Two types of data independence:
– Logical Data-Independence: the capacity to change
the conceptual schema without having to change the
external schema and their application programs.
– Physical Data-Independence: the capacity to
change the internal schema without having to change
the conceptual schema.

Ala Hamarsheh -- 7
ahamarsheh@aauj.edu
DBMS LANGUAGES:
– Data Definition language (DDL): used by DBA or
DB designers to specify the conceptual schema of a
DB.
• In many DBMSs the DDL is also used to define
internal and external schemas.
• In some DBMSs separate storage definition
language (SDL) and view definition language are
used to define internal and external schema.
– Data Manipulation Language (DML): used to
specify database retrievals and updates.

Ala Hamarsheh -- 8
ahamarsheh@aauj.edu
DML Commands can be:
1. Embedded in a general purpose programming
language (PL) like Java, Cobol, C++, .. Etc
2. Stand-alone, that applied directly (Query Language).
TWO TYPES OF DML:
– High-Level or Nonprocedural DML: DML
statements must be identified within the program so
that they can be extracted by the pre-compiler and
accessed by DMBS.
– Low-Level or Procedural DML: retrieves individual
records from DB and process each one separately.
➔ Use Looping

Ala Hamarsheh -- 9
ahamarsheh@aauj.edu
Ala Hamarsheh -- 10
ahamarsheh@aauj.edu

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy