Presentation is loading. Please wait.

Presentation is loading. Please wait.

第一章 資料庫系統基本觀念.

Similar presentations


Presentation on theme: "第一章 資料庫系統基本觀念."— Presentation transcript:

1 第一章 資料庫系統基本觀念

2 章節概覽 何謂資料庫系統 資料庫種類 關連式資料的架構與特性 資料庫系統的網路架構 資料庫管理系統的議題
結構化查詢語言 Structure Query Language, SQL 資料庫系統的角色關係

3 1.1何謂資料庫系統 資料庫系統( Database System) 二項要素:
資料庫(Database) A collection of data stored in a standardized format, designed to be shared by multiple users. 資料庫管理系統 (Database Management System) Software that defines a database, stores the data, supports a query language, produces reports, and creates data entry screens.

4 Database 人事資料庫 產品資料庫 銷售資料庫 DBMS

5 DBMS: Microsoft SQL Server Oracle Informix IBM DB2 Microsoft Access
Many limited PC (dBASE, Paradox, …)

6 1.2 資料庫種類 資料庫系統分別為: 階層式資料庫(Hierarchical Database)
網路式資料庫(Network Database) 物件導向資料庫(Object-Oriented Database) 關連式資料庫(Relational Database)

7 階層式資料庫(Hierarchical Database)
最早發展的資料庫架構 樹狀結構 缺點: 1.資料橫向關係難以建立 2.資料重覆存取

8 網路式資料庫(Network Database)
網路式資料庫,主要將變動項目抽出

9 物件導向資料庫(Object-Oriented Database)
物件導向資料庫: 是一種新的資料庫架構 利用物件導向方法設計資料庫 每個東西都是物件 具有繼承、封裝以及多型的觀念 資料庫物件的再利用性提高 物件導向式資料庫 = 物件導向 + 資料庫的能力

10 關連式資料庫(Relational Database)
資料儲存在資料表中,每個資料表彼此都有關連:

11 1.3 關連式資料庫的架構與特性 依照資料庫的特性,將資料存到資料表(Table)
資料表是由欄位(Column or Field)與列所組合 列(Row)又稱為記錄(Record) 不要輸入重覆的資料列 欄位沒有給予值時,可以填入NULL值

12 NULL值的定義 NULL 是代表0 ? NULL 是代表空白 ? NULL 是 代表無意義的資料或 表示沒有輸入的資料
查詢資料時,不能用=NULL將資料取出,要用 IS NULL

13 1.4 資料庫系統的網路架構 單機環境 大型主機架構 主從式架構 分散式架構

14 單機環境 一部電腦負責所有資料庫 資料筆數不多 工作性質單純 以檔案型的資料庫為主

15 大型主機架構 利用一台大型主機負責儲存與處理龐大的資料 大型主機本身運算能力,處理資料能力強 大型主機本身的造價相當昂貴 大型主機系統封閉

16 主從式架構 將兩台電腦串連起來之後,只要由前端電腦連接到 資料庫伺服器端,就可以存取資料庫的內容

17 分散式架構 分散式架構是延續主從式架構的精神所產生出來的 架構

18 1.5 資料庫管理系統的議題 資料庫與資料表定義 資料查詢與處理 資料的安全性 資料的備份 與異質資料庫的整合

19 1.6 何謂結構化查詢語言 SQL SQL是 Structure Query Language的縮寫
對關連式資料庫裡的資料加以定義、修改以及控 制的語言標準 SQL Server的 SQL語法: [範例]: CREATE TABLE SalaryLevel ( Lowbound decimal(7,2) NOT NULL, Highbound decimal(7,2) NOT NULL, Salelevel varchar(50) NOT NULL )

20 1.7 資料庫系統的角色關係 資料庫設計者 Database Designer 系統分析師 System Analyzer
資料庫管理者 Database Administrator , DBA 程式設計師 System Developer , Programmer 一般使用者 End User

21 建立系統:可行性評估 Costs Benefits Up-front/one-time Cost Savings
Software ($ millions !) Hardware Communications Data conversion Studies and Design Training On-going costs Personnel Software upgrades Supplies Support Software & Hardware maintenance Benefits Cost Savings Software maintenance Fewer errors Less data maintenance Less user training Increased Value Better access to data Better decisions Better communication More timely reports Faster reaction to change New products & services Strategic Advantages Lock out competitors

22 學習成果 資料庫系統包括資料庫及資料庫管理系統 資料庫有階層式、網路式、關連式以及物件導向式 的資料庫
資料庫的網路架構主要有大型主機架構、單機架構 、主從式架構與分散式架構 資料庫議題依照工作特性可以分為資料庫設計者、 資料庫管理者、程式設計師與一般使用者

23 THANKS


Download ppt "第一章 資料庫系統基本觀念."

Similar presentations


Ads by Google