SlideShare una empresa de Scribd logo
1 de 20
Database Systems
Database Environment
Chapter 2
Objectives of Three-Level
Architecture
 ANSI-SPARC Three Level Architecture
 All users should be able to access same data
but have a different customized view
 A user’s view is immune to changes made in
other views
 Users should not need to know physical
database storage details
Objectives of Three-Level
Architecture..
 DBA should be able to change database
storage structures without affecting the
users’ views
 Internal structure of database should be
unaffected by changes to physical aspects of
storage
 DBA should be able to change conceptual
structure of database without affecting all
users
ANSI-SPARC Three-Level
Architecture
ANSI-SPARC Three-Level
Architecture..
 External Level
 Users’ view of the database
 Describes that part of database that is relevant to a
particular user
 Different views may have different representation of same
data (e.g. different date formats, age derived from DOB
etc.)
ANSI-SPARC Three-Level
Architecture..
 Conceptual Level
 Community view of the database
 Describes what data is stored in database and
relationships among the data
 Along with any constraints on data
 Independent of any storage considerations
i. all entities, their attributes, and their relationships;
ii. the constraints on the data;
iii. semantic information about the data
security and integrity information.
ANSI-SPARC Three-Level
Architecture..
 Internal Level
 storage space allocation for data and indexes;
 record descriptions for storage (with stored
sizes for data items); n
 record placement; n
 data compression and data encryption
techniques.
ANSI-SPARC Three-Level
Architecture..
 Internal Level
 Physical representation of the database on the computer
 Describes how the data is stored in the database
 physical implementation of the database to achieve
optimal runtime performance and storage space
utilization
 Data structures and file organizations used to store data
on storage devices
 Interfaces with the operating system access methods to
place the data on the storage devices, build the indexes,
retrieve the data, and so on
Differences between Three Levels of ANSI-SPARC
Architecture
Schemas
 External Schemas
 Also called subschemas
 Multiple schemas per database
 Corresponds to different views of data
 Conceptual Schema
 Describes all the entities, attributes, and relationships
together with integrity constraints
 Only one schema per database
Schemas..
 Internal Schema
 A complete description of the internal model, containing
the definitions of stored records, the methods of
representation, the data fields, and the indexes and
storage structures used
 Only one schema per database
Mappings
 The DBMS is responsible for mapping
between these three types of schema:
 The DBMS must check that each external schema is
derivable from the conceptual schema, and it must use the
information in the conceptual schema to map between
each external schema and the internal schema
 Types of mappings
 Conceptual/Internal mapping
 External/Conceptual mapping
Conceptual/Internal Mapping
 Enables the DBMS to
 Find the actual record or combination of records in
physical storage that constitute a logical record in the
conceptual schema,
 Together with any constraints to be enforced on the
operations for that logical record
 It also allows any differences in entity names, attribute
names, attribute order, data types, and so on, to be
resolved
External/Conceptual Mapping
 Enables the DBMS to
 Map names in the user’s view on to the relevant part of
the conceptual schema
Instances
 Database Schema
 Description of database (also called intension)
 Specified during design phase
 Remain almost static
 Database Instance
 Data in the database at any particular point in time
 Dynamic (changes with the time)
 Also called an extension (or state) of database
Data Independence
 Logical Data Independence
 Refers to protection of external schemas to changes in
conceptual schema
 Conceptual schema changes (e.g. addition/removal of
entities)
 Should not require changes to external schema or rewrites
of application programs
Data Independence
 Physical Data Independence
 Refers to immunity of conceptual schema to changes in
the internal schema
 Internal schema changes (e.g. using different file
organizations, storage structures, storage devices etc.)
 Should not require change to conceptual or external
schemas
Data Independence and the ANSI-SPARC
Three-Level Architecture
Summary
 ANSI-SPARC three-level architecture
 Schemas, mappings, and instances
 Data independence

Más contenido relacionado

La actualidad más candente

Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1ahfiki
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level ArchitectureAdeel Rasheed
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model IntroductionNishant Munjal
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management SystemAmiya9439793168
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & CalculusAbdullah Khosa
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLEVraj Patel
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and BasicsSHIKHA GAUTAM
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Databasepuja_dhar
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity ConstraintsMegha yadav
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
 
Database management functions
Database management functionsDatabase management functions
Database management functionsyhen06
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Jotham Gadot
 
Database abstraction
Database abstractionDatabase abstraction
Database abstractionRituBhargava7
 

La actualidad más candente (20)

Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & Calculus
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Files Vs DataBase
Files Vs DataBaseFiles Vs DataBase
Files Vs DataBase
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
database
databasedatabase
database
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
 
11 Database Concepts
11 Database Concepts11 Database Concepts
11 Database Concepts
 
Database management functions
Database management functionsDatabase management functions
Database management functions
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
Database abstraction
Database abstractionDatabase abstraction
Database abstraction
 

Destacado

A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C ArchitectureSabeeh Ahmed
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment>. <
 
Sem1 2014 15 course-outline info 1102
Sem1 2014 15 course-outline info 1102Sem1 2014 15 course-outline info 1102
Sem1 2014 15 course-outline info 1102IIUM
 
D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1askme
 
Kendall sad8e ch04
Kendall sad8e ch04Kendall sad8e ch04
Kendall sad8e ch04N/A
 
Kendall sad8e ch01
Kendall sad8e ch01Kendall sad8e ch01
Kendall sad8e ch01N/A
 
Chapter01 introduction
Chapter01 introductionChapter01 introduction
Chapter01 introductionNgeam Soly
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Vidyasagar Mundroy
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMSkoolkampus
 
Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemEddyzulham Mahluzydde
 
Introduction to Entrepreneurship
Introduction to EntrepreneurshipIntroduction to Entrepreneurship
Introduction to EntrepreneurshipJeronicaLogan
 
Chapter 1 on Entrepreneurship
Chapter 1 on EntrepreneurshipChapter 1 on Entrepreneurship
Chapter 1 on EntrepreneurshipJaisiimman Sam
 
Entrepreneurship Lecture Notes Part 1
Entrepreneurship Lecture Notes Part 1Entrepreneurship Lecture Notes Part 1
Entrepreneurship Lecture Notes Part 1Odofin Caleb
 
Entrepreneurship powerpoint slide
Entrepreneurship powerpoint slideEntrepreneurship powerpoint slide
Entrepreneurship powerpoint slideMahlatsi Lerato
 

Destacado (17)

A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C Architecture
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment
 
Sem1 2014 15 course-outline info 1102
Sem1 2014 15 course-outline info 1102Sem1 2014 15 course-outline info 1102
Sem1 2014 15 course-outline info 1102
 
D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Kendall sad8e ch04
Kendall sad8e ch04Kendall sad8e ch04
Kendall sad8e ch04
 
Kendall sad8e ch01
Kendall sad8e ch01Kendall sad8e ch01
Kendall sad8e ch01
 
Chapter01 introduction
Chapter01 introductionChapter01 introduction
Chapter01 introduction
 
Database an introduction
Database an introductionDatabase an introduction
Database an introduction
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
 
Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management System
 
Introduction to Entrepreneurship
Introduction to EntrepreneurshipIntroduction to Entrepreneurship
Introduction to Entrepreneurship
 
Chapter 1 on Entrepreneurship
Chapter 1 on EntrepreneurshipChapter 1 on Entrepreneurship
Chapter 1 on Entrepreneurship
 
Entrepreneurship Lecture Notes Part 1
Entrepreneurship Lecture Notes Part 1Entrepreneurship Lecture Notes Part 1
Entrepreneurship Lecture Notes Part 1
 
Entrepreneurship powerpoint slide
Entrepreneurship powerpoint slideEntrepreneurship powerpoint slide
Entrepreneurship powerpoint slide
 

Similar a Database systems - Chapter 2

CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)Dilawar Khan
 
Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01Ankit Dubey
 
Data abs ind & mod
Data abs  ind  & modData abs  ind  & mod
Data abs ind & modHaider Adnan
 
ANSI-SPARC - Star Trek style - v2.0
ANSI-SPARC - Star Trek style - v2.0ANSI-SPARC - Star Trek style - v2.0
ANSI-SPARC - Star Trek style - v2.0Damian T. Gordon
 
DATABASE FUNCTIONS
DATABASE FUNCTIONSDATABASE FUNCTIONS
DATABASE FUNCTIONSghazi103
 
Database Management Systems.ppt
Database Management Systems.pptDatabase Management Systems.ppt
Database Management Systems.ppttahakhan699813
 
Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureAmiya9439793168
 
Bt0066 database management system1
Bt0066 database management system1Bt0066 database management system1
Bt0066 database management system1Techglyphs
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkkDatabase Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkksandhyakiran10
 
Database system concepts
Database system conceptsDatabase system concepts
Database system conceptsKumar
 
Database system concepts and architecture
Database system concepts and architectureDatabase system concepts and architecture
Database system concepts and architectureJafar Nesargi
 

Similar a Database systems - Chapter 2 (20)

CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)
 
Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01
 
Data abs ind & mod
Data abs  ind  & modData abs  ind  & mod
Data abs ind & mod
 
ANSI-SPARC - Star Trek style - v2.0
ANSI-SPARC - Star Trek style - v2.0ANSI-SPARC - Star Trek style - v2.0
ANSI-SPARC - Star Trek style - v2.0
 
DATABASE FUNCTIONS
DATABASE FUNCTIONSDATABASE FUNCTIONS
DATABASE FUNCTIONS
 
Dbms module i
Dbms module iDbms module i
Dbms module i
 
2.pptx
2.pptx2.pptx
2.pptx
 
Database Management Systems.ppt
Database Management Systems.pptDatabase Management Systems.ppt
Database Management Systems.ppt
 
Unit 1 DBMS
Unit 1 DBMSUnit 1 DBMS
Unit 1 DBMS
 
Unit 1.2.pptx
Unit 1.2.pptxUnit 1.2.pptx
Unit 1.2.pptx
 
Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema Architecture
 
Bt0066 database management system1
Bt0066 database management system1Bt0066 database management system1
Bt0066 database management system1
 
Dbms unit i
Dbms unit iDbms unit i
Dbms unit i
 
Db4 th
Db4 thDb4 th
Db4 th
 
27 fcs157al2
27 fcs157al227 fcs157al2
27 fcs157al2
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkkDatabase Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkk
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 
Chapter2
Chapter2Chapter2
Chapter2
 
Chapter2
Chapter2Chapter2
Chapter2
 
Database system concepts and architecture
Database system concepts and architectureDatabase system concepts and architecture
Database system concepts and architecture
 

Último

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Último (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Database systems - Chapter 2

  • 3. Objectives of Three-Level Architecture  ANSI-SPARC Three Level Architecture  All users should be able to access same data but have a different customized view  A user’s view is immune to changes made in other views  Users should not need to know physical database storage details
  • 4. Objectives of Three-Level Architecture..  DBA should be able to change database storage structures without affecting the users’ views  Internal structure of database should be unaffected by changes to physical aspects of storage  DBA should be able to change conceptual structure of database without affecting all users
  • 6. ANSI-SPARC Three-Level Architecture..  External Level  Users’ view of the database  Describes that part of database that is relevant to a particular user  Different views may have different representation of same data (e.g. different date formats, age derived from DOB etc.)
  • 7. ANSI-SPARC Three-Level Architecture..  Conceptual Level  Community view of the database  Describes what data is stored in database and relationships among the data  Along with any constraints on data  Independent of any storage considerations i. all entities, their attributes, and their relationships; ii. the constraints on the data; iii. semantic information about the data security and integrity information.
  • 8. ANSI-SPARC Three-Level Architecture..  Internal Level  storage space allocation for data and indexes;  record descriptions for storage (with stored sizes for data items); n  record placement; n  data compression and data encryption techniques.
  • 9. ANSI-SPARC Three-Level Architecture..  Internal Level  Physical representation of the database on the computer  Describes how the data is stored in the database  physical implementation of the database to achieve optimal runtime performance and storage space utilization  Data structures and file organizations used to store data on storage devices  Interfaces with the operating system access methods to place the data on the storage devices, build the indexes, retrieve the data, and so on
  • 10. Differences between Three Levels of ANSI-SPARC Architecture
  • 11. Schemas  External Schemas  Also called subschemas  Multiple schemas per database  Corresponds to different views of data  Conceptual Schema  Describes all the entities, attributes, and relationships together with integrity constraints  Only one schema per database
  • 12. Schemas..  Internal Schema  A complete description of the internal model, containing the definitions of stored records, the methods of representation, the data fields, and the indexes and storage structures used  Only one schema per database
  • 13. Mappings  The DBMS is responsible for mapping between these three types of schema:  The DBMS must check that each external schema is derivable from the conceptual schema, and it must use the information in the conceptual schema to map between each external schema and the internal schema  Types of mappings  Conceptual/Internal mapping  External/Conceptual mapping
  • 14. Conceptual/Internal Mapping  Enables the DBMS to  Find the actual record or combination of records in physical storage that constitute a logical record in the conceptual schema,  Together with any constraints to be enforced on the operations for that logical record  It also allows any differences in entity names, attribute names, attribute order, data types, and so on, to be resolved
  • 15. External/Conceptual Mapping  Enables the DBMS to  Map names in the user’s view on to the relevant part of the conceptual schema
  • 16. Instances  Database Schema  Description of database (also called intension)  Specified during design phase  Remain almost static  Database Instance  Data in the database at any particular point in time  Dynamic (changes with the time)  Also called an extension (or state) of database
  • 17. Data Independence  Logical Data Independence  Refers to protection of external schemas to changes in conceptual schema  Conceptual schema changes (e.g. addition/removal of entities)  Should not require changes to external schema or rewrites of application programs
  • 18. Data Independence  Physical Data Independence  Refers to immunity of conceptual schema to changes in the internal schema  Internal schema changes (e.g. using different file organizations, storage structures, storage devices etc.)  Should not require change to conceptual or external schemas
  • 19. Data Independence and the ANSI-SPARC Three-Level Architecture
  • 20. Summary  ANSI-SPARC three-level architecture  Schemas, mappings, and instances  Data independence

Notas del editor

  1. The way users perceive the data is called the external level. The way the DBMS and the operating system perceive the data is the internal level, where the data is actually stored using the data structures and file organizations.
  2. in the DreamHome case study, we may wish to view the age of a member of staff. However, it is unlikely that ages would be stored, as this data would have to be updated daily. Instead, the member of staff’s date of birth would be stored and age would be calculated by the DBMS when it is referenced. Views may even include data combined or derived from several entities.