Top Banner
Week 4 Lecture Part 3 of 3 Database Design Samuel Conn , Faculty Suggestions for using the Lectu re Slides
32

Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

Dec 29, 2015

Download

Documents

Valerie Randall
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 2: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

2

In this lecture, you will learn:

That successful database design must reflect the information system of which the database is a part

That successful information systems are subject to frequent evaluation and revision within a framework known as the Systems Development Life Cycle (SDLC)

That, within the information system, the most successful databases are subject to frequent evaluation and revision within a framework known as the Database Life Cycle (DBLC)

How to conduct evaluation and revision within the SDLC and DBLC frameworks

What database design strategies exist: top-down vs. bottom-up design and centralized vs. decentralized design

Page 3: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

3

Data Raw facts stored in databases Need additional processing to

become useful Information

Required by decision maker Data processed and presented in a

meaningful form Transformation

Changing Data into Information

Page 4: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

4

Database Carefully designed and constructed

repository of facts Part of an information system

Information System Provides data collection, storage, and

retrieval Facilitates data transformation Components include:

• People • Hardware • Software

–Database(s) –Application programs –Procedures

The Information System

Page 5: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

5

System Analysis Establishes need and extent of an information

system Systems development

Process of creating information system

Database development Process of database design and implementation Creation of database models Implementation

• Creating storage structure • Loading data into database • Providing for data management

The Information System (Con’t.)

Page 6: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

6 Figure 6.2

Systems Development Life Cycle

Page 7: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

7 Figure 6.3

Database Lifecycle (DBLC)

Page 8: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

8

Phase 1: Database Initial Study

Purposes Analyze company situation

• Operating environment • Organizational structure

Define problems and constraints Define objectives Define scope and boundaries

Page 9: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

9

Initial Study Activities

Figure 6.4

Page 10: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

10

Phase 2: Database Design

Most Critical DBLC phase Makes sure final product meets

requirements Focus on data requirements Subphases

Create conceptual design DBMS software selection Create logical design Create physical design

Page 11: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

11

Two Views of Data

Figure 6.5

Page 12: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

12

I. Conceptual Design

Data modeling creates abstract data structure to represent real-world items

High level of abstraction Four steps

Data analysis and requirements Entity relationship modeling and normalization Data model verification Distributed database design

Page 13: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

13

Data analysis and Requirements

Focus on: Information needs Information users Information sources Information constitution

Data sources Developing and gathering end-user data

views Direct observation of current system Interfacing with systems design group

Business rules

Page 14: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

14

Entity Relationship Modeling and Normalization

Table 6.2

Page 15: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

15

E-R Modeling is Iterative

Figure 6.8

Page 16: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

16

Concept Design: Tools and Sources

Figure 6.9

Page 17: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

17

Data Model Verification

E-R model is verified against proposed system processes End user views and required transactions Access paths, security, concurrency control Business-imposed data requirements and

constraints Reveals additional entity and attribute

details Define major components as modules

Cohesivity Coupling

Page 18: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

18

E-R Model Verification Process

Table 6.4

Page 19: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

19

Iterative Process of Verification

Figure 6.10

Page 20: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

20

Distributed Database Design

Design portions in different physical locations Development of data distribution and allocation strategies

Page 21: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

21

II. DBMS Software Selection

DBMS software selection is critical Advantages and disadvantages need

study Factors affecting purchasing decision

Cost DBMS features and tools Underlying model Portability DBMS hardware requirements

Page 22: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

22

III. Logical Design

Translates conceptual design into internal model

Maps objects in model to specific DBMS constructs

Design components Tables Indexes Views Transactions Access authorities Others

Page 23: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

23

IV. Physical Design

Selection of data storage and access characteristics Very technical More important in older hierarchical and

network models Becomes more complex for distributed

systems Designers favor software that hides

physical details

Page 24: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

24

Physical Organization

Figure 6.12

Page 25: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

25

Phase 3: Implementation and Loading

Creation of special storage-related constructs

to house end-user tables Data loaded into tables Other issues

Performance Security Backup and recovery Integrity Company standards Concurrency controls

Page 26: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

26

Phase 4: Testing and Evaluation

Database is tested and fine-tuned for performance, integrity, concurrent access, and security constraints

Done in parallel with application programming

Actions taken if tests fail Fine-tuning based on reference manuals Modification of physical design Modification of logical design Upgrade or change DBMS software or

hardware

Page 27: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

27

Phase 5: Operation

Database considered operational Starts process of system

evaluation Unforeseen problems may surface Demand for change is constant

Page 28: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

28

Phase 6: Maintenance and Evaluation

Preventative maintenance Corrective maintenance Adaptive maintenance Assignment of access permissions Generation of database access

statistics to monitor performance Periodic security audits based on

system-generated statistics Periodic system usage-summaries

Page 29: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

29

DB Design Strategy Notes

Top-down 1) Identify data sets 2) Define data elements

Bottom-up 1) Identify data elements 2) Group them into data sets

Page 30: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

30

Top-Down vs. Bottom-Up

Figure 6.14

Page 31: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

31

Centralized vs. Decentralized Design

Centralized design Typical of simple databases Conducted by single person or small team

Decentralized design Larger numbers of entities and complex

relations Spread across multiple sites Developed by teams

Page 32: Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.

32

Decentralized Design

Figure 6.16