SlideShare ist ein Scribd-Unternehmen logo
1 von 7
Downloaden Sie, um offline zu lesen
THREE-LEVEL ARCHITECTURE

                         User 1    User 2                  User n

        External          View 1    View 2                 View n
         level
     The way users
    perceive the data.
                                                        Mapping and
        Conceptual                                      independence
          level                    Conceptual          between external
                                    schema               and internal
                                                            levels.

                                                       The way the
        Internal level              Internal         DBMS and OS
                                    schema          perceive the data.



        Physical data
        organization                            Database




Objective: separate each user’s view of the database
from the way it is physically represented.
EXTERNAL LEVEL (highest level)

• The user’s view of the database.
• Consists of a number of different external views of the DB.
• Describes part of the DB for particular group of users.
• Provides a powerful and flexible security mechanism by
  hiding parts of the DB from certain users. The user is not
  aware of the existence of any attributes that are missing
  from the view.
• It permits users to access data in a way that is customized to
  their needs, so that the same data can be seen by different
  users in different ways, at the same time.

                      CONCEPTUAL LEVEL

• The logical structure of the entire database as seen by DBA.
• What data is stored in the database.
• The relationships among the data.
• Complete view of the data requirements of the organization,
    independent of any storage consideration.
• Represents:
    -   ∀entities, attributes, relations
    -   constraints on data
    -   semantic information on data
    -   security, integrity information

Supports each external view: any data available to a user must
be contained in, or derivable from the conceptual level.
INTERNAL LEVEL

• Physical representation of the DB on the computer.
• How the data is stored in the database.
• Physical implementation of the DB to achieve optimal run–
  time performance and storage space utilization.
  - Storage space allocation for data and indexes
  - Record description for storage
  - Record placement
  - Data compression, encryption


                    PHYSICAL LEVEL

Managed by the OS under the direction of the DBMS.


          SCHEMAS, MAPPINGS, INSTANCES
DB schema: overall description of the DB.
Three different schemas according to the level of abstraction.
DBMS: mapping between schemas
          consistency of schemas
conceptual/internal mapping: to find the actual record
(combinations) in physical storage that constitute a logical
record in the conceptual schema.

external/conceptual mapping: map names in the user’s view
onto the relevant part of the conceptual schema.


                 External view 1                         External view 2
  Sno    FName       LName    Age   Salary        Staff_No    LName    Bno



Conceptual level Staff_No FName LName DOB Salary Branch_No




                    struct STAFF {
                            int Staff_No;
                            int Branch_No;
                            char FName[15];
Internal level              char LName[15];
                            struct date Date_of_Birth;
                            float Salary;
                            struct STAFF*next;
                    };
                    index Staff_No; index Branch_No;




Database instance: the data in the DB at any particular point
in time.
DATA INDEPENDENCE

The ability to modify a scheme definition in one level without
affecting a scheme definition in a higher level is called data
independence.
1. There are two kinds:
    Logical data independence

    • The ability to modify the conceptual scheme without
      causing application programs to be rewritten.
    • Immunity of external schemas to changes in the
      conceptual schema.
    • Usually done when logical structure of database is
      altered


    Physical data independence
    • The ability to modify the internal scheme without
      having to change the conceptual or external schemas.
    • Modifications at this level are usually to improve
      performance.
DATA MODELS
  Data models are a collection of conceptual tools for
  describing data, data relationships, data semantics and data
  constraints.
  Components:      structural part
                   manipulative part
                   integrity rules


  There are three different groups:

Object-based Data Models        Describe data at the conceptual
Record-based Data Models
                            }   and external levels

Physical Data Models            Describe data at the
                                internal level


                 Object-based Data Models
              - Entity-relationship model.
              - Object-oriented model.
              - Semantic data model.
              - Functional data model
Record-based Data Models

  • Named so because the database is structured in fixed-
    format records of several types.
  • Each record type defines a fixed number of fields, or
    attributes.
  • Each field is usually of a fixed length (this simplifies
    the implementation).
  • The three most widely accepted models are the
    relational, network, and hierarchical data model.


                  Physical Data Models

1. Are used to describe data at the lowest level.
2. Very few models, e.g.
     o   Unifying model.
     o   Frame memory.

Weitere ähnliche Inhalte

Was ist angesagt?

2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architectureKumar
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtapADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtapVikas Jagtap
 
Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecturesontumax
 
Distributed dbms cs712 power point slides lecture 1
Distributed dbms   cs712 power point slides lecture 1Distributed dbms   cs712 power point slides lecture 1
Distributed dbms cs712 power point slides lecture 1Aimal Syeda
 
00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabus00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabusBishal Ghimire
 
Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207Burhan Chaudhry
 
Distributeddbmsarchitectures 190131073219
Distributeddbmsarchitectures 190131073219Distributeddbmsarchitectures 190131073219
Distributeddbmsarchitectures 190131073219muhammadsarab
 
Database Management Systems 2
Database Management Systems 2Database Management Systems 2
Database Management Systems 2Nickkisha Farrell
 
L7 data model and dbms architecture
L7  data model and dbms architectureL7  data model and dbms architecture
L7 data model and dbms architectureRushdi Shams
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Userssontumax
 

Was ist angesagt? (20)

2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architecture
 
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS ArchitectureDistributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtapADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
 
Chapter02
Chapter02Chapter02
Chapter02
 
Database Lecture Notes
Database Lecture NotesDatabase Lecture Notes
Database Lecture Notes
 
Ch1
Ch1Ch1
Ch1
 
Bab9
Bab9Bab9
Bab9
 
RDBMS
RDBMSRDBMS
RDBMS
 
Chapter2
Chapter2Chapter2
Chapter2
 
Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecture
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
 
Distributed dbms cs712 power point slides lecture 1
Distributed dbms   cs712 power point slides lecture 1Distributed dbms   cs712 power point slides lecture 1
Distributed dbms cs712 power point slides lecture 1
 
00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabus00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabus
 
Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207
 
Distributeddbmsarchitectures 190131073219
Distributeddbmsarchitectures 190131073219Distributeddbmsarchitectures 190131073219
Distributeddbmsarchitectures 190131073219
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Ch09
Ch09Ch09
Ch09
 
Database Management Systems 2
Database Management Systems 2Database Management Systems 2
Database Management Systems 2
 
L7 data model and dbms architecture
L7  data model and dbms architectureL7  data model and dbms architecture
L7 data model and dbms architecture
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Users
 

Ähnlich wie Database environment

DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structureRUpaliLohar
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Ravinder Kamboj
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbmsAnkit Dubey
 
CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)Dilawar Khan
 
Database Management Systems.ppt
Database Management Systems.pptDatabase Management Systems.ppt
Database Management Systems.ppttahakhan699813
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxSoniaDevi15
 
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
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2Mukund Trivedi
 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptxdhanajimirajkar1
 
Database architecture in Database Mgts 2
Database architecture in Database Mgts 2Database architecture in Database Mgts 2
Database architecture in Database Mgts 2AlfredTackieQuaye1
 
Database abstraction
Database abstractionDatabase abstraction
Database abstractionRituBhargava7
 
Database Development Strategies
Database Development StrategiesDatabase Development Strategies
Database Development StrategiesProf. Erwin Globio
 
Data abs ind & mod
Data abs  ind  & modData abs  ind  & mod
Data abs ind & modHaider Adnan
 
CHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxCHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxkashishy2
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxuwmctesting
 

Ähnlich wie Database environment (20)

DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structure
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbms
 
CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)
 
Database Management Systems.ppt
Database Management Systems.pptDatabase Management Systems.ppt
Database Management Systems.ppt
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
 
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
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptx
 
Database architecture in Database Mgts 2
Database architecture in Database Mgts 2Database architecture in Database Mgts 2
Database architecture in Database Mgts 2
 
Db4 th
Db4 thDb4 th
Db4 th
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Database abstraction
Database abstractionDatabase abstraction
Database abstraction
 
2.pptx
2.pptx2.pptx
2.pptx
 
Database Development Strategies
Database Development StrategiesDatabase Development Strategies
Database Development Strategies
 
Data abs ind & mod
Data abs  ind  & modData abs  ind  & mod
Data abs ind & mod
 
CHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptxCHAPTER 1 Database system architecture.pptx
CHAPTER 1 Database system architecture.pptx
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
Unit 1 dbms
Unit 1 dbmsUnit 1 dbms
Unit 1 dbms
 

Kürzlich hochgeladen

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Kürzlich hochgeladen (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Database environment

  • 1. THREE-LEVEL ARCHITECTURE User 1 User 2 User n External View 1 View 2 View n level The way users perceive the data. Mapping and Conceptual independence level Conceptual between external schema and internal levels. The way the Internal level Internal DBMS and OS schema perceive the data. Physical data organization Database Objective: separate each user’s view of the database from the way it is physically represented.
  • 2. EXTERNAL LEVEL (highest level) • The user’s view of the database. • Consists of a number of different external views of the DB. • Describes part of the DB for particular group of users. • Provides a powerful and flexible security mechanism by hiding parts of the DB from certain users. The user is not aware of the existence of any attributes that are missing from the view. • It permits users to access data in a way that is customized to their needs, so that the same data can be seen by different users in different ways, at the same time. CONCEPTUAL LEVEL • The logical structure of the entire database as seen by DBA. • What data is stored in the database. • The relationships among the data. • Complete view of the data requirements of the organization, independent of any storage consideration. • Represents: - ∀entities, attributes, relations - constraints on data - semantic information on data - security, integrity information Supports each external view: any data available to a user must be contained in, or derivable from the conceptual level.
  • 3. INTERNAL LEVEL • Physical representation of the DB on the computer. • How the data is stored in the database. • Physical implementation of the DB to achieve optimal run– time performance and storage space utilization. - Storage space allocation for data and indexes - Record description for storage - Record placement - Data compression, encryption PHYSICAL LEVEL Managed by the OS under the direction of the DBMS. SCHEMAS, MAPPINGS, INSTANCES DB schema: overall description of the DB. Three different schemas according to the level of abstraction. DBMS: mapping between schemas consistency of schemas
  • 4. conceptual/internal mapping: to find the actual record (combinations) in physical storage that constitute a logical record in the conceptual schema. external/conceptual mapping: map names in the user’s view onto the relevant part of the conceptual schema. External view 1 External view 2 Sno FName LName Age Salary Staff_No LName Bno Conceptual level Staff_No FName LName DOB Salary Branch_No struct STAFF { int Staff_No; int Branch_No; char FName[15]; Internal level char LName[15]; struct date Date_of_Birth; float Salary; struct STAFF*next; }; index Staff_No; index Branch_No; Database instance: the data in the DB at any particular point in time.
  • 5. DATA INDEPENDENCE The ability to modify a scheme definition in one level without affecting a scheme definition in a higher level is called data independence. 1. There are two kinds: Logical data independence • The ability to modify the conceptual scheme without causing application programs to be rewritten. • Immunity of external schemas to changes in the conceptual schema. • Usually done when logical structure of database is altered Physical data independence • The ability to modify the internal scheme without having to change the conceptual or external schemas. • Modifications at this level are usually to improve performance.
  • 6. DATA MODELS Data models are a collection of conceptual tools for describing data, data relationships, data semantics and data constraints. Components: structural part manipulative part integrity rules There are three different groups: Object-based Data Models Describe data at the conceptual Record-based Data Models } and external levels Physical Data Models Describe data at the internal level Object-based Data Models - Entity-relationship model. - Object-oriented model. - Semantic data model. - Functional data model
  • 7. Record-based Data Models • Named so because the database is structured in fixed- format records of several types. • Each record type defines a fixed number of fields, or attributes. • Each field is usually of a fixed length (this simplifies the implementation). • The three most widely accepted models are the relational, network, and hierarchical data model. Physical Data Models 1. Are used to describe data at the lowest level. 2. Very few models, e.g. o Unifying model. o Frame memory.