Introduction Example databases Overview of concepts Why use database systems.

Slides:



Advertisements
Similar presentations
1 Introduction to Database Systems CSE444 Instructor: Scott Vandenberg University of Washington Winter 2000.
Advertisements

Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chapter 1 Instructor: Mirsad Hadzikadic.
Chapter 1 Instructor: Murali Mani Database Management Systems.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 Introduction to Database Systems Chapter 1 Instructor: Wang-Chien Lee
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.
Introduction to Database Systems Ch. 1, Ch. 2 Mr. John Ortiz Dept. of Computer Science University of Texas at San Antonio.
1 Database Systems (Part I) Introduction to Databases I Overview  Objectives of this lecture.  History and Evolution of Databases.  Basic Terms in Database.
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 1 Database Systems I Introduction.
Introduction to Databases
On Database Systems.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Introduction to Database Systems Ref. Ramakrishnan & Gehrke Chapter 1.
1 CENG 302 Introduction to Database Management Systems Nihan Kesim Çiçekli URL:
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 Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1 Instructor: Ethan Jackson
CSCD34 - Data Management Systems,- A. Vaisman1 CSC D34 - Data Management Systems Instructor: Alejandro Vaisman University of Toronto.
Introduction to DBMS Purpose of Database Systems View of Data
CSC343H – Introduction to Databases
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
Introduction to Databases
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.
Web-Enabled Decision Support Systems
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
CS6530 Graduate-level Database Systems Prof. Feifei Li.
 DATABASE DATABASE  DATABASE ENVIRONMENT DATABASE ENVIRONMENT  WHY STUDY DATABASE WHY STUDY DATABASE  DBMS & ITS FUNCTIONS DBMS & ITS FUNCTIONS 
Introduction: Databases and Database Users
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Xintao Wu.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Weichao Wang.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1 Overview of Database Systems.
Database Organization and Design
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
INFS614, Dr. Brodsky, GMU1 Database Management Systems INFS 614 Instructor: Professor Alex Brodsky
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
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.
1 CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
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
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
1 Geog 357: Data models and DBMS. Geographic Decision Making.
1 CS462- Database Systems Sang H. Son
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
CS3431: C-Term CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1.
BBM 371 – Data Management Lecture 3: Basic Concepts of DBMS Prepared by: Ebru Akçapınar Sezer, Gönenç Ercan.
1 CENG 351 CENG 351 Introduction to Data Management and File Structures Department of Computer Engineering METU.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
CHAPTER 1: INTRODUCTION Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Storage Management Database.
COP Introduction to Database Structures
Introduction to DBMS Purpose of Database Systems View of Data
CS4222 Principles of Database System
Chapter 1: Introduction
Introduction to Database Systems
Instructor: Elke Rundensteiner
Introduction to Database Systems
Overview of Database Systems Chpt 1
Instructor: Murali Mani
Database Management Systems
Database Management Systems CSE594
Introduction to DBMS Purpose of Database Systems View of Data
UNIT-I Introduction to Database Management Systems
Introduction to Database Systems
Introduction to Database Systems Chpt 1
Presentation transcript:

Introduction Example databases Overview of concepts Why use database systems

421B: Database Systems - Introduction 2 Example Databases q University I Data: departments, students, exams, rooms,... I Usage: creating exam plans, enter exam results, create statistics, build timetables, … I Web-based access common q Bank I Data: clients, accounts, credits, funds,… I Applications: accounting, transfers (> 50,000 per day), risk management I Web-based access for some parts of the application q Airline I Data: flights, passengers, employees, airplanes,… I Applications: reservation, booking, creating flight schedules, querying flight schedules I Web-based access for some parts of the application

421B: Database Systems - Introduction 3 Example Databases (contd.) q Genetics I Data: DNA-sequences (> 1 Mio. bases for simple bacteria), proteins I Applications: search similar sequences, predict protein structure, keep track of experiments… q Online bookstore I Data: all what is sold at the bookstore, customer information I Applications: keyword search, booking, maintaining shopping basket, checkout, … q Global Change Research I Data: topographic maps, satellite data (NASA Earth Observation System: 1 Terabyte per day) I Applications: Analysis and prediction of climate and environmental changes (e.g., greenhouse effect, waldsterben), visualization of data q Stock market, libraries, etc.

421B: Database Systems - Introduction 4 The basic Terminology q Database: collection of data modeling a real world enterprise q Database management system (DBMS) or database system (DBS): the software package to store and manage the data q Application programs: the software to access and process the data (implements business logic, e.g., enter exam grades, purchase book) q Information system (within this course): database + DBMS + application programs I There exist other types of information systems, based on information-retrieval systems or knowledge-based systems

421B: Database Systems - Introduction 5 Client/Server-Architecture Database Management System Interpreter for ad-hoc queries End user Clients Server Application Programs Application Programmer Database Administrator

421B: Database Systems - Introduction 6 Example DBMS q Relational DBMS companies like Oracle q IBM offers its relational DB2 system. With IMS, a non-relational system, IBM is by some accounts the largest DBMS vendor in the world q Microsoft offers SQL-Server, plus Microsoft Access for the cheap DBMS on the desktop, answered by “lite” systems from other competitors q There exist several widely used open-source DBMS: PostgreSQL and MySQL being the best known of them q XML database systems q Object-oriented database systems q Embedded database systems

421B: Database Systems - Introduction 7 Who wants to study databases? q “What is the use of all the courses I have taken so far?” I This course shows very concrete how CS is used in the outside world I This courses uses a lot of the basics introduced in the 200/300 level courses q “I want to work in an interdisciplinary environment” I Be an application developer building solutions for all kinds of fields working with people from other areas (e-commerce, science, administration, law, etc. etc.) q “I love the internals of how computers and systems work” I Be a database administrator or a DBS developer: a DBMS is an entire operating system and more q “I am more a theoretical person” I Database systems have a very sound theoretical foundation and there are many exciting open problems q “I want to work with computer languages, human-computer interaction, multimedia, logic, communication, distributed systems, knowledge management,…. I It’s all there q “I want to make a lot of money” I E-commerce, banks and business: here you are q “I am not interested in databases” I You will have to use them anyway

421B: Database Systems - Introduction 8 Data Models q A data model is a collection of concepts for describing data q A schema is a description of a particular collection of data, using a given data model q Most DBMS are based on the relational data model I Main concept: relation, basically a table with rows and columns I Every relation has a schema, which describes the columns (also called attributes or fields) I Close to how the DBMS stores the data sid name login age gpa 31 Judy jud Joe joe Students Schemas are defined using a data definition language (DDL) Data is modified using a data manipulation language (DML)

421B: Database Systems - Introduction 9 Data Models (contd.) q A Semantic Data Model provides abstract, high-level constructs with which it is “easy” to develop an initial description of the data (schema) in an enterprise I that is, develop a schema using the semantic data model and then translate it into a schema based on the data model provided by the DBMS I for instance, the entity-relation model (ER) allows us to pictorially denote entities and relationships among them

421B: Database Systems - Introduction 10 Example: University Database Students sid name login age gpa Enrolled Courses cid cname credits grade sid name login age gpa cid cname credits sid cid grade Students Enrolled Courses Entity Relationship Relation Entity

421B: Database Systems - Introduction 11 Querying Data q Querying the database: I Student record: Give me all courses a student XYZ has taken. Show all the grades he/she got plus the class average. q Inserting data into the database I A student registers for a course q Updating existing data I The instructor enters the grades for a course q Specific query languages for DBMS: best known is SQL and OQL

421B: Database Systems - Introduction 12 Data Storage and Data Access q A typical DBMS has a layered architecture q Disk space management, buffer management, files and access methods represent (nearly) an operating system on top of the operation system q Fast and sophisticated data retrieval requires I special index structures I query optimization techniques Query Optimization And Execution Relational Operators Files and Access Methods Buffer Management Disk Space Management DB

421B: Database Systems - Introduction 13 Transaction Management: Controlling the Database Access q Key concept is transaction, which is an atomic sequence of database actions (read and write operations on data items) q A transaction represents a logical unit of operations (from the application point of view) I Often “user program” = transaction I For instance: transfer transaction = debit of account X, credit on account Y

421B: Database Systems - Introduction 14 Transactional Properties q Atomicity: all or none of the operations of a transaction should succeed (all-or-nothing property) I All operations succeed = commit I None of the operations succeed = abort (in the case of failure: undo all operations executed so far) q Durability: the changes of a committed transaction must be persistent even in the case of failures I write changes to disk before commit q Recovery: when restarting a failed site, recovery brings the database back to a consistent state I Exactly the updates of all committed transactions must be in the database and nothing else q Isolation: don’t mess up the database when running several transactions at the same time

421B: Database Systems - Introduction 15 Why use a DBMS? (instead of files) I appropriate data models (helps to make a good design) l offer more than records, arrays and basic data types I easy definition of data (declarative and set-oriented) l define data once with simple constructs instead of spreading definitions over various program modules I easy access to data l query language allows for sophisticated data retrieval using simple query statements; simple creation, deletion and modification of data I efficient access to data l good index structures provided I data independence l application programs receive abstract view of data and are independent of how data is stored and accessed I persistent data storage l Gigabytes of data do not fit in main memory and require special file support l guarantee that changes to data are on stable storage

421B: Database Systems - Introduction 16 Why use a DBMS? (contd.) (instead of files) I data integrity l simple to define constraints to keep data consistent (account must always be above zero) I security and authorization l very flexible access control and execution control I good basis to allow different applications to work on the same data l centralize data management l provide unified interface I uniform data administration l good tools for tuning, upgrading, monitoring,... I concurrent access, recovery from crashes l comes for free I... Reduced application development time Reduced application maintenance Safer 

421B: Database Systems - Introduction 17 Emphasis of the Course q How to organize, maintain and retrieve information using a DBMS I design of databases I usage of DBMS I Understand how DBMS work in order to use them appropriately

421B: Database Systems - Introduction 18

421B: Database Systems - Introduction 19 Levels of Abstraction q Single conceptual (logical) schema defines logical structure I Conceptual database design q Physical schema describes the files and indexes used I Physical database design q Different views describe how users see the data (also referred to as external schema) I generated on demand from the real data View 1 View 2 View 3 Conceptual Schema Physical Schema

421B: Database Systems - Introduction 20 Example: University Database q Conceptual schema: I Students(sid:string, name:string, login:string, age:integer, gpa:real) I Courses(cid:string, cname:string, credits:integer)  Enrolled(sid:string, cid:string, grade:string) q Physical schema: I Relations stored as unordered files I Index on first column of Students q External schema (view): I Course_info(cid:string, enrollment:integer)

421B: Database Systems - Introduction 21 Data Independence q Applications isolated from how data is structured and stored q Logical data independence: protection from changes in logical structure of data q Physical data independence: protection from changes in the physical structure of data