SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
CHAPTER 2: INTRODUCTION TO DATABASE
DEVELOPMENT STRATEGIES

Chapter Objectives
       At the end of the chapter, you should be able to :
        understand DBMS architecture and data independence;

        describe the database development process.


Essential Reading
       Fundamentals of Database Systems, Ramez Elmasri & Shamkant B. Narathe (1989),
       Benjamin/Cummings. [Chapter 2]
       Modem Database Management (4th Edition), Fred R. Mcfadden & Jeffrey A. Hoffer (1994),
       Benjamin/Cummings. [Chapter 3, page 73 - 97]




Useful Websites to learn Database and Programming:

http://erwinglobio.wix.com/ittraining

http://ittrainingsolutions.webs.com/

http://erwinglobio.sulit.com.ph/

http://erwinglobio.multiply.com/




Prof. Erwin M. Globio, MSIT                                                        2-1
DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES


2.1   DBMS Architecture
      Three important characteristics of the database approach are :
       program-data independence,
         support of multiple user views, and
         use of a catalogue to store the database description (schema).


      2.1.1 The Three-Schema Architecture
      The goal of the three-schema architecture is to separate the user applications and the physical
      database. In this architecture, schemas can be defined at the following three levels:
       The internal level has an internal schema, which describe the physical storage structure if
          the database. The internal schema uses a physical data model and describe the complete
          details of data storage and access paths for the database.
         The conceptual level has a conceptual schema, which describe the structure of the
          whole database for a community of users. The conceptual schema is a global description
          of the database that hides the details of physical storage structures and concentrates on
          describing entities, data types, relationships and constraints.
         The external or view level includes a number of external schemas or user views. Each
          external schema describes the database view of one group of database users. Each view
          typically describes the database view of one group of database users group is interested in
          and hides the rest of the database from that user group.
      Most DBMS do not separate the three levels completely. For example, many DBMS will
      include some physical level details in the conceptual schema. However, other DBMS fit in the
      general framework of the three-schema architecture. In most DBMSs that support user views,
      external schemas are specified in same data model at the conceptual level.




2-2                                                              Prof. Erwin M. Globio, MSIT
DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES




    EXTERNAL                                                  END USERS
    LEVEL

         EXTERNAL/
         CONCEPTUAL MAPPING           EXTERNAL VIEW                       EXTERNAL VIEW




    CONCEPTUAL                                        CONCEPTUAL SHEMA
    LEVEL


          EXTERNAL/CONCEPTUAL
          MAPPING




    INTERNAL LEVEL
                                                     CONCEPTUAL SCHEMA




                                                        STORED DATABASE


  Figure 2-1:       The three-schema architecture



       Notice that the three schemas are only descriptions of data; the only data that actually exists is
       at the physical level. Each user group refers only to its own external schema. Therefore, the
       DBMS must transform specified on an external schema for processing on the stored database.
       If the request is a database retrieval, the database extracted from the stored database must be
       reformatted to match the user's external view before it is presented to the user. The process of
       transforming requests and results between levels are called mapping.

       2.1.2 Data Independence
       The three-schema architecture can be used to explain the concept of data independence, which
       can be defined as the capacity to change the schema at one level of a database system without
       having to change the schema at the next higher level.
       There are two types of data independence :
        Logical data independence is the capacity to change the conceptual schema without
           having to change external schemas or application programs. For example, we may change
           the conceptual schema to expand the database by removing a record type or data item. In
           this case, the external schemas that refer only to the remaining data should not be
           affected. Only the view definitions and the mapping need to be changed in a DBMS that
           supports logical data independence.




Prof. Erwin M. Globio, MSIT                                                                   2-3
DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES


      Physical data independence is the capacity to change the internal schema without having to
      change the conceptual (or external) schemas. Changes to the internal schema may be needed
      because some physical files are reorganized, for example, when create additional access
      structures to improve the performance of retrieval or update. In this case, if the same data as
      before remains in the database, we should not have to change the conceptual schema.
      The table, as shown below, lists typical changes that can be made for each type of
      independence without altering application programs. Although database management systems
      differ in the amount and level of data independence they provide, only the relational data
      model provides most of the types of data independence shown in the table.
        Level of data independence                       Examples of changes
        Logical
        Data item format                Data item, type, length, or representation
        Data item usage                 How a data item is derived, used, edited, or
        Logical record structure        protected
        Logical data structure          How data items are group into logical records
                                        Overall logical structure or conceptual model
        Physical
        Physical data organization      How the data are organized into stored records
        Access method                   What search techniques and access strategies are used

       Physical data location           Where data are located on storage devices
       Storage device                   Characteristics of the physical storage devices used

      The mapping information is stored in the repository. The DBMS refers to this mapping
      information to accomplish mapping between inter-levels. Data independence is accomplished
      because when we changed the schema at some level, we can leave the schema at the next
      higher level unchanged and change only the mapping between the two levels. Application
      programs referring to the higher-level schema need not to be changed.




2-4                                                             Prof. Erwin M. Globio, MSIT
DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES



2.2    Database Development Process

                                                   PLANNING




                                                                ENTERPRISE DATA MODEL


                                                   ANALYSIS



                                                               CONCEPTUAL DATA MODEL

                                             LOGICAL DATABASE
                                                  DESIGN



                                                               LOGICAL DATA MODEL

                                                PHYSICAL
                                             DATABASE DESIGN



                                                               PHYSICAL DATA
                                                               MODEL

                                              IMPLEMENTATION



                                                               DATABASE REPOSITORIES

           Figure 2.2:      Summary of the database development process



       2.2.1 Planning
       The goal of the planning phase is to align information technology with the business strategies
       of an organisation. Organisations can achieve a competitive advantage when they are able to
       develop sound information systems plans. Also, critical success factors and problems areas
       have to be identified too. At the end of planning phase, an enterprise model is developed. This
       enterprise model consists of the following :
        breaking the functions of an organization down into progressively lower levels of details;
            identifying the entity types and the relationship between them (a draft overall E-R
             diagram).




Prof. Erwin M. Globio, MSIT                                                                   2-5
DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES



      2.2.2 Analysis
      The purpose of this phase is to develop detailed specifications for the information systems
      required to support the organisation. Analysis covers the following :
       study of the current business situation;
         determination of the new system requirements.
      At the end of this phase, a conceptual data model (a detailed E-R data model) will be built.
      This conceptual data model includes the relevant entities, relationships and attributes as well
      as the business rules and constraints that define how the data are used.

      2.2.3 Design
      The purpose of this stage is to transform the conceptual data model to an implementation
      model that a particular DBMS can process with performance that is acceptable to all users
      throughout the organisation.
      This database design includes logical database design and physical database design.
      Logical database design is the process of mapping conceptual data model to structures that
      are specific to the target DBMS. For example, if the target environment is a relational DBMS,
      then the conceptual data models (E-R data model) are mapped to normalised relations. (This
      will be discussed in the later chapters.)
      Physical database design is the process of mapping the database structures from logical
      design into physical storage structures such as files and tables. Indexes, access methods are
      also specified. The objectives of this physical design are to provide adequate performances for
      user applications in terms of response times, throughout rates etc.

      2.2.4 Implementation
      Implementation involves a series of steps leading to operational information systems that
      includes creating database definitions, creating program code, testing the systems, developing
      operational procedures and documentation, training and loading the databases.




2-6                                                             Prof. Erwin M. Globio, MSIT
DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES



2.3    Review Questions
       1.        Give the definitions for the following terms:
            a.external
            b.       conceptual schema
            c.internal schema
            d.       external-conceptual mapping
       2.        Explain what is data dependency.
       3.        What is the difference between logical data independence and physical data
                 independence? Which is easier to accomplish? (Justify your answers.)
       4.        Discuss briefly what are the output of each database development phase.




Prof. Erwin M. Globio, MSIT                                                                   2-7

Mais conteúdo relacionado

Destaque

Introduction to Android Development Latest
Introduction to Android Development LatestIntroduction to Android Development Latest
Introduction to Android Development Latest
Prof. Erwin Globio
 
iOS Apps Development (SQLite Tutorial Part 1)
iOS Apps Development (SQLite Tutorial Part 1)iOS Apps Development (SQLite Tutorial Part 1)
iOS Apps Development (SQLite Tutorial Part 1)
Prof. Erwin Globio
 
iOS Apps Development (SQLite Tutorial Part 2)
iOS Apps Development (SQLite Tutorial Part 2)iOS Apps Development (SQLite Tutorial Part 2)
iOS Apps Development (SQLite Tutorial Part 2)
Prof. Erwin Globio
 
Improvement in production efficiency with integrated erp system
Improvement in production efficiency with integrated erp systemImprovement in production efficiency with integrated erp system
Improvement in production efficiency with integrated erp system
Renzil D'cruz
 

Destaque (20)

Android Fragments
Android FragmentsAndroid Fragments
Android Fragments
 
A tutorial on C++ Programming
A tutorial on C++ ProgrammingA tutorial on C++ Programming
A tutorial on C++ Programming
 
Introduction to Android Development Latest
Introduction to Android Development LatestIntroduction to Android Development Latest
Introduction to Android Development Latest
 
iOS Apps Development (SQLite Tutorial Part 1)
iOS Apps Development (SQLite Tutorial Part 1)iOS Apps Development (SQLite Tutorial Part 1)
iOS Apps Development (SQLite Tutorial Part 1)
 
FND COMP Project Guidelines
FND COMP Project GuidelinesFND COMP Project Guidelines
FND COMP Project Guidelines
 
PSITE Letter for Prof Globio
PSITE Letter for Prof GlobioPSITE Letter for Prof Globio
PSITE Letter for Prof Globio
 
Structured Query Language
Structured Query LanguageStructured Query Language
Structured Query Language
 
Solutions to Common Android Problems
Solutions to Common Android ProblemsSolutions to Common Android Problems
Solutions to Common Android Problems
 
iOS Apps Development (SQLite Tutorial Part 2)
iOS Apps Development (SQLite Tutorial Part 2)iOS Apps Development (SQLite Tutorial Part 2)
iOS Apps Development (SQLite Tutorial Part 2)
 
Database Management System 1
Database Management System 1Database Management System 1
Database Management System 1
 
Improvement in production efficiency with integrated erp system
Improvement in production efficiency with integrated erp systemImprovement in production efficiency with integrated erp system
Improvement in production efficiency with integrated erp system
 
Top 5 Ways to Scale SQL with No New Hardware
Top 5 Ways to Scale SQL with No New HardwareTop 5 Ways to Scale SQL with No New Hardware
Top 5 Ways to Scale SQL with No New Hardware
 
User Experience as an Organizational Development Tool
User Experience as an Organizational Development ToolUser Experience as an Organizational Development Tool
User Experience as an Organizational Development Tool
 
Database performance improvement, a six sigma project (4 block) by nirav shah
Database performance improvement, a six sigma project (4 block) by nirav shah Database performance improvement, a six sigma project (4 block) by nirav shah
Database performance improvement, a six sigma project (4 block) by nirav shah
 
Benchmarking the Procurement Function
Benchmarking the Procurement FunctionBenchmarking the Procurement Function
Benchmarking the Procurement Function
 
Procurement process outsourcing how it works
Procurement process outsourcing   how it worksProcurement process outsourcing   how it works
Procurement process outsourcing how it works
 
091126 UUJ MSc Bus Imp.ppt
091126  UUJ MSc Bus Imp.ppt091126  UUJ MSc Bus Imp.ppt
091126 UUJ MSc Bus Imp.ppt
 
Performance improvement methodology
Performance improvement methodologyPerformance improvement methodology
Performance improvement methodology
 
Project Proposal Guidelines
Project Proposal GuidelinesProject Proposal Guidelines
Project Proposal Guidelines
 
ERP - Improve organization efficiency
ERP - Improve organization efficiencyERP - Improve organization efficiency
ERP - Improve organization efficiency
 

Semelhante a Database Development Strategies

CP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementCP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implement
flyinimohamed
 
Datamodels & architecture
Datamodels & architectureDatamodels & architecture
Datamodels & architecture
Neeraj Kumar
 
Database system concepts and architecture
Database system concepts and architectureDatabase system concepts and architecture
Database system concepts and architecture
Jafar Nesargi
 

Semelhante a Database Development Strategies (20)

Dbms module i
Dbms module iDbms module i
Dbms module i
 
Unit 1.2.pptx
Unit 1.2.pptxUnit 1.2.pptx
Unit 1.2.pptx
 
Database system
Database systemDatabase system
Database system
 
Database system
Database systemDatabase system
Database system
 
Database system
Database systemDatabase system
Database system
 
Database system-DBMS
Database system-DBMSDatabase system-DBMS
Database system-DBMS
 
CP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implementCP 121_2.pptx about time to be implement
CP 121_2.pptx about time to be implement
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
Database Management Systems.ppt
Database Management Systems.pptDatabase Management Systems.ppt
Database Management Systems.ppt
 
Database concepts and Archeticture Ch2 with in class Activities
Database concepts and Archeticture Ch2 with in class ActivitiesDatabase concepts and Archeticture Ch2 with in class Activities
Database concepts and Archeticture Ch2 with in class Activities
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
Datamodels & architecture
Datamodels & architectureDatamodels & architecture
Datamodels & architecture
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
1.introduction qb
1.introduction qb1.introduction qb
1.introduction qb
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkkDatabase Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkk
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
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
 

Mais de Prof. Erwin Globio

Cisco Router Basic Configuration
Cisco Router Basic ConfigurationCisco Router Basic Configuration
Cisco Router Basic Configuration
Prof. Erwin Globio
 
Introduction to iOS Apps Development
Introduction to iOS Apps DevelopmentIntroduction to iOS Apps Development
Introduction to iOS Apps Development
Prof. Erwin Globio
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
Prof. Erwin Globio
 
Human Resource Management Seminar
Human Resource Management SeminarHuman Resource Management Seminar
Human Resource Management Seminar
Prof. Erwin Globio
 

Mais de Prof. Erwin Globio (20)

Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
BSCS | BSIT Thesis Guidelines
BSCS | BSIT Thesis GuidelinesBSCS | BSIT Thesis Guidelines
BSCS | BSIT Thesis Guidelines
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
Networking Trends
Networking TrendsNetworking Trends
Networking Trends
 
Sq lite presentation
Sq lite presentationSq lite presentation
Sq lite presentation
 
Ethics for IT Professionals
Ethics for IT ProfessionalsEthics for IT Professionals
Ethics for IT Professionals
 
Cisco Router Basic Configuration
Cisco Router Basic ConfigurationCisco Router Basic Configuration
Cisco Router Basic Configuration
 
Introduction to iOS Apps Development
Introduction to iOS Apps DevelopmentIntroduction to iOS Apps Development
Introduction to iOS Apps Development
 
Cloud Computing Latest
Cloud Computing LatestCloud Computing Latest
Cloud Computing Latest
 
Overview of C Language
Overview of C LanguageOverview of C Language
Overview of C Language
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and Installation
 
Java Collections Tutorials
Java Collections TutorialsJava Collections Tutorials
Java Collections Tutorials
 
Action Bar in Android
Action Bar in AndroidAction Bar in Android
Action Bar in Android
 
Resource Speaker
Resource SpeakerResource Speaker
Resource Speaker
 
Guidelines to Qualitative Researches
Guidelines to Qualitative ResearchesGuidelines to Qualitative Researches
Guidelines to Qualitative Researches
 
Lecture on E-Presentation
Lecture on E-PresentationLecture on E-Presentation
Lecture on E-Presentation
 
Thesis Writing
Thesis WritingThesis Writing
Thesis Writing
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Human Resource Management Seminar
Human Resource Management SeminarHuman Resource Management Seminar
Human Resource Management Seminar
 

Último

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
kauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 

Último (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
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 ...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Database Development Strategies

  • 1. CHAPTER 2: INTRODUCTION TO DATABASE DEVELOPMENT STRATEGIES Chapter Objectives At the end of the chapter, you should be able to :  understand DBMS architecture and data independence;  describe the database development process. Essential Reading Fundamentals of Database Systems, Ramez Elmasri & Shamkant B. Narathe (1989), Benjamin/Cummings. [Chapter 2] Modem Database Management (4th Edition), Fred R. Mcfadden & Jeffrey A. Hoffer (1994), Benjamin/Cummings. [Chapter 3, page 73 - 97] Useful Websites to learn Database and Programming: http://erwinglobio.wix.com/ittraining http://ittrainingsolutions.webs.com/ http://erwinglobio.sulit.com.ph/ http://erwinglobio.multiply.com/ Prof. Erwin M. Globio, MSIT 2-1
  • 2. DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES 2.1 DBMS Architecture Three important characteristics of the database approach are :  program-data independence,  support of multiple user views, and  use of a catalogue to store the database description (schema). 2.1.1 The Three-Schema Architecture The goal of the three-schema architecture is to separate the user applications and the physical database. In this architecture, schemas can be defined at the following three levels:  The internal level has an internal schema, which describe the physical storage structure if the database. The internal schema uses a physical data model and describe the complete details of data storage and access paths for the database.  The conceptual level has a conceptual schema, which describe the structure of the whole database for a community of users. The conceptual schema is a global description of the database that hides the details of physical storage structures and concentrates on describing entities, data types, relationships and constraints.  The external or view level includes a number of external schemas or user views. Each external schema describes the database view of one group of database users. Each view typically describes the database view of one group of database users group is interested in and hides the rest of the database from that user group. Most DBMS do not separate the three levels completely. For example, many DBMS will include some physical level details in the conceptual schema. However, other DBMS fit in the general framework of the three-schema architecture. In most DBMSs that support user views, external schemas are specified in same data model at the conceptual level. 2-2 Prof. Erwin M. Globio, MSIT
  • 3. DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES EXTERNAL END USERS LEVEL EXTERNAL/ CONCEPTUAL MAPPING EXTERNAL VIEW EXTERNAL VIEW CONCEPTUAL CONCEPTUAL SHEMA LEVEL EXTERNAL/CONCEPTUAL MAPPING INTERNAL LEVEL CONCEPTUAL SCHEMA STORED DATABASE Figure 2-1: The three-schema architecture Notice that the three schemas are only descriptions of data; the only data that actually exists is at the physical level. Each user group refers only to its own external schema. Therefore, the DBMS must transform specified on an external schema for processing on the stored database. If the request is a database retrieval, the database extracted from the stored database must be reformatted to match the user's external view before it is presented to the user. The process of transforming requests and results between levels are called mapping. 2.1.2 Data Independence The three-schema architecture can be used to explain the concept of data independence, which can be defined as the capacity to change the schema at one level of a database system without having to change the schema at the next higher level. There are two types of data independence :  Logical data independence is the capacity to change the conceptual schema without having to change external schemas or application programs. For example, we may change the conceptual schema to expand the database by removing a record type or data item. In this case, the external schemas that refer only to the remaining data should not be affected. Only the view definitions and the mapping need to be changed in a DBMS that supports logical data independence. Prof. Erwin M. Globio, MSIT 2-3
  • 4. DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES Physical data independence is the capacity to change the internal schema without having to change the conceptual (or external) schemas. Changes to the internal schema may be needed because some physical files are reorganized, for example, when create additional access structures to improve the performance of retrieval or update. In this case, if the same data as before remains in the database, we should not have to change the conceptual schema. The table, as shown below, lists typical changes that can be made for each type of independence without altering application programs. Although database management systems differ in the amount and level of data independence they provide, only the relational data model provides most of the types of data independence shown in the table. Level of data independence Examples of changes Logical Data item format Data item, type, length, or representation Data item usage How a data item is derived, used, edited, or Logical record structure protected Logical data structure How data items are group into logical records Overall logical structure or conceptual model Physical Physical data organization How the data are organized into stored records Access method What search techniques and access strategies are used Physical data location Where data are located on storage devices Storage device Characteristics of the physical storage devices used The mapping information is stored in the repository. The DBMS refers to this mapping information to accomplish mapping between inter-levels. Data independence is accomplished because when we changed the schema at some level, we can leave the schema at the next higher level unchanged and change only the mapping between the two levels. Application programs referring to the higher-level schema need not to be changed. 2-4 Prof. Erwin M. Globio, MSIT
  • 5. DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES 2.2 Database Development Process PLANNING ENTERPRISE DATA MODEL ANALYSIS CONCEPTUAL DATA MODEL LOGICAL DATABASE DESIGN LOGICAL DATA MODEL PHYSICAL DATABASE DESIGN PHYSICAL DATA MODEL IMPLEMENTATION DATABASE REPOSITORIES Figure 2.2: Summary of the database development process 2.2.1 Planning The goal of the planning phase is to align information technology with the business strategies of an organisation. Organisations can achieve a competitive advantage when they are able to develop sound information systems plans. Also, critical success factors and problems areas have to be identified too. At the end of planning phase, an enterprise model is developed. This enterprise model consists of the following :  breaking the functions of an organization down into progressively lower levels of details;  identifying the entity types and the relationship between them (a draft overall E-R diagram). Prof. Erwin M. Globio, MSIT 2-5
  • 6. DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES 2.2.2 Analysis The purpose of this phase is to develop detailed specifications for the information systems required to support the organisation. Analysis covers the following :  study of the current business situation;  determination of the new system requirements. At the end of this phase, a conceptual data model (a detailed E-R data model) will be built. This conceptual data model includes the relevant entities, relationships and attributes as well as the business rules and constraints that define how the data are used. 2.2.3 Design The purpose of this stage is to transform the conceptual data model to an implementation model that a particular DBMS can process with performance that is acceptable to all users throughout the organisation. This database design includes logical database design and physical database design. Logical database design is the process of mapping conceptual data model to structures that are specific to the target DBMS. For example, if the target environment is a relational DBMS, then the conceptual data models (E-R data model) are mapped to normalised relations. (This will be discussed in the later chapters.) Physical database design is the process of mapping the database structures from logical design into physical storage structures such as files and tables. Indexes, access methods are also specified. The objectives of this physical design are to provide adequate performances for user applications in terms of response times, throughout rates etc. 2.2.4 Implementation Implementation involves a series of steps leading to operational information systems that includes creating database definitions, creating program code, testing the systems, developing operational procedures and documentation, training and loading the databases. 2-6 Prof. Erwin M. Globio, MSIT
  • 7. DB212 CHAPTER 2: INTRODUCTION TO DATABASE DEVELPOMENT STRATEGIES 2.3 Review Questions 1. Give the definitions for the following terms: a.external b. conceptual schema c.internal schema d. external-conceptual mapping 2. Explain what is data dependency. 3. What is the difference between logical data independence and physical data independence? Which is easier to accomplish? (Justify your answers.) 4. Discuss briefly what are the output of each database development phase. Prof. Erwin M. Globio, MSIT 2-7