SlideShare a Scribd company logo
1 of 29
© Virtual University of Pakistan
Database
Management
Systems
Lecture - 4
© Virtual University of Pakistan
Today’s Review
Continue 3-L architecture
Data Independence
Different aspect of DBMS
© Virtual University of Pakistan
Level 3
Internal or Physical
View
Concerns about the physical implementation of
the database
© Virtual University of Pakistan
Internal View
DBMS chooses type of data structures
lays out data on storage devices with
operating system access methods
© Virtual University of Pakistan
Internal View
Internal record: a single stored record
Does not just contain what we see at the
conceptual level
DBMS adds other data
© Virtual University of Pakistan
Physical Level
Generally same as Internal
Actual representation of data on the
storage device
In the binary format
OS responsibility
© Virtual University of Pakistan
Inter-Schema
Mappings
Also a part of 3-level architecture
External/conceptual mapping
Conceptual/Internal
© Virtual University of Pakistan
Ext/Con Mapping
Specifies mapping between objects in the
external view to those in the logical model
© Virtual University of Pakistan
Con/Int Mapping
Specifies mapping between objects in the
logical model to those in the physical model-
data independence
© Virtual University of Pakistan
3-Level Architecture
External Level
Conceptual Level
Internal Level
Physical Data
Organization
Ext/Con Mapping
View 1 View 2 View n
Conceptual
Schema
Internal
Schema
Database
User 1 User 2 User n
Con/Int Mapping
© Virtual University of Pakistan
Name DoB Deps DepId
Rana Aslam 12/09/70 5 D001
Marya Wasti 29/02/80 0 D005
First Name: Rana
Last Name: Aslam
Date of Birth:
12 Sep, 1970
Name: R. Aslam
Age: 24y,10d
Dept: Sales
Saleem
Saleema
01110011010011100101001010100101010010101…..
BH RH Rana Aslam 120970 5 D001 RH Marya Wasti…
© Virtual University of Pakistan
Data
Independence
© Virtual University of Pakistan
Data Independence
A major outcome of 3-L Arch
The immunity of applications to change in
storage structure and access strategy
© Virtual University of Pakistan
Changes in lower level do not affect the
upper levels
Don’t take it word to word
Mind the direction please
Data Independence
© Virtual University of Pakistan
Data Independence
Types
• Logical Data Independence
• Physical Data Independence
© Virtual University of Pakistan
Logical Data
Independence
Changes in conceptual model do not affect the
external views
Immunity of external level from changes at
conceptual level
© Virtual University of Pakistan
Types of Changes
Adding a new file/index etc.
Adding a new field in a file
Changing type/size
Deleting an attribute
© Virtual University of Pakistan
Physical Data
Independence
 Changes in the internal model do not affect the
conceptual model
 Immunity of Conceptual level from changes at
Internal level
© Virtual University of Pakistan
Changes Examples
Changing file organization
Index implementation, hash, tree etc.
Changing storage medium
© Virtual University of Pakistan
3-Level Architecture
External Level
Conceptual Level
Internal Level
Physical Data
Organization
Ext/Con Mapping
View 1 View n
Conceptual
Schema
Internal
Schema
Database
User 1 User n
Con/Int Mapping
Conceptual Data Ind
Physical
Data Ind
© Virtual University of Pakistan
Functions of DBMS
 Data Processing
 A User Accessible Catalog
 Transaction Support
 Concurrency Control Services
© Virtual University of Pakistan
Functions of DBMS
 Recovery Services
 Authorization Services
 Support for Data Communication
 Integrity Services
© Virtual University of Pakistan
DBMS Environments
Single User
Multi-user
Teleprocessing
File Servers
Client-Server
© Virtual University of Pakistan
Teleprocessing
All processing at
a central computer
Dumb Terminals
© Virtual University of Pakistan
File Servers
LAN
File returned Data request
Database
Workstation Workstation
File Server
© Virtual University of Pakistan
Client-Server
LAN
Selected data returned Data request
Database
Client Client
Server
(with DBMS)
© Virtual University of Pakistan
Today’s Summary
Completed 3-L architecture
Discussed data independence
Discussion on DBMS
© Virtual University of Pakistan
Thanks and
Allah Hafiz
© Virtual University of Pakistan
Database
Management
Systems
Lecture - 4

More Related Content

What's hot

client server architecture
client server architecture client server architecture
client server architecture Saurabh Soni
 
Layered architecture style
Layered architecture styleLayered architecture style
Layered architecture styleBegench Suhanov
 
Database management systems
Database management systemsDatabase management systems
Database management systemsJoel Briza
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recoveryAnne Lee
 
Designing and documenting software architecture unit 5
Designing and documenting software architecture unit 5Designing and documenting software architecture unit 5
Designing and documenting software architecture unit 5Sudarshan Dhondaley
 
8 drived horizontal fragmentation
8  drived horizontal fragmentation8  drived horizontal fragmentation
8 drived horizontal fragmentationMohsan Ijaz
 
Introduction to Microsoft Power BI
Introduction to Microsoft Power BIIntroduction to Microsoft Power BI
Introduction to Microsoft Power BIExilesoft
 
Library management system project
Library management system projectLibrary management system project
Library management system projectAJAY KUMAR
 
Intro for Power BI
Intro for Power BIIntro for Power BI
Intro for Power BIMartin X
 
Software Prototyping in Software Engineering SE8
Software Prototyping in Software Engineering SE8Software Prototyping in Software Engineering SE8
Software Prototyping in Software Engineering SE8koolkampus
 
Client Server Architecture...pptx
Client Server Architecture...pptxClient Server Architecture...pptx
Client Server Architecture...pptxpraladbaral
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basicsShahed Mohamed
 
Presentation LIBRARY MANAGEMENT SYSTEM
Presentation LIBRARY MANAGEMENT SYSTEM Presentation LIBRARY MANAGEMENT SYSTEM
Presentation LIBRARY MANAGEMENT SYSTEM binrehmat
 

What's hot (20)

Deployment Diagram
Deployment DiagramDeployment Diagram
Deployment Diagram
 
client server architecture
client server architecture client server architecture
client server architecture
 
Layered architecture style
Layered architecture styleLayered architecture style
Layered architecture style
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
 
Designing and documenting software architecture unit 5
Designing and documenting software architecture unit 5Designing and documenting software architecture unit 5
Designing and documenting software architecture unit 5
 
8 drived horizontal fragmentation
8  drived horizontal fragmentation8  drived horizontal fragmentation
8 drived horizontal fragmentation
 
Conceptual Data Modeling
Conceptual Data ModelingConceptual Data Modeling
Conceptual Data Modeling
 
Introduction to Microsoft Power BI
Introduction to Microsoft Power BIIntroduction to Microsoft Power BI
Introduction to Microsoft Power BI
 
Academic management
Academic managementAcademic management
Academic management
 
Library management system project
Library management system projectLibrary management system project
Library management system project
 
Srs template 1
Srs template 1Srs template 1
Srs template 1
 
Intro for Power BI
Intro for Power BIIntro for Power BI
Intro for Power BI
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Software Prototyping in Software Engineering SE8
Software Prototyping in Software Engineering SE8Software Prototyping in Software Engineering SE8
Software Prototyping in Software Engineering SE8
 
Client Server Architecture...pptx
Client Server Architecture...pptxClient Server Architecture...pptx
Client Server Architecture...pptx
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basics
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Presentation LIBRARY MANAGEMENT SYSTEM
Presentation LIBRARY MANAGEMENT SYSTEM Presentation LIBRARY MANAGEMENT SYSTEM
Presentation LIBRARY MANAGEMENT SYSTEM
 
Data independence
Data independenceData independence
Data independence
 

Similar to VUP Database Lecture 4 - Data Independence & 3-Level Architecture

Chapter 2 database architecture
Chapter 2 database architectureChapter 2 database architecture
Chapter 2 database architectureUra Euro
 
Three schema Architecture in DBMS
Three schema Architecture in DBMSThree schema Architecture in DBMS
Three schema Architecture in DBMSSaqlain84
 
1 introduction
1 introduction1 introduction
1 introductionUtkarsh De
 
Data Abstraction and Independance (1).pptx
Data Abstraction and Independance (1).pptxData Abstraction and Independance (1).pptx
Data Abstraction and Independance (1).pptxnehasahuji
 
Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureAmiya9439793168
 
Dams dynamic attendance management system
Dams dynamic attendance management systemDams dynamic attendance management system
Dams dynamic attendance management systemeSAT Journals
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_materialgayaramesh
 
Journal of Physics Conference SeriesPAPER • OPEN ACCESS.docx
Journal of Physics Conference SeriesPAPER • OPEN ACCESS.docxJournal of Physics Conference SeriesPAPER • OPEN ACCESS.docx
Journal of Physics Conference SeriesPAPER • OPEN ACCESS.docxLaticiaGrissomzz
 
Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...mayurjagdale4
 
Alumni Management System – Web Application
Alumni Management System – Web ApplicationAlumni Management System – Web Application
Alumni Management System – Web ApplicationIRJET Journal
 
Alumni Management System -Web Application
Alumni Management System -Web ApplicationAlumni Management System -Web Application
Alumni Management System -Web ApplicationMandy Brown
 
Computer lecture (1) m.nasir
Computer lecture (1) m.nasirComputer lecture (1) m.nasir
Computer lecture (1) m.nasirMuhammad Nasir
 
Case Study For Performance Tracting Application
Case Study For Performance Tracting ApplicationCase Study For Performance Tracting Application
Case Study For Performance Tracting ApplicationMike Taylor
 

Similar to VUP Database Lecture 4 - Data Independence & 3-Level Architecture (20)

Chapter 2 database architecture
Chapter 2 database architectureChapter 2 database architecture
Chapter 2 database architecture
 
Three schema Architecture in DBMS
Three schema Architecture in DBMSThree schema Architecture in DBMS
Three schema Architecture in DBMS
 
1 introduction
1 introduction1 introduction
1 introduction
 
Data Abstraction and Independance (1).pptx
Data Abstraction and Independance (1).pptxData Abstraction and Independance (1).pptx
Data Abstraction and Independance (1).pptx
 
Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema Architecture
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Dams dynamic attendance management system
Dams dynamic attendance management systemDams dynamic attendance management system
Dams dynamic attendance management system
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_material
 
Db lecture 2
Db lecture 2Db lecture 2
Db lecture 2
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Journal of Physics Conference SeriesPAPER • OPEN ACCESS.docx
Journal of Physics Conference SeriesPAPER • OPEN ACCESS.docxJournal of Physics Conference SeriesPAPER • OPEN ACCESS.docx
Journal of Physics Conference SeriesPAPER • OPEN ACCESS.docx
 
Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...
 
Alumni Management System – Web Application
Alumni Management System – Web ApplicationAlumni Management System – Web Application
Alumni Management System – Web Application
 
Alumni Management System -Web Application
Alumni Management System -Web ApplicationAlumni Management System -Web Application
Alumni Management System -Web Application
 
data base
data basedata base
data base
 
Computer lecture (1) m.nasir
Computer lecture (1) m.nasirComputer lecture (1) m.nasir
Computer lecture (1) m.nasir
 
Dbms
DbmsDbms
Dbms
 
Case Study For Performance Tracting Application
Case Study For Performance Tracting ApplicationCase Study For Performance Tracting Application
Case Study For Performance Tracting Application
 

Recently uploaded

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 

Recently uploaded (20)

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 

VUP Database Lecture 4 - Data Independence & 3-Level Architecture

  • 1. © Virtual University of Pakistan Database Management Systems Lecture - 4
  • 2. © Virtual University of Pakistan Today’s Review Continue 3-L architecture Data Independence Different aspect of DBMS
  • 3. © Virtual University of Pakistan Level 3 Internal or Physical View Concerns about the physical implementation of the database
  • 4. © Virtual University of Pakistan Internal View DBMS chooses type of data structures lays out data on storage devices with operating system access methods
  • 5. © Virtual University of Pakistan Internal View Internal record: a single stored record Does not just contain what we see at the conceptual level DBMS adds other data
  • 6. © Virtual University of Pakistan Physical Level Generally same as Internal Actual representation of data on the storage device In the binary format OS responsibility
  • 7. © Virtual University of Pakistan Inter-Schema Mappings Also a part of 3-level architecture External/conceptual mapping Conceptual/Internal
  • 8. © Virtual University of Pakistan Ext/Con Mapping Specifies mapping between objects in the external view to those in the logical model
  • 9. © Virtual University of Pakistan Con/Int Mapping Specifies mapping between objects in the logical model to those in the physical model- data independence
  • 10. © Virtual University of Pakistan 3-Level Architecture External Level Conceptual Level Internal Level Physical Data Organization Ext/Con Mapping View 1 View 2 View n Conceptual Schema Internal Schema Database User 1 User 2 User n Con/Int Mapping
  • 11. © Virtual University of Pakistan Name DoB Deps DepId Rana Aslam 12/09/70 5 D001 Marya Wasti 29/02/80 0 D005 First Name: Rana Last Name: Aslam Date of Birth: 12 Sep, 1970 Name: R. Aslam Age: 24y,10d Dept: Sales Saleem Saleema 01110011010011100101001010100101010010101….. BH RH Rana Aslam 120970 5 D001 RH Marya Wasti…
  • 12. © Virtual University of Pakistan Data Independence
  • 13. © Virtual University of Pakistan Data Independence A major outcome of 3-L Arch The immunity of applications to change in storage structure and access strategy
  • 14. © Virtual University of Pakistan Changes in lower level do not affect the upper levels Don’t take it word to word Mind the direction please Data Independence
  • 15. © Virtual University of Pakistan Data Independence Types • Logical Data Independence • Physical Data Independence
  • 16. © Virtual University of Pakistan Logical Data Independence Changes in conceptual model do not affect the external views Immunity of external level from changes at conceptual level
  • 17. © Virtual University of Pakistan Types of Changes Adding a new file/index etc. Adding a new field in a file Changing type/size Deleting an attribute
  • 18. © Virtual University of Pakistan Physical Data Independence  Changes in the internal model do not affect the conceptual model  Immunity of Conceptual level from changes at Internal level
  • 19. © Virtual University of Pakistan Changes Examples Changing file organization Index implementation, hash, tree etc. Changing storage medium
  • 20. © Virtual University of Pakistan 3-Level Architecture External Level Conceptual Level Internal Level Physical Data Organization Ext/Con Mapping View 1 View n Conceptual Schema Internal Schema Database User 1 User n Con/Int Mapping Conceptual Data Ind Physical Data Ind
  • 21. © Virtual University of Pakistan Functions of DBMS  Data Processing  A User Accessible Catalog  Transaction Support  Concurrency Control Services
  • 22. © Virtual University of Pakistan Functions of DBMS  Recovery Services  Authorization Services  Support for Data Communication  Integrity Services
  • 23. © Virtual University of Pakistan DBMS Environments Single User Multi-user Teleprocessing File Servers Client-Server
  • 24. © Virtual University of Pakistan Teleprocessing All processing at a central computer Dumb Terminals
  • 25. © Virtual University of Pakistan File Servers LAN File returned Data request Database Workstation Workstation File Server
  • 26. © Virtual University of Pakistan Client-Server LAN Selected data returned Data request Database Client Client Server (with DBMS)
  • 27. © Virtual University of Pakistan Today’s Summary Completed 3-L architecture Discussed data independence Discussion on DBMS
  • 28. © Virtual University of Pakistan Thanks and Allah Hafiz
  • 29. © Virtual University of Pakistan Database Management Systems Lecture - 4