chapter 8

41
8 Chapter 8 The University Lab: Conceptual Design Verification, Logical Design, and Implementation Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel

Upload: ulric-logan

Post on 31-Dec-2015

16 views

Category:

Documents


0 download

DESCRIPTION

Chapter 8. The University Lab: Conceptual Design Verification, Logical Design, and Implementation Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel. In this chapter, you will learn:. How the Lab Management System modules are defined and refined - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 8

8

Chapter 8

The University Lab: Conceptual Design Verification, Logical Design,

and Implementation

Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel

Page 2: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 2

8

In this chapter, you will learn:• How the Lab Management System modules are defined and

refined• How attributes and domains are identified and defined

for each of the entities defined in the initial E-R model• How the database transactions are identified and defined

within the system modules• That the design verification process uses modeling and

normalization techniques concurrently to find and eliminate data redundancies

• Review the steps of database implementation• Review the steps of database testing and evaluation• Review the steps of database operation

Page 3: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 3

8

Completing Conceptual and Logical Design

• Detail Matters!– Tasks

• Entity relationship modeling and normalization• Data model verification• Logical design• Physical design• Implementation• Testing and Evaluation• Operation

– Primary modules• Lab Management System• Inventory Management System

Page 4: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 4

8

Entities Identified

Table 8.2

Page 5: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 5

8

Completion of Conceptual Design

• Refine module definition– Entities

– Attributes

• Normalization process– Discover new entities

– Revise attributes

Page 6: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 6

8

Lab Management System Module E-R Segment

Figure 8.1

Page 7: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 7

8

USER Entity

Table 8.3

Page 8: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 8

8

LOG Entity

Table 8.4

Page 9: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 9

8

LAB_ASSISTANT Entity

Table 8.5

Page 10: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 10

8

WORK_SCHEDULE Entity

Table 8.7

Page 11: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 11

8

HOURS_WORKED Entity

Table 8.8

Page 12: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 12

8

RESERVATION Entity

Table 8.9

Page 13: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 13

8

Revised RESERVATION Entity

Table 8.10

Page 14: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 14

8

RES_SLOT (Weak) Entity

Table 8.11

Page 15: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 15

8

Inventory Management Module E-R Segment

Figure 8.9

Page 16: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 16

8

INV_Type Entity

Table 8.13

Page 17: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 17

8

ITEM Entity

Table 8.14

Page 18: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 18

8

STORAGE Entity

Table 8.15

Page 19: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 19

8

LOCATION Entity

Table 8.16

Page 20: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 20

8

REPAIR Entity

Table 8.17

Page 21: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 21

8

VENDOR Entity

Table 8.18

Page 22: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 22

8

ORDER Entity

Table 8.19

Page 23: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 23

8

ORDER_ITEM Entity

Table 8.20

Page 24: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 24

8

WITHDRAW Entity Revision

Figure 8.19

Page 25: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 25

8

WITHDRAW Entity and Revision

Table 8.21

Table 8.22

Page 26: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 26

8

WD_ITEM (Weak) Entity

Table 8.23

Page 27: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 27

8

CHECK_OUT Design Revision

Figure 8.22

Page 28: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 28

8

CHECK_OUT Entity

Table 8.24

Page 29: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 29

8

CHECK_OUT_ITEM (Weak) Entity

Table 8.25

Page 30: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 30

8

E-R Model Verification

• Establishes– Design reflects end user views of database– Database transactions defined and modeled so design

supports related requirements– Design meets output requirements– Design supports required input screens and data entry

forms– Design flexible to support future enhancements

• Verification identifies– Central entity– Each module and its components– Each module transaction requirement

Page 31: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 31

8

Inventory Management Reporting Problems

• Generates three reports; one is inventory movement report– Inventory movements spread across different entities– Difficult to generate output and reduces performance

• Item “quantity on hand” updated with different inventory movements – Purchase, withdraw, check-out, check-in, or

inventory adjustment– Only withdrawals and check-outs represented in

model

Page 32: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 32

8

Inventory Management Reporting Problems Solution

• Create new entity as common movement entry point

• INV_TRANS created– Standardizes inventory module interfaces

– Facilitates control and generation of required outputs

Page 33: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 33

8

Inventory Transaction Process

Figure 8.25

Page 34: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 34

8

INV_TRANS Entity

Table 8.26

Page 35: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 35

8

TR_ITEM (Weak) Entity

Table 8.27

Page 36: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 36

8

Revised University Computer Lab ERD

Figure 8.28

Page 37: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 37

8

Logical Design

• Translates conceptual model to format for selected DBMS

• Sets stage for creating table structures, indexes, and views

• Table structures can be created with CREATE TABLE SQL commands

• Views created with CREATE VIEW SQL Commands

• Indexes created with CREATE INDEX SQL Commands

Page 38: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 38

8

Physical Design

• Defines specific storage or access methods

used by database• Includes estimate of storage space • Characteristics are function of DBMS and

operating systems

Page 39: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 39

8

Implementation• Database administrator (DBA)

– Controls database management function– Defines standards and procedures required to interact with

the database– Adopts appropriate plan

• Plan elements– Definitions of processes and standards– Chronology of required activities

• Database creation• Loading and Conversion

– Documentation standards– Responsibilities for continued development and maintenance

Page 40: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 40

8

Testing and Evaluation

• Determine how well database meets goals• Ongoing process• Considerations

– Performance measures

– Security

– Backup and recovery procedures

Page 41: Chapter 8

Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 41

8

Operation

• Provides support for daily operations • Maintains operational procedures• Database maintenance and evolution

– DBA performs technical and managerial duties to ensure proper operation of database to support organizational mission