Database Life Cycle

Download Report

Transcript Database Life Cycle

Database Management System
Chapter 3:
Database Life Cycle
Adisak Intana
Lecturer
Table Contents
System Development Life Cycle
Database Development Life Cycle
การออกแบบฐานขอมูลในระดับแนวคิด
การเลือกระบบจัดการฐานข อมูล
Data Flow Diagram - DFD
Database Life Cycle
2
Table Contents
System Development Life Cycle
Database Development Life Cycle
การออกแบบฐานขอมูลในระดับแนวคิด
การเลือกระบบจัดการฐานข อมูล
Data Flow Diagram - DFD
Database Life Cycle
3
System Development Life Cycle

Feasibility Study
- ศึกษาความเป็ นไปได้ ในการพัฒนาระบบงาน ประเมินต้ นทุน
วางแผนการทางาน

System Analysis
- เก็บรวบรวมข้ อมูล ความต้ องการผู้ใช้ กาหนดขอบเขตของงาน

System Design
- ออกแบบระบบ

Prototyping
- สร้ างระบบงานต้ นแบบนาไปทดลองใช้ ถ้ ามีข้อผิดพลาดกลับไปทา
Requirement Collection and Analysis
Database Life Cycle
4
System Development Life Cycle

Implementation
- ทดลองนาระบบทีเ่ สร็จแล้วไปใช้ งาน

Validation and Testing
- ประเมินผล และตรวจสอบความถูกต้ อง

Opereation
- นาไปใช้ งานจริง
Database Life Cycle
5
Table Contents
System Development Life Cycle
Database Development Life Cycle
การออกแบบฐานขอมูลในระดับแนวคิด
การเลือกระบบจัดการฐานข อมูล
Data Flow Diagram - DFD
Database Life Cycle
6
Database Life Cycle
7
Table Contents
System Development Life Cycle
Database Development Life Cycle
การออกแบบฐานขอมูลในระดับแนวคิด
การเลือกระบบจัดการฐานข อมูล
Data Flow Diagram - DFD
Database Life Cycle
8
การออกแบบฐานข้ อมูลในระดับแนวคิด
o
Entity
- พิจารณา Entity และ Attribute
o
Relationship
- พิจารณาความสั มพันธ์ ระหว่ าง Entity
o
Domain
- พิจารณา Domain ของแต่ ละ Attribute
o
Normalization
- จัดตารางให้ อยู่ในรูป 3NF
Database Life Cycle
9
Table Contents
System Development Life Cycle
Database Development Life Cycle
การออกแบบฐานขอมูลในระดับแนวคิด
การเลือกระบบจัดการฐานข อมูล
Data Flow Diagram - DFD
Database Life Cycle
10
การเลือกระบบจัดการฐานข้ อมูล
o
o
o
o
o
o
โครงสร้ างฐานข้ อมูล
เครื่ องมือสาหรับช่ วยในการพัฒนาระบบงาน
ต้ นทุน Hardware และ Software
การบารุงรักษา และบริการหลังการขาย
บุคลลากร และการจัดอบรม
เป็ นทีร่ ู้ จกั และนิยมใช้
Database Life Cycle
11
Table Contents
System Development Life Cycle
Database Development Life Cycle
การออกแบบฐานขอมูลในระดับแนวคิด
การเลือกระบบจัดการฐานข อมูล
Data Flow Diagram - DFD
Database Life Cycle
12
Data Flow Diagram - DFD

DFD symbols
–
–
–
–




External entities (sources and sinks)
Data Stores
Data Flows
Processesa
Types of diagrams
Step by step approach
Levels of diagram
Rules
Database Life Cycle
13
Some Rules for External Entities




External people, systems and
data stores
Reside outside the system, but
interact with system
Either a) receive info from
system, b) trigger system into
motion, or c) provide new
information to system
e.g. Customers, managers
Gane&Sarson
External
Entities
Yourdon
External
Entities
Database Life Cycle
14
Some Rules for Data Stores



Internal to the system
Somewhere that store data
Include in system if the
system processes transform
the data
– Store, Add, Delete,
Update
Gane&Sarson
Data Stores
Yourdon
Data Stores
Database Life Cycle
15
Some Rules for Data Stores

Data in motion, moving from
one place to another in the
system
– From external entity
(source) to system
– From system to external
entity (sink)
– From internal symbol to
internal symbol, but always
either start or end at a
process
Gane&Sarson
Data Flow
Yourdon
Data Flow
Database Life Cycle
16
Some Rules for Processes
Gane&Sarson
Always internal to system
Process
0. NO.
 Law of conservation of data:
#1: Data stays at rest unless
Processes
moved by a process.
#2: Processes cannot consume or create data

–
–
–
Must have at least 1 input data flow
Must have at least 1 output data flow
Should have sufficient inputs to create outputs
Yourdon
Process NO.
Processes
Database Life Cycle
17
Types of Diagrams

Context Diagram
–

A data flow diagram (DFD) of the scope of an organizational
system that shows the system boundaries, external entities
that interact with the system and the major information flows
between the entities and the system
Level-O Diagram
–
A data flow diagram (DFD) that represents a system’s major
processes, data flows and data stores at a high level of detail
Database Life Cycle
18
DFD Rules—Context Diagram



One process, numbered 0.
Main data flows depicated
No internal data stores are shown
Database Life Cycle
19
Context diagram of Hoosier Burger’s
Food ordering system
Database Life Cycle
20
Level-1 DFD of Hoosier Burger’s food
ordering system
Database Life Cycle
21
Levels Of Diagram
• Logical process models describe
processes without suggesting how they
are conducted
• Physical models include information
about how the processes are
implemented
Database Life Cycle
22
ส.น. 7
2.1
ส.น. 7 ที่ถูกต้อง
ตรวจสอบแบบฟอร์ม
การลงทะเบียน
ส.น. 7
บัตรลงทะเบียนวิชาเรี ยน
2.1
บัตรลงทะเบียนวิชาเรี ยนที่ถูกต้อง
ตรวจสอบบัตร
ลงทะเบียนวิชาเรี ยน
Database Life Cycle
23
Creating Data Flow Diagrams
General steps:
1. Create a preliminary Context Diagram
2. Identify Use Cases, i.e. the ways in which users
most commonly use the system
3. Create DFD fragments for each use case
4. Create a Level 1 diagram from fragments
5. Decompose to Level 2,3,…
6. Go to step 1 and revise as necessary
7. Validate DFDs with users.
Database Life Cycle
24