Chapter 1 Introduction 1 Textbook n Database System
Chapter 1 Introduction 資料庫系統 1
Textbook n 書名: 資料庫系統-理論與應用 原文書名: Database System Concepts, 5 e 原文作者: Abraham Silberschatz, Henry F. Kotth, S. Sudarshan 代理商: 高立圖書 ISDN 986 -157 -152 -3 n 線上討論區 n n n q http: //www. ylw. idv. tw/dbs 資料庫系統 2
What is DBMS n n n DBMS is database-management system 用來存取與操作大量資料的集合(database) 主要元件包含 q q q Data files-儲存data Dictionary-儲存資料結構,包含schema、 constraints… Indices-可快速存取特定的資料 資料庫系統 4
File System n Disk System q q q n n FAT 32(File Allocation Table) NTFS(New Technology File System) http: //zh. wikipedia. org/wiki/FAT File Access methods q q q Sequential(線性) Hash(雜湊) Index(索引) 資料庫系統 6
Hash Function Sequential Hash 資料庫系統 Index 7
Data model n n 用來描述資料的型態、資料之間的關聯性、資 料的限制 常見的資料模型有 q q E-R data model (chatper 2) Relational data model (chatper 3) Object-oriented data model Object-relational data model 資料庫系統 8
Data-Manipulation Language (DML) n n 最具代表性的是SQL (Structure Query Language) (chapter 4) 主要操作指令分為四大類 q q Query Insert Update Delete 資料庫系統 10
DB Management n 使用者權限分級 q n Administrator / User Data warehouse q q 暸解資料的規則 分析資料變化的趨勢 預測未來的發展 可使用OLAP (online analytical processing)或Data mining技術 資料庫系統 12
An Example of Transaction Operation 1 Result 2 Operation 2 Account A $200 $500 $300 Account B Account A Account B $500 $700 資料庫系統 14
Transaction的處理方式 n Rollback / Failure recovery q q 使用Log紀錄過程 以Log還原異動過程 資料庫系統 15
Client-Server n IP q q n Port q q n Unique 32 bits x. x (0<=x<=255) 127. 0. 0. 1(localhost) => 代表自己 My. SQL => 3306 http: //zh. wikipedia. org/w/index. php? title=TCP/IP%E 7%AB %AF%E 5%8 F%A 3%E 5%88%97%E 8%A 1%A 8&variant=zh -tw Client-Server 架構 q q Client(客戶端) Server(伺服器端) 資料庫系統 16
與資料庫連線的系統架構 Application Network Application Server DBMS 2 -tiers 3 -tiers 資料庫系統 17
實作-DB System Installation(1) n Microsoft SQL Server q q q Support OS -Windows Server Management Interface-Builtin 版本功能比較- http: //www. microsoft. com/sql/prodinfo/features/co mpare-features. mspx 下載網址- http: //www. microsoft. com/sql/editions/express/def ault. mspx 需安裝. Net Framework 2. 0與MS XML Parser 資料庫系統 19
SQL Server Management Studio Express 資料庫系統 21
實作-DB System Installation(2) n Mysql q q n Open source solution-GPL Support OS -Windows、Linux、Sloaris、Mac Management Interface-command line、PHP my. Admin(Web)、My. Sql Administrator(Win) 下載網址- http: //www. mysql. com/ 其他著名的DB Server q q Oracle IBM DB 2 資料庫系統 22
My. SQL安裝程式介紹 n n mysql-5. 0. 27 -win 32. zip => 系統主程式 mysql-gui-tools- => 視窗管理介面 mysql-connector-java => JDBC for mysql My. ODBC-3. 51. 11 -1 -win. exe => ODBC for mysql 資料庫系統 23
Mysql Administrator 安裝Mysql 資料庫系統 24
Mysql Query Browser 資料庫系統 25
- Slides: 27