SlideShare a Scribd company logo
1 of 10
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

More Related Content

Similar to Chapter 2 dbChapter 2 dbChapter 2 dbChapter 2 db.ppt

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

2.pptx
2.pptx2.pptx
2.pptx
 
Lecture-3 DBMS Architecture.pptx
Lecture-3 DBMS Architecture.pptxLecture-3 DBMS Architecture.pptx
Lecture-3 DBMS Architecture.pptx
 
Unit 1.2.pptx
Unit 1.2.pptxUnit 1.2.pptx
Unit 1.2.pptx
 
Database system
Database systemDatabase system
Database system
 
Database system-DBMS
Database system-DBMSDatabase system-DBMS
Database system-DBMS
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
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
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
 
Datamodels & architecture
Datamodels & architectureDatamodels & architecture
Datamodels & architecture
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
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
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
Top schools in gudgaon
Top schools in gudgaonTop schools in gudgaon
Top schools in gudgaon
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
dbms unit-1
dbms unit-1dbms unit-1
dbms unit-1
 

Recently uploaded

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Recently uploaded (20)

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 

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 -- ahamarsheh@aauj.edu
  • 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 -- ahamarsheh@aauj.edu
  • 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 -- ahamarsheh@aauj.edu
  • 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 -- ahamarsheh@aauj.edu
  • 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 -- ahamarsheh@aauj.edu
  • 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 -- ahamarsheh@aauj.edu
  • 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 -- ahamarsheh@aauj.edu
  • 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 -- ahamarsheh@aauj.edu