Presentation is loading. Please wait.

Presentation is loading. Please wait.

IiWAS2002, Bandung, Indonesia Teaching and Learning Databases Dr. Stéphane Bressan National University of Singapore.

Similar presentations


Presentation on theme: "IiWAS2002, Bandung, Indonesia Teaching and Learning Databases Dr. Stéphane Bressan National University of Singapore."— Presentation transcript:

1 iiWAS2002, Bandung, Indonesia Teaching and Learning Databases Dr. Stéphane Bressan National University of Singapore

2 iiWAS2002, Bandung, Indonesia Why Databases?

3 Persistence n How can data survive the process that created them, and be reused by other processes?

4 Persistence n Main Memory is volatile n Secondary or tertiary memory is persistent

5 Cache Main memory Flash memory Magnetic Disk Optical Disk Magnetic Tape Primary Secondary Tertiary Volatile Persistent Persistence

6 Large Amounts of Data n How to manage large amounts of data? n Issues: –Cost –Addressing –Speed

7 Cache Main memory Flash memory Magnetic Disk Optical Disk Magnetic Tape SPEED CAPACITY per DOLLAR 32 bits/64bits Large Amounts of Data

8 n When data is to be stored on secondary or tertiary storage, then we need to devise efficient algorithms taking into account the dominant cost of Input/Output operations (I/Os) n Such algorithms are called external algorithms (e.g. sort)

9 Homogeneous Data (The Good News!) n Collections of similar objects n We can predict access patterns n We can devise indexing and access methods for efficient storage, update, and retrieval

10 (Collections of) Structured Data n We can invent data models and design applications around the data by defining the application schema record(last name: Smith, first name: Michael, ss#: 67534132) difficult for multimedia data (text, video, sound, etc)

11 (Collections of) Structured Data n We can invent specialised languages for data definition and manipulation (COBOL, SQL) CREATE TABLE employee (first_name char(32), last_name CHAR(32)) SELECT last_name FROM employee WHERE first_name = ‘Michael’

12 Concurrent and Distributed Access n How can data be shared by users and processes that are possibly distributed over a network?

13 A Remark on Consistent States and Transactions n A Consistent State of the database is a state which complies with the business rules as usually defined by Integrity constraints –Example: “students who have not passed cs2102 cannot take cs3223”

14 A Remark on Consistent States and Transactions n A Transaction is a logical unit of work carried out by a user or an application for which we wish to ensure isolation and consistency

15 Concurrent Access n Concurrency Control: ACID n Isolation: Transactions can be understood independently from each other n Consistency: If individual transactions would leave the application in a consistent state, a concurrent execution should do the same

16 Sensitive Data: Integrity n How to guarantee and maintain the integrity of the data in spite of possible application, system, or media failures?

17 Sensitive Data: Integrity n The DBMS manages the recovery after failure guaranteeing durability and atomicity of the transactions

18 Sensitive Data: Integrity n Recovery: ACID –Atomicity: all actions in a transaction happen or none happen –Durability: effects of successful transactions last

19 Sensitive Data: Security n How to control the Access to the data?

20 Definitions n DCL: Database Control Language. It include statements to administer access privileges and transactions properties

21 In Summary n How to manage large amounts of persistent, homogeneous, and structured data that are shared among distributed users and processes and whose integrity must be maintained and whose security must be controlled?

22 Database Application n A database application is a collection of data and the programs that allow the manipulation of these data n A database application is usually implemented using a DataBase Management System (DBMS)

23 Database Application: Examples n ATM banking n University data managemen(Oracle) n Airline reservations (Amadeus, Sabre) n My address book (Microsoft Access) n The e-shop around the corner (MSQL)

24 DataBase Management System n A DBMS is a collection of software that facilitates the implementation and management of database applications

25 DataBase Management System n Examples of Relational DBMS: –Access, Paradox, dBase, FoxPro, Clipper –SQL Server, MySQL –DB2, Oracle, Sybase, Informix

26 File and Access Methods Manager Buffer Manager Concurrency Control Manager Recovery Manager Query Evaluation Engine Query Optimizer I/O Manager Data Definition Language Statement Data Manipulation Language Statements DBMS (simplified) Architecture Storage manager Data Control Language Statement

27 iiWAS2002, Bandung, Indonesia Introduction to Database Systems McGrawHill Asian Customized Edition ISBN 007-122664-8


Download ppt "IiWAS2002, Bandung, Indonesia Teaching and Learning Databases Dr. Stéphane Bressan National University of Singapore."

Similar presentations


Ads by Google