【正文】
An Introduction to Database System 中國人民大學信息學院 數(shù)據(jù)庫系統(tǒng)概論 An Introduction to Database System 第十四章 分布式數(shù)據(jù)庫 An Introduction to Database System 第十四章 分布式數(shù)據(jù)庫 概述 分布式數(shù)據(jù)庫系統(tǒng)的體系結構 查詢處理和優(yōu)化 分布事務管理 小結 An Introduction to Database System 概述 分布式數(shù)據(jù)庫系統(tǒng) 分布式數(shù)據(jù)庫系統(tǒng)的特點 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng) ?什么是分布式數(shù)據(jù)庫? ? 分布式數(shù)據(jù)庫由一組數(shù)據(jù)組成,這些數(shù)據(jù)物理上分布在計算機網(wǎng)絡的不同結點 (亦稱場地 )上,邏輯上是屬于同一個系統(tǒng)。 ?分布性 ?邏輯整體性 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng) (續(xù) ) 圖 一個分布式數(shù)據(jù)庫系統(tǒng) ?[例 1]如圖 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng) (續(xù) ) ? 區(qū)分一個系統(tǒng)是若干集中式數(shù)據(jù)庫的簡單連網(wǎng)還是分布式數(shù)據(jù)庫系統(tǒng)的技術要點在于: 系統(tǒng)是否支持全局應用 ? 一個典型的例子是銀行轉賬 ?從一個分行的賬戶 (設在 DB1數(shù)據(jù)庫 )中轉移若干金額到另一個分行的賬戶 (設在 DB3數(shù)據(jù)庫 )中去 –要同時更新兩個結點上的數(shù)據(jù)庫 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng) (續(xù) ) 圖 一個多處理機系統(tǒng) (SN并行結構 ) ?[例 2]如圖 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng) (續(xù) ) ? 多處理機系統(tǒng) (SN并行結構 ) ?沒有局部應用 ? 分布式數(shù)據(jù)庫不僅要求 數(shù)據(jù)的物理分布 ,而且要求這種 分布是面向處理、面向應用的 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng) (續(xù) ) ?分布式數(shù)據(jù)庫: ? 分布式數(shù)據(jù)庫是由一組數(shù)據(jù)組成的,這組數(shù)據(jù)分布在計算機網(wǎng)絡的不同計算機上,網(wǎng)絡中的每個結點具有獨立處理的能力 (稱為場地自治 ),可以執(zhí)行局部應用。同時,每個結點也能通過網(wǎng)絡通信子系統(tǒng)執(zhí)行全局應用。 ?場地自治性 ?自治場地之間的協(xié)作性 An Introduction to Database System 概述 分布式數(shù)據(jù)庫系統(tǒng) 分布式數(shù)據(jù)庫系統(tǒng)的特點 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng)的特點 (續(xù) ) ?一、數(shù)據(jù)獨立性 ? 邏輯獨立性 ? 物理獨立性 ? 數(shù)據(jù)分布獨立性 (分布透明性 ) ?用戶的應用程序書寫起來就如同數(shù)據(jù)沒有分布一樣 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng)的特點 (續(xù) ) ?二、集中與自治相結合的控制結構 ? 數(shù)據(jù)共享: ?(1) 局部共享 ?(2)全局共享 ? 控制機制: ?集中 ?自治 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng)的特點 (續(xù) ) ?三、適當增加數(shù)據(jù)冗余度 ? 提高系統(tǒng)的可靠性、可用性 ? 提高系統(tǒng)性能 ?四、全局的一致性、可串行性和可恢復性 ? 局部數(shù)據(jù)庫要保證 ACID ? 全局數(shù)據(jù)庫也要保證 ACID An Introduction to Database System 第十四章 分布式數(shù)據(jù)庫 概述 分布式數(shù)據(jù)庫系統(tǒng)的體系結構 查詢處理和優(yōu)化 分布事務管理 小結 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng)的體系結構 分布式數(shù)據(jù)庫系統(tǒng)的模式結構 數(shù)據(jù)分片 分布透明性 分布式數(shù)據(jù)庫管理系統(tǒng) An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng)的模式結構 圖 分布式數(shù)據(jù)庫系統(tǒng)的模式結構 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng)的模式結構 (續(xù) ) ?分布式數(shù)據(jù)庫系統(tǒng)增加的模式級別 ? (1) 全局外模式 (Global External Schema) ? (2) 全局概念模式 (Global Conceptual Schema) ? (3) 分片模式 (Fragmentation Schema) ?片段 (Fragment) ?定義片段以及全局關系到片段的映象 ? (4) 分布模式 (Allocation Schema) ?定義片段的存放地點 An Introduction to Database System 分布式數(shù)據(jù)庫系統(tǒng)的體系結構 分布式數(shù)據(jù)庫系統(tǒng)的模式結構 數(shù)據(jù)分片 分布透明性 分布式數(shù)據(jù)庫管理系統(tǒng) An Introduction to Database System 數(shù)據(jù)分片 ?數(shù)據(jù)分片