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

Slides:



Advertisements
Similar presentations
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Advertisements

Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chapter 1 Instructor: Mirsad Hadzikadic.
Database: A collection of related data [Elmasri]. A database represents some aspect of real world called “miniworld” [Elmasri] or “enterprise” [Ramakrishnan].
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
--What is a Database--1 What is a database What is a Database.
Rundensteiner-CS34311 CS3431 – Database Systems I Introduction Instructor: Elke A. Rundensteiner
1 Database Systems (Part I) Introduction to Databases I Overview  Objectives of this lecture.  History and Evolution of Databases.  Basic Terms in Database.
Introduction to Databases
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Lecture 31 Introduction to Databases I Overview  Objectives of this lecture  History and Evolution of Databases  Basic Terms in Database and definitions.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
Database Management COP4540, SCS, FIU An Introduction to database system.
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
Introduction to Database
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Lecture 11: DMBS Internals
Database Lecture # 1 By Ubaid Ullah.
CSC2012 Database Technology & CSC2513 Database Systems.
© D. Wong 2002 © D. Wong CS610 / CS710 Database Systems I Daisy Wong.
ICOM 5016 – Introduction to Database Systems
Overview of a Database Management System
Introduction. 
The Worlds of Database Systems Chapter 1. Database Management Systems (DBMS) DBMS: Powerful tool for creating and managing large amounts of data efficiently.
Module Title? DBMS Introduction to Database Management System.
Database Management Systems 1 Introduction to Database Systems Instructor: Xintao Wu Ramakrishnan & Gehrke.
Course Introduction Introduction to Databases Instructor: Joe Bockhorst University of Wisconsin - Milwaukee.
Database Architecture Introduction to Databases. The Nature of Data Un-structured Semi-structured Structured.
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
 DATABASE DATABASE  DATABASE ENVIRONMENT DATABASE ENVIRONMENT  WHY STUDY DATABASE WHY STUDY DATABASE  DBMS & ITS FUNCTIONS DBMS & ITS FUNCTIONS 
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Xintao Wu.
Database Management System Module 5 DeSiaMorewww.desiamore.com/ifm1.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Weichao Wang.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Intro – Part 2 Introduction to Database Management: Ch 1 & 2.
Introduction to Database Systems1. 2 Basic Definitions Mini-world Some part of the real world about which data is stored in a database. Data Known facts.
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: Monday, Wednesday 2:30 pm – 3:30.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
Chapter-1- Basic Concepts Reference: Prof. Mona Mursi Lecture notes
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
DMBS Architecture May 15 th, Generic Architecture Query compiler/optimizer Execution engine Index/record mgr. Buffer manager Storage manager storage.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
Computer Science Centre University of Indonesia Chapter 1 Database & Database Users.
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
1 CENG 351 CENG 351 Introduction to Data Management and File Structures Department of Computer Engineering METU.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
CHAPTER 1: INTRODUCTION Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Storage Management Database.
What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently and safely. Provide.
SQL Basics Review Reviewing what we’ve learned so far…….
CPSC-310 Database Systems
Introduction To DBMS.
An Introduction to database system
Unit 1: INTRODUCTION Database system, Characteristics Database Users
CS422 Principles of Database Systems Course Overview
Database Management System
Introduction to Database Systems
Database and Database Management System (DBMS)
Terms: Data: Database: Database Management System: INTRODUCTION
Presentation transcript:

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

iiWAS2002, Bandung, Indonesia Why Databases?

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

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

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

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

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

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)

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

(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#: ) difficult for multimedia data (text, video, sound, etc)

(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’

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

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”

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

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

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

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

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

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

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

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?

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)

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)

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

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

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

iiWAS2002, Bandung, Indonesia Introduction to Database Systems McGrawHill Asian Customized Edition ISBN