SlideShare a Scribd company logo
1
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:
User Interface DBMS + Data
Client Module Server Module
Request
Reply
Ala Hamarsheh --
ahamarsheh@aauj.edu
2
• 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 --
ahamarsheh@aauj.edu
3
• 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.
StID SNAME CLASS MAJOR
STUDENT
Schema
Construct
This Schema will be
changed Infrequently
Ala Hamarsheh --
ahamarsheh@aauj.edu
4
– 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 --
ahamarsheh@aauj.edu
5
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 --
ahamarsheh@aauj.edu
6
Ala Hamarsheh --
ahamarsheh@aauj.edu
7
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 --
ahamarsheh@aauj.edu
8
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 --
ahamarsheh@aauj.edu
9
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 --
ahamarsheh@aauj.edu
10
Ala Hamarsheh --
ahamarsheh@aauj.edu
Ad

More Related Content

Similar to Chapter 2 dbChapter 2 dbChapter 2 dbChapter 2 db.ppt (20)

Database system
Database systemDatabase system
Database system
ikjsamuel
 
Database system
Database systemDatabase system
Database system
ikjsamuel
 
2.pptx
2.pptx2.pptx
2.pptx
SandeepYadav949827
 
Lecture-3 DBMS Architecture.pptx
Lecture-3 DBMS Architecture.pptxLecture-3 DBMS Architecture.pptx
Lecture-3 DBMS Architecture.pptx
HarshitSharma875238
 
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
ganesh81123
 
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
temesgenabebe1
 
Unit 1.2.pptx
Unit 1.2.pptxUnit 1.2.pptx
Unit 1.2.pptx
ssuser0793931
 
Database system-DBMS
Database system-DBMSDatabase system-DBMS
Database system-DBMS
ikjsamuel
 
Database system
Database systemDatabase system
Database system
ikjsamuel
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
SoniaDevi15
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
AbhishekSingh757567
 
Schema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-WriteSchema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-Write
Amr Awadallah
 
BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564
DrMoizAkhtar
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
Bhavya304221
 
Datamodels & architecture
Datamodels & architectureDatamodels & architecture
Datamodels & architecture
Neeraj Kumar
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
Muhammad Bilal Tariq
 
Ch1.2_DB system Concepts and Architecture.pptx
Ch1.2_DB system Concepts and Architecture.pptxCh1.2_DB system Concepts and Architecture.pptx
Ch1.2_DB system Concepts and Architecture.pptx
01fe20bcv092
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
SameerKhanPathan7
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
OECLIB Odisha Electronics Control Library
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
NILESH UCHCHASARE
 
Database system
Database systemDatabase system
Database system
ikjsamuel
 
Database system
Database systemDatabase system
Database system
ikjsamuel
 
Lecture-3 DBMS Architecture.pptx
Lecture-3 DBMS Architecture.pptxLecture-3 DBMS Architecture.pptx
Lecture-3 DBMS Architecture.pptx
HarshitSharma875238
 
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
ganesh81123
 
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
temesgenabebe1
 
Database system-DBMS
Database system-DBMSDatabase system-DBMS
Database system-DBMS
ikjsamuel
 
Database system
Database systemDatabase system
Database system
ikjsamuel
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
SoniaDevi15
 
Schema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-WriteSchema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-Write
Amr Awadallah
 
BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564BM322_03.pptx123456786546654525165654646564
BM322_03.pptx123456786546654525165654646564
DrMoizAkhtar
 
Datamodels & architecture
Datamodels & architectureDatamodels & architecture
Datamodels & architecture
Neeraj Kumar
 
Ch1.2_DB system Concepts and Architecture.pptx
Ch1.2_DB system Concepts and Architecture.pptxCh1.2_DB system Concepts and Architecture.pptx
Ch1.2_DB system Concepts and Architecture.pptx
01fe20bcv092
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
SameerKhanPathan7
 

Recently uploaded (20)

Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
The Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLabThe Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLab
Journal of Soft Computing in Civil Engineering
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Ad

Chapter 2 dbChapter 2 dbChapter 2 dbChapter 2 db.ppt

  • 1. 1 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: User Interface DBMS + Data Client Module Server Module Request Reply Ala Hamarsheh -- [email protected]
  • 2. 2 • 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 -- [email protected]
  • 3. 3 • 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. StID SNAME CLASS MAJOR STUDENT Schema Construct This Schema will be changed Infrequently Ala Hamarsheh -- [email protected]
  • 4. 4 – 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 -- [email protected]
  • 5. 5 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 -- [email protected]
  • 7. 7 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 -- [email protected]
  • 8. 8 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 -- [email protected]
  • 9. 9 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 -- [email protected]