CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS
Mode dern Datab abase ase Manageme ment
12 12th
th Editio
tion Global
- bal Editi
tion
- n
Jeff f Hoffer, Ramesh sh Venkata tarama raman, , Heikk ikki Topi
授課老師:楊立偉教授,台灣大學工管系
THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS Mode dern Datab - - PowerPoint PPT Presentation
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS Mode dern Datab abase ase Manageme ment th Editio 12 12 th tion Global obal Editi tion on Jeff f Hoffer, Ramesh sh Venkata tarama raman, , Heikk ikki Topi
12 12th
th Editio
tion Global
tion
授課老師:楊立偉教授,台灣大學工管系
Chapter 1 1-2
Database: organized collection of logically related data Data: stored representations of meaningful objects and
Structured: numbers, text, dates 結構性 Unstructured: images, video, documents 非結構性
Information: data processed to increase knowledge in
Metadata: data that describes the properties and
Chapter 1 1-3
Chapter 1 1-4
Chapter 1 1-5
Chapter 1 1-6
Chapter 1 1-7
Progr
All programs maintain metadata for each file they use
Dupl
Different systems/programs have separate copies of the same data
Lim
No centralized control of data
Len
Programmers must design their own file formats 欠缺統一格式
Excessiv
80% of information systems budget
Chapter 1 1-8
Chapter 1 1-9
Chapter 1 1-10
Chapter 1 1-11
Chapter 1 1-12
DBMS manages data resources like an Operating System manages hardware resources
Order Filing System Invoicing System Payroll System DBMS Central database Contains employee,
pricing, and customer data
Chapter 1 1-13
Program-data independence 程式與資料獨立分開 Planned data redundancy 避免資料不必要的重複 Improved data consistency 改善資料一致性 Improved data sharing 讓資料可共用 Increased application development productivity
Enforcement of standards 標準的資料格式 Improved data quality 改善資料品質 Improved data accessibility and responsiveness
Reduced program maintenance 減少程式之維護
Chapter 1 1-14
Chapter 1 1-15
Data models 資料模型
Graphical diagram capturing nature and relationship of data Enterprise Data Model–high-level entities and relationships
Project Data Model–more detailed view, matching data
Entities
Noun form describing a person, place, object, event, or
Composed of attributes
Relationships
Between entities Usually one-to-many (1:M) or many-to-many (M:N), but could
Relational Databases 關聯式資料庫
Database technology involving tables (relations) representing
Chapter 1 1-16
Chapter 1 1-17
Segment of an enterprise data model Segment of a project-level data model
Chapter 1 1-18
人員 角色 應用 程式 資料
Chapter 1 1-19
Data
Reposit
Database
Database
Applicati
User
Da
Syst
End Users–people who use the applications and databases
Chapter 1 1-20
First step in the database development process
Specifies scope and general content Overall picture of organizational data at high level of
Entity-relationship diagram 建立ER圖並慢慢補足細節
Descriptions of entity types Relationships between entities Business rules
Chapter 1 1-21
Chapter 1 1-22
SDLC
System Development Life Cycle 系統開發生命週期法 Detailed, well-planned development process Time-consuming, but comprehensive Long development cycle
Prototyping 雛型法
Rapid application development (RAD) 一種快速應用開發方法 Cursory attempt at conceptual data modeling 打草稿再修正 Define database during development of initial prototype Repeat implementation and maintenance activities with new
Chapter 1 1-23
Planning Analysis Physical Design Implementation Maintenance Logical Design
Chapter 1 1-24
Purpose Deliverable Database activity 1 Planning preliminary understanding request for study (request for proposal) enterprise modeling and early conceptual data modeling 2 Analysis thorough requirements analysis and structuring functional system specifications thorough and integrated conceptual data modeling 3 Logical Design information requirements elicitation and structure detailed design specifications logical database design (transactions, forms, displays, views, data integrity and security) 4 Physical Design develop technology and
specifications program/data structures, technology purchases,
physical database design (define database to DBMS, physical data organization, database processing programs) 5 Implementation programming, testing, training, installation, documenting
documentation, training materials database implementation, including coded programs, documentation, installation and conversion 6 Maintenance monitor, repair, enhance periodic audits database maintenance, performance analysis and tuning, error corrections
Chapter 1 1-25
Chapter 1 1-26
eXtreme programming 極限編程 Scrum “爭球” - 將長期目標切分為多次的短跑 DSDM Consortium (Dynamic Systems Development Method) Feature-driven development
認為軟體需求的不斷變化是很自然的現象,是軟體專案開發中不可 避免的、也是應該欣然接受的現象,重點在適應需求而非預測需求
Chapter 1 1-27
Chapter 1 1-28
Conceptual Schema
E-R models–covered in Chapters 2 and 3
Internal Schema
Logical structures–covered in Chapter 4 Physical structures–covered in Chapter 5
External Schema
User Views Subsets of Conceptual Schema Can be determined from business-function/data
DBA determines schema for different users
Chapter 1 1-29
Chapter 1 1-30
Project – a planned undertaking of related
Initiated and planned in planning stage of SDLC Executed during analysis, design, and
Closed at the end of implementation
Chapter 1 1-31
Business analysts 商業分析師 (商業規則) Systems analysts 系統分析師 (需求到規格) Database analysts and data modelers 資料庫分析師及資料建模師 Users 使用者 Programmers 程式人員 Database architects 資料庫架構師 (資料庫部署) Data administrators (DBA) 資料庫管理師 (資料庫內部配置) Project managers 專案經理 Other technical experts, and Data Scientist 資料科學家 (實驗/推論)
Chapter 1 1-32
Chapter 1 1-33
Chapter 1 1-34
對應到程式設計中常用的 graph資料結構 對應到程式設計中常用的 tree資料結構
Chapter 1 1-35
物件導向設計 (資料及動作一同封裝, 減少複雜度及出錯的可能,並提供繼承) 易懂且表達能力強 (也可儲存tree及graph)
Chapter 1 1-36
基於Relational data model之上 常用於資料倉儲之設計 基於Relational data model之上 常用於線上分析(OLAP)之設計
Chapter 1 1-37
Life 生物 Animalia 動物界 Invertebrate 無脊椎動物 Chordata 脊椎動物 Plantae 植物界 Micro-organisms 微生物界 名稱 上層 Life生物 (無) Animalia動物界 Life生物 Plantae植物界 Life生物 Micro-organism微生物界 Life生物 Invertebrate無脊椎動物 Animalia動物界 Chordata脊椎動物 Animalia動物界
Chapter 1 1-38
From
To To John Mary John Michael Bob Mary Mary Michael
John Mary Bob Michael
Name me John Bob Mary Michael
Chapter 1 1-39
Area Product Month Sales Southeast Desk Jan 550 Southeast Table Jan 400 Southeast Chair Jan 250 Southeast Desk Feb 600 Southeast Table Feb 320 Southeast Chair Feb 180 Mid-Atlantic Desk Jan 120 Mid-Atlantic Table Jan 200 Mid-Atlantic Chair Jan 780 Mid-Atlantic Desk Feb 850 Mid-Atlantic Table Feb 340 Mid-Atlantic Chair Feb 400 New England Desk Jan 620 New England Table Jan 350 New England Chair Jan 150 New England Desk Feb 300 New England Table Feb 100 New England Chair Feb 800 Area Product Jan Feb Southeast Desk 550 600 Southeast Table 400 320 Southeast Chair 250 180 Mid-Atlantic Desk 120 850 Mid-Atlantic Table 200 340 Mid-Atlantic Chair 780 400 New England Desk 620 300 New England Table 350 100 New England Chair 150 800
OR
Chapter 1 1-40
Enterprise resource planning (ERP) systems Data warehousing implementations
Chapter 1 1-41
Chapter 1 1-42
Integrate all enterprise functions
相當於產進銷存+財會+人資總務 支援前台各種線上/行動及應用
Integrated decision support system derived from
Chapter 1 1-43
FIGURE 1-13 Computer System for Pine Valley Furniture Company
Chapter 1 1-44
FIGURE 1-15 Project data model for Home Office product line marketing support system