Presentation is loading. Please wait.

Presentation is loading. Please wait.

中央大學。范錚強 1 從 ER 到 Logical Schema ── 兼談 Schema Integration 國立中央大學 資訊管理系 范錚強 2005.

Similar presentations


Presentation on theme: "中央大學。范錚強 1 從 ER 到 Logical Schema ── 兼談 Schema Integration 國立中央大學 資訊管理系 范錚強 2005."— Presentation transcript:

1 中央大學。范錚強 1 從 ER 到 Logical Schema ── 兼談 Schema Integration 國立中央大學 資訊管理系 范錚強 2005

2 中央大學。范錚強 2 準備 Logical Schema 資料模型和流程模型的整合 充實、調整資料模型 設計關連式資料庫 Logical Schema

3 中央大學。范錚強 3 資料模型和流程模型的整合 修訂模式 修改 DFD 中的 data store ,消除所有「迷糊帳」 所有 data store 相對到相關的實體或關係 建立資料典 DD:Data Dictionary 平衡 Balancing 原則 Every data flow and data store must be defined in the DD, Vice Versa Every data store must correspond to an entity or relationship type Object names in the DD, ERD and DFD must match DD entries must apply to both the DFD and ERD model

4 中央大學。范錚強 4 充實、調整資料模型 Attributing and Refining Attributing all entity and relationship types Each attribute should associate with the corresponding entity or relationship type Identify an identifying attributes for each entity type and and any compound entity If there are many candidates, pick one that is the most appropriate.

5 中央大學。范錚強 5 充實、調整資料模型 (2) Eliminate all multi-valued attributes with appropriate relationships Attribute the new E/R types Company Name Company Name

6 中央大學。范錚強 6 資料模型、邏輯資料庫設計、 實體資料庫設計 Process E-R data model --> Logical database design --> physical database design ANSI SPARC three tier DB architecture Enterprise views User views Physical views Physical Enterprise user

7 中央大學。范錚強 7 設計關連式資料庫 Logical Schema For each entity type: Each Entity type becomes a Table Every attribute becomes a column The identifying attribute for the entity type becomes the key for the Table For each m-n relationship type Each m-n relationship type becomes a Table Every attribute becomes a column The identifying attribute of the associated entity types becomes the compound keys

8 中央大學。范錚強 8 關連式資料庫 Logical Schema (2) For each 1-n relationship type Same as m-n relationship Only the n-side identifier becomes the key, the 1-side identifier becomes a non-key column For each 1-1 relationship type Same as 1-n relationship Pick the identifier from the appropriate associated entity type as the key, the other a non-key column

9 中央大學。范錚強 9 關連式資料庫 Logical Schema (3) For each compound entity type For the compound entity types that do not have its own identifier, same as relationship Otherwise, use the identifier as the key, and take the identifying attribute of the associated entity types as non-key columns Annotate the foreign key “references” in the DD of the DBMS

10 中央大學。范錚強 10 ABA’D AB AD ABAD ABD

11 中央大學。范錚強 11 其他限制 在 Compound Entity 中﹐若有任何相關的 entity type 的 identifier 「必須」相同﹐將相 關的 key 去除 若有其他的限制﹐加入到 DBMS 中﹐資料的 integrity 或 referential constraints 中

12 中央大學。范錚強 12 深入了解 data behavior Examine the properties and behavior of tables and data Behavior? Access requirements for tables and attributes Access frequency Natural clusters in data processing Optimize systems performance based on data behavior

13 中央大學。范錚強 13 實體資料庫設計 單一資料庫 可考慮將單一欄位的 Table 取消,但注意 Referential constraints Domain specification 合併或分解 Tables Combine tables with the same key or same partial keys as appropriate (may result in lower normal forms) Split a Table into multiple tables, to maximize operational efficiency

14 中央大學。范錚強 14 分散式資料庫 決定分散的政策 Full replication (複製) Partitioning (分割)

15 中央大學。范錚強 15 根據表單進行分析 系統分析的其中一個方法,是根據各種 企業中運作時,產生和使用的表單 逐個分析成為一個 sub-schema 將各個 sub-schema 彙整成為一個

16 中央大學。范錚強 16 Schema Integration 1 將各個 Entity Type 加以檢視,消除各個 sub-schema 中 同一個意義,但使用不同名詞 不同意義,但使用相同名詞 相同的 Entity Type 為兩個 sub-schema 之 間的介接

17 中央大學。范錚強 17 Schema Integration 2 檢視相同 Entity Type 之間的 Relationship Type 同一個意義,但使用不同名詞 不同意義,但使用相同名詞 將連接性不同的 R, 彙整成為一個,或採用不同名 稱 檢視 Attribute, 有必要時將之改為 E/R 組合 有些 sub-schema 中的 attribute ,為其他 sub- schema 中的 Entity/Relationship Types 重複將新的 Entity Types 和其他 sub-schema 加 以整合

18 中央大學。范錚強 18 其他 sub-schema 應用 在 B2B E-business 中,牽涉到電腦之間的資料 交換 Data Interchange 過去,主要是 UN/EDIFACT 的 proprietary 系統之間的 交換 Internet 環境之下,重點在 XML-based 的資料交換, e.g. ebXML, Rosettanet 資料交換重點: Process : 電腦間資料交換的程序標準 Message :電腦之間資料的規格,為一種 sub-schema


Download ppt "中央大學。范錚強 1 從 ER 到 Logical Schema ── 兼談 Schema Integration 國立中央大學 資訊管理系 范錚強 2005."

Similar presentations


Ads by Google