Chapter 10 Practical Database Design Methodology and Use of UML Diagrams

Similar documents
Chapter 10 Practical Database Design Methodology and Use of UML Diagrams

Chapter 10. Practical Database Design Methodology. The Role of Information Systems in Organizations. Practical Database Design Methodology

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

7.1 The Information system

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model

The Information System Lifecircle

Answers to Review Questions

Database Administrator [DBA]

D6 INFORMATION SYSTEMS DEVELOPMENT. SOLUTIONS & MARKING SCHEME. June 2013

DATA MODELING AND RELATIONAL DATABASE DESIGN IN ARCHAEOLOGY

Chap 1. Introduction to Software Architecture

Configuration Management: An Object-Based Method Barbara Dumas

CDC UNIFIED PROCESS PRACTICES GUIDE

CSE 233. Database System Overview

Chapter 2. Data Model. Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel

COURSE NAME: Database Management. TOPIC: Database Design LECTURE 3. The Database System Life Cycle (DBLC) The database life cycle contains six phases;

Chapter 8 The Enhanced Entity- Relationship (EER) Model

Applying 4+1 View Architecture with UML 2. White Paper

To introduce software process models To describe three generic process models and when they may be used

CHAPTER. Jones & Bartlett Learning, LLC NOT FOR SALE OR DISTRIBUTION. Database Planning and Database Architecture

Introduction to Database Development

Software Engineering. Software Processes. Based on Software Engineering, 7 th Edition by Ian Sommerville

Objectives. Chapter 12. System Design. Model-Driven Approaches. System Design Approaches Systems Design

CSE 132A. Database Systems Principles

How To Write A Diagram

Chapter 9 Political Enterprise Database Management System (PDBHS or PEDBHS)

DATA MANAGEMENT STANDARDS IN COMPUTER-AIDED ACQUISITION AND LOGISTIC SUPPORT (CALS)

Database Design Methodology

Principles of Database. Management: Summary

BUSINESS RULES AND GAP ANALYSIS

System Design Approaches. System Design. Model-Driven Approaches Modern Structured Design. Model-Driven Approaches

A Rational Software Whitepaper

B.Sc (Computer Science) Database Management Systems UNIT-V

Manage Software Development in LabVIEW with Professional Tools

Fundamentals of Information Systems, Fifth Edition. Chapter 8 Systems Development

1 INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN

Chapter 2 Database System Concepts and Architecture

Data Modeling Basics

Figure 2: DAMA Publications

Requirements Management

CHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY

Lost in Space? Methodology for a Guided Drill-Through Analysis Out of the Wormhole

IV. The (Extended) Entity-Relationship Model

Physical Database Design and Tuning

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

Rose Data Modeler (logical)

Chapter 6 Basics of Data Integration. Fundamentals of Business Analytics RN Prasad and Seema Acharya

Introduction to Systems Analysis and Design

1. Physical Database Design in Relational Databases (1)

Your Software Quality is Our Business. INDEPENDENT VERIFICATION AND VALIDATION (IV&V) WHITE PAPER Prepared by Adnet, Inc.

SOFTWARE ENGINEERING INTERVIEW QUESTIONS

MS-40074: Microsoft SQL Server 2014 for Oracle DBAs

Database Design Methodology

How To Develop Software

Investigate Requirements for Software Solutions

Rotorcraft Health Management System (RHMS)

Overview. DW Source Integration, Tools, and Architecture. End User Applications (EUA) EUA Concepts. DW Front End Tools. Source Integration

White Paper What Solutions Architects Should Know About The TOGAF ADM

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Nr.: Fakultät für Informatik Otto-von-Guericke-Universität Magdeburg

Systems Analysis and Design

Cloud Data Management Interface (CDMI) The Cloud Storage Standard. Mark Carlson, SNIA TC and Oracle Chair, SNIA Cloud Storage TWG

System/Data Requirements Definition Analysis and Design

Total Quality Management (TQM) Quality, Success and Failure. Total Quality Management (TQM) vs. Process Reengineering (BPR)

Industry Models and Information Server

A brief overview of developing a conceptual data model as the first step in creating a relational database.

Lesson 8: Introduction to Databases E-R Data Modeling

DATABASE SYSTEM CONCEPTS AND ARCHITECTURE CHAPTER 2

Software Development Processes. Software Life-Cycle Models. Process Models in Other Fields. CIS 422/522 Spring

Data Warehouse Overview. Srini Rengarajan

Chapter 1: Introduction. Database Management System (DBMS) University Database Example

Chapter 1 System Development Environment

In this Lecture you will Learn: Systems Development Methodologies. Why Methodology? Why Methodology?

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

B.Com(Computers) II Year RELATIONAL DATABASE MANAGEMENT SYSTEM Unit- I

Systems Investigation and Analysis. Systems Development. What is it? Why Plan?

Unit 2.1. Data Analysis 1 - V Data Analysis 1. Dr Gordon Russell, Napier University

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

Chapter 1: Introduction

INFORMATION SYSTEMS SPECIALIST

Lecture 9: Requirements Modelling

DATA QUALITY DATA BASE QUALITY INFORMATION SYSTEM QUALITY

Database Management. Chapter Objectives

Introduction. Chapter 1. Introducing the Database. Data vs. Information

Concepts of Database Management Seventh Edition. Chapter 6 Database Design 2: Design Method

Exhibit F. VA CAI - Staff Aug Job Titles and Descriptions Effective 2015

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model

DATABASE REVERSE ENGINEERING

Software Engineering Question Bank

IV. Software Lifecycles

Chapter 1 Databases and Database Users

Chapter 13 BUILDING INFORMATION SYSTEMS. How does building new systems produce organizational change?

CACHÉ: FLEXIBLE, HIGH-PERFORMANCE PERSISTENCE FOR JAVA APPLICATIONS

Software Design Document (SDD) Template

Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 1 Outline

Chapter Outline. Chapter 2 Distributed Information Systems Architecture. Middleware for Heterogeneous and Distributed Information Systems

Transcription:

Chapter 10 Practical Database Design Methodology and Use of UML Diagrams Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Chapter 10 Outline The Role of Information Systems in Organizations The Database Design and Implementation Process Automated Database Design Tools

Practical Database Design Methodology and Use of UML Diagrams Design methodology Target database managed by some type of database management system Various design methodologies Large database Several dozen gigabytes of data and a schema with more than 30 or 40 distinct entity types

The Role of Information Systems in Organizations Organizational context for using database systems Organizations have created the position of database administrator (DBA) and database administration departments Information technology (IT) and information resource management (IRM) departments Key to successful business management

The Role of Information Systems in Organizations Database systems are integral components in computer-based information systems Personal computers and database system-like software products Utilized by users who previously belonged to the category of casual and occasional database users Personal databases gaining popularity Databases are distributed over multiple computer systems Better local control and faster local processing

Organizational Context for using Database Systems Consolidation of data across organization Maintenance of complex data Simplicity of developing new applications Data independence Protecting application programs from changes in the underlying logical organization and in the physical access paths and storage structures External Schemas Allow the same data to be used for multiple apps with each application having its own view of the data Slide 12-6

The Role of Information Systems in Organizations Data dictionary systems or information repositories Mini DBMSs Manage meta-data High-performance transaction processing systems require around-the-clock nonstop operation Performance is critical

The Information System Life Cycle Information system (IS) Resources involved in collection, management, use, and dissemination of information resources of organization

The Information System Life Cycle Macro life cycle Feasibility analysis Requirements collection and analysis Design Implementation Validation and acceptance testing Requirements collection and analysis

Phases of Information System Life Cycle Feasibility Analysis Analyzing potential application areas Identifying the economics of information gathering and dissemination Performing cost benefit studies Setting up priorities among applications Requirement Collection and Analysis Detailed Requirements Collection Interaction with Users Design Design of Database System Design of programs that use and process the database Slide 12-10

Phases of Information System Life Cycle Implementation Information system is implemented Database is loaded & its transactions are implemented and tested Validation and Acceptance Testing Testing against user s requirements Testing against performance criteria Deployment, Operation and Maintenance Data conversion Training System maintenance Performance monitoring Database tuning Slide 12-11

The Information System Life Cycle The database application system life cycle: micro life cycle System definition Database design Database implementation Loading or data conversion

The Information System Life Cycle Application conversion Testing and validation Operation Monitoring and maintenance

Database System Life Cycle System definition Defining scope of database system, its users and applications Database Design Logical and physical design of the database system on the chosen DBMS Database implementation Specifying conceptual, external and internal database definitions Creating empty database files Implementing software applications Slide 12-14

Database System Life Cycle Loading or data conversion Populating the database Application conversion Converting applications to the new system Testing and validation Operation Running the new system Monitoring and maintenance System maintenance Performance monitoring Slide 12-15

The Database Design and Implementation Process Design logical and physical structure of one or more databases Accommodate the information needs of the users in an organization for a defined set of applications Goals of database design Very hard to accomplish and measure Often begins with informal and incomplete requirements

The Database Design and Implementation Process Main phases of the overall database design and implementation process: 1. Requirements collection and analysis 2. Conceptual database design 3. Choice of a DBMS 4. Data model mapping (also called logical database design) 5. Physical database design 6. Database system implementation and tuning

The Database Design and Implementation Process Parallel activities Data content, structure, and constraints of the database Design of database applications Data-driven versus process-driven design Feedback loops among phases and within phases are common

The Database Design and Implementation Process Heart of the database design process Conceptual database design (Phase 2) Data model mapping (Phase 4) Physical database design (Phase 5) Database system implementation and tuning (Phase 6)

Phase 1: Requirements Collection and Analysis Activities Identify application areas and user groups Study and analyze documentation Study current operating environment Collect written responses from users

Phase 1 Requirements specification techniques Oriented analysis (OOA) Data flow diagrams (DFDs Refinement of application goals Computer-aided

Phase 2: Conceptual Database Design Phase 2a: Conceptual Schema Design Important to use a conceptual high-level data model Approaches to conceptual schema design Centralized (or one shot) schema design approach View integration approach

Phase 2: Strategies for schema design Top-down strategy Bottom-up strategy Inside-out strategy Mixed strategy Schema (view) integration Identify correspondences/conflicts among schemas: Naming conflicts, type conflicts, domain (value set) conflicts, conflicts among constraints Modify views to conform to one another Merge of views and restructure

Strategies for Schema Design Top Down Strategy Start with a schema containing high-level abstractions and then apply successive topdown refinements Slide 12-25

Bottom-Up Strategy Start with a schema containing basics abstractions and then combine or add to these abstractions Strategies for Schema Design Slide 12-26

Strategies for Schema Design Inside-out Strategy Start with central set of concepts and then spread outward by considering new concepts in the vicinity of existing ones Mixed Strategy Use a combination of top-down and bottom-up strategies Slide 12-27

Phase 2: Strategies for the view integration process Binary ladder integration N-ary integration Binary balanced strategy Mixed strategy Phase 2b: Transaction Design In parallel with Phase 2a Specify transactions at a conceptual level Identify input/output and functional behavior Notation for specifying processes

View Integration Strategies Binary Ladder Integration Two similar schemas are integrated first and the resulting schema is then integrated with another schema The process is repeated until all schemas are integrated N-ary Integration All views are integrated in one procedure after analysis and specification of their correspondences Requires computerized tools for large designs Slide 12-29

View Integration Strategies Binary Balanced Strategy Pairs of schemas are integrated first and the resulting schemas are then paired for further integration. This process is repeated until a final global schema Mixed Strategy Schemas partitioned into groups based on their similarity; each group integrated separately. This process is repeated until a final global schema Slide 12-30

Goal Conceptual Schema Design Complete understanding of the database structure, semantics, interrelationships and constraints Serves as a stable description of the database contents Good understanding crucial for the users and designers Diagrammatic description serves as an excellent communication tool Slide 12-31

Desired Characteristics of Conceptual Data Model Expressiveness Able to distinguish different types of data, relationships and constraints Simplicity and Understandability Easy to understand Minimality Small number of distinct basic concepts Diagrammatic Representation Diagrammatic notation to represent conceptual schema Formality Formal unambiguous specification of data Slide 12-32

Approaches to Conceptual Schema Design Centralized Schema Design Approach Also known as one-shot approach Requirements of different applications and user groups are merged into a single set of requirements and a single schema is designed Time consuming, places the burden on DBA to reconcile conflicts View Integration Approach Schema is designed for each user group or application These schemas are then merged into a global conceptual schema during the view integration phase More practical Slide 12-33

Schema Integration Identifying correspondence and conflict among different schemas Naming conflicts Synonyms: The same concept but different names e.g. entity types CUSTOMER and CLIENT Homonyms: Different concepts but same name e.g. entity type PART as computer parts and furniture parts Type Conflicts: Representing the same concept by different modeling constructs e.g. DEPARTMENT may be an entity type and an attribute Domain Conflicts: Attribute has different domains Also known as value set conflicts e.g. SSN as an integer and as a character string Conflict among constraints: Two schemas impose different constraints e.g. different key of an entity type in different schemas Slide 12-34

Schema Integration Modifying views to conform to one another Modifying schemas to conform to one another Merging of views Merging Schemas to create a global schema Specifying mappings between views and global schema Time consuming and difficult Restructuring Simplifying and restructuring to remove any redundancies Slide 12-35

View Integration Strategies Slide 12-36

Phase 3: Choice of a DBMS Costs to consider Software acquisition cost Maintenance cost Hardware acquisition cost Database creation and conversion cost Personnel cost Training cost Operating cost Consider DBMS portability among different types of hardware

Transaction Design Design characteristics of known database transactions in a DBMS Types of Transactions Retrieval Transactions Used to retrieve data Update Transactions Update data Mixed Transactions Combination of update and retrieval Techniques for Specifying Transactions Input/output Functional Behavior Slide 12-38

Choice of DBMS Many factors to consider Technical Factors Type of DBMS: Relational, object-relational, object etc. Storage Structures Architectural options Economic Factors Acquisition, maintenance, training and operating costs Database creation and conversion cost Organizational Factors Organizational philosophy Relational or Object Oriented Vendor Preference Familiarity of staff with the system Availability of vendor services Slide 12-39

Phase 4: Data Model Mapping (Logical Database Design) Create a conceptual schema and external schemas In data model of selected DBMS Stages System-independent mapping Tailoring schemas to a specific DBMS

Logical Database Design Transform the Schema from high-level data model into the data model of the selected DBMS. Design of external schemas for specific applications Two stages 1. System-independent mapping DBMS independent mapping 2. Tailoring the schemas to a specific DBMS Adjusting the schemas obtained in step 1 to conform to the specific implementation features of the data model used in the selected DBMS Result DDL statements in the language of the chosen DBMS Slide 12-41

Phase 5: Physical Database Design Choose specific file storage structures and access paths for the database files Achieve good performance Criteria used to guide choice of physical database design options: Response time Space utilization Transaction throughput

Physical Database Design Design the specifications for the stored database in terms of physical storage structures, record placements and indexes. Design Criteria Response Time Elapsed Time between submitting a database transaction for execution and receiving a response Space Utilization Storage space used by database files and their access path structures Transaction throughput Average number of transactions/minute Must be measured under peak conditions Result Initial determination of storage structures and access paths for database files Slide 12-43

Phase 6: Database System Implementation and Tuning Typically responsibility of the DBA Compose DDL Load database Convert data from earlier systems Database programs implemented by application programmers Most systems include monitoring utility to collect performance statistics

Database System Implementation and Tuning During this phase database and application programs are implemented, tested and deployed Database Tuning System and Performance Monitoring Data indexing Reorganization Tuning is a continuous process Slide 12-45

Database Design Tools Common Features Allow the designer to draw conceptual schema diagram in some tool-specific notation Allow model mapping Allow some level of design normalization Problems Most tools do nothing more than representing relationships among tables Most tools lack built-in methodology support Most tools have poor design verification system Slide 12-46

Characteristics of a Good Design Tool Easy-to-use interface Easy to use Customizable Analytical components For difficult tasks such as evaluating physical design alternatives or detecting conflicting constraints among views Heuristic components Automating design process using heuristic rules Slide 12-47

Characteristics of a Good Design Tool Trade-off analysis Comparative analysis in case of multiple alternatives At least at the conceptual design level Display of design results Displaying results in simple and easy to understand form Design Verification Verifying that the resulting design satisfies the initial requirements Slide 12-48

Automated Database Design Tools Many CASE (computer-aided software engineering) tools for database design Combination of the following facilities Diagramming Model mapping Design normalization

Automated Database Design Tools Characteristics that a good design tool should possess: Easy-to-use interface Analytical components Heuristic components Trade-off analysis Display of design results Design verification

Automated Database Design Tools Variety of products available Some use expert system technology

Summary Six phases of the design process Commonly include conceptual design, logical design (data model mapping), physical design UML diagrams Aid specification of database models and design Rational Rose and the Rose Data Modeler Provide support for the conceptual design and logical design phases of database design