Overview of Data Management

Similar documents
Overview of Database Management

Chapter 1: Introduction. Database Management System (DBMS) University Database Example

Chapter 1: Introduction

CSE 132A. Database Systems Principles

1 File Processing Systems

ECS 165A: Introduction to Database Systems

History of Database Systems

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. Introduction to Databases. Why databases? Why not use XML?

Database Management. Chapter Objectives

Introduction. Introduction: Database management system. Introduction: DBS concepts & architecture. Introduction: DBS versus File system

Introduction: Database management system

INTRODUCTION DATABASE MANAGEMENT SYSTEMS

Introduction to Databases

Chapter 1: Introduction. Database Management System (DBMS)

Database Systems. Lecture 1: Introduction

Introduction to database management systems

Chapter 1: Introduction

Principles of Database. Management: Summary

Database Systems Introduction Dr P Sreenivasa Kumar

Overview. Introduction to Database Systems. Motivation... Motivation: how do we store lots of data?

ICOM 6005 Database Management Systems Design. Dr. Manuel Rodríguez Martínez Electrical and Computer Engineering Department Lecture 2 August 23, 2001

COMP5138 Relational Database Management Systems. Databases are Everywhere!

DATABASES AND DATABASE USERS

Overview of Database Management Systems

Module 4 Creation and Management of Databases Using CDS/ISIS

Database System Concepts

Week 1 Part 1: An Introduction to Database Systems. Databases and DBMSs. Why Use a DBMS? Why Study Databases??

Contents RELATIONAL DATABASES

Database Concepts. Database & Database Management System. Application examples. Application examples

14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

Basic Concepts of Database Systems

Database System Architecture & System Catalog Instructor: Mourad Benchikh Text Books: Elmasri & Navathe Chap. 17 Silberschatz & Korth Chap.

DATABASE MANAGEMENT SYSTEM

æ A collection of interrelated and persistent data èusually referred to as the database èdbèè.

Database Design and Programming

What is a database? COSC 304 Introduction to Database Systems. Database Introduction. Example Problem. Databases in the Real-World

Topics. Introduction to Database Management System. What Is a DBMS? DBMS Types

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Core Syllabus. Version 2.6 B BUILD KNOWLEDGE AREA: DEVELOPMENT AND IMPLEMENTATION OF INFORMATION SYSTEMS. June 2006

Introduction to Object-Oriented and Object-Relational Database Systems

Database Management Systems

Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 1 Outline

Introduction to Database Systems. Module 1, Lecture 1. Instructor: Raghu Ramakrishnan UW-Madison

Course Notes on A Short History of Database Technology

Course Notes on A Short History of Database Technology

Module 3: File and database organization

Introduction to Database Systems

CSE 233. Database System Overview

Chapter 2 Database System Concepts and Architecture

Chapter 1 Databases and Database Users

Databases and BigData

1. INTRODUCTION TO RDBMS

Course: CSC 222 Database Design and Management I (3 credits Compulsory)

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives

Relational Database Basics Review

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur

Lesson 8: Introduction to Databases E-R Data Modeling

Database System Concepts, Implementations and Organizations-A Detailed Survey

Chapter 2. Data Model. Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel

THE OPEN UNIVERSITY OF TANZANIA FACULTY OF SCIENCE TECHNOLOGY AND ENVIRONMENTAL STUDIES BACHELOR OF SIENCE IN INFORMATION AND COMMUNICATION TECHNOLOGY

Objectives of Lecture 1. Labs and TAs. Class and Office Hours. CMPUT 391: Introduction. Introduction

BCA. Database Management System

DATABASE SYSTEM CONCEPTS AND ARCHITECTURE CHAPTER 2

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file?

Database Fundamentals

Object Oriented Databases. OOAD Fall 2012 Arjun Gopalakrishna Bhavya Udayashankar

Data Hierarchy. Traditional File based Approach. Hierarchy of Data for a Computer-Based File

CSE 544 Principles of Database Management Systems. Magdalena Balazinska (magda) Winter 2009 Lecture 1 - Class Introduction

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati

Information Management

Database System. Session 1 Main Theme Introduction to Database Systems Dr. Jean-Claude Franchitti

Objectives of Lecture 1. Class and Office Hours. Labs and TAs. CMPUT 391: Introduction. Introduction

Study Notes for DB Design and Management Exam 1 (Chapters 1-2-3) record A collection of related (logically connected) fields.


Data and Databases. Technology Guides T3.1

Relational Database Systems 2 1. System Architecture

10. Creating and Maintaining Geographic Databases. Learning objectives. Keywords and concepts. Overview. Definitions

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Introduction to Database Systems CS4320. Instructor: Christoph Koch CS

CS 525 Advanced Database Organization - Spring 2013 Mon + Wed 3:15-4:30 PM, Room: Wishnick Hall 113

B.Com(Computers) II Year RELATIONAL DATABASE MANAGEMENT SYSTEM Unit- I

CSE 544 Principles of Database Management Systems. Magdalena Balazinska (magda) Fall 2007 Lecture 1 - Class Introduction

Introduction to Database Systems. Chapter 1 Introduction. Chapter 1 Introduction

DATA WAREHOUSING AND OLAP TECHNOLOGY

DATABASE MANAGEMENT SYSTEMS. Question Bank:

In-memory databases and innovations in Business Intelligence

B.Sc (Computer Science) Database Management Systems UNIT-V

Database Management Systems. Chapter 1

THE OPEN UNIVERSITY OF TANZANIA FACULTY OF SCIENCE TECHNOLOGY AND ENVIRONMENTAL STUDIES BACHELOR OF SIENCE IN DATA MANAGEMENT

DATA BASE.

Information Systems Analysis and Design CSC John Mylopoulos Database Design Information Systems Analysis and Design CSC340

Chapter 3. Database Environment - Objectives. Multi-user DBMS Architectures. Teleprocessing. File-Server

Chapter 1 File Organization 1.0 OBJECTIVES 1.1 INTRODUCTION 1.2 STORAGE DEVICES CHARACTERISTICS

Database Administrator [DBA]

COURSE NAME: Database Management. TOPIC: Database Design LECTURE 3. The Database System Life Cycle (DBLC) The database life cycle contains six phases;

CS 4604: Introduc0on to Database Management Systems

Carnegie Mellon Univ. Dept. of Computer Science Database Applications. Outline. We ll learn: Faloutsos CMU SCS

Transcription:

Overview of Data Management Grant Weddell Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Winter 2015 CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 1 / 22

Course Logistics Webpage Text Book www.cs.uwaterloo.ca/gweddell/cs348 Database Management Systems (3rd Edition). Raghu Ramakrishnan and Johannes Gehrke. McGraw Hill, 2000. CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 2 / 22

Course Content Why do we use databases? Functionality provided by a Database Management System Database Models: Relational, Network, OO How do we use a DBMS? Relational model, foundational query languages SQL Application programming Transactions and concurrency How do we design a database? Entity-Relationship (ER) modeling Dependencies and constraints Redundancy and normal forms How do we administer a DBMS? Security and authorization Physical design/tuning CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 3 / 22

What is a Database? Definition (Database) A large and persistent collection of (more-or-less similar) pieces of information organized in a way that facilitates efficient retrieval and modification. Examples: a file cabinet a library system a personnel management system Definition (Database Management System (DBMS)) A program (or set of programs) that manages details related to storage and access for a database. CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 4 / 22

Application of Databases Original More recent inventory control payroll banking and financial systems reservation systems computer aided design (CAD) software development (CASE, SDE/SSE) telecommunication systems e-commerce dynamic/personalized web content CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 5 / 22

Application of Databases (cont d) Common Circumstances: There is lots of data (mass storage) Data is formatted Requirements: persistence and reliability efficient and concurrent access Issues: many files with different structure shared files or replicated data need to exchange data (translation programs) Note The data maintained by the system are much more important and valuable than the system itself. CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 6 / 22

Brief History of Data Management: Ancient 2000 BC: Sumerian Records 350 BC: Syllogisms (Aristotle) 296 BC: Library of Alexandria 1879: Modern Logic (Frege) 1884: U.S. Census (Hollerith) 1941: Model Theory (Tarski) CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 7 / 22

Brief History of Data Management: 1950s First generation 50 s and 60 s batch processing sequential files and tape input on punched cards Second generation (60 s) disk enabled random access files new access methods (ISAM, hash files) mostly batch with some interactivity independent applications with separate files growing applications base CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 8 / 22

Brief History of Data Management: 1960s (cont d) As the application base grows, we end up with many shared files a multitude of file structures a need to exchange data among applications This causes a variety of problems redundancy: multiple copies inconsistency: independent updates inaccuracy: concurrent updates incompatibility: multiple formats insecurity: proliferation inauditability: poor chain of responsibility inflexibility: changes are difficult to apply CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 9 / 22

Brief History of Data Management: 1960s (cont d) Hierarchical data model IBM s Information Management System (IMS): concurrent access only allows 1:N parent-child relationships (i.e. a tree) hierarchy can be exploited for efficiency queries navigate up and down trees one record at a time data access language embedded in business processing language difficult to express some queries Network data model Charles Bachman s Integrated Data Store (IDS) model standardized by Conference On DAta SYstems Languages (CODASYL) data organized as collections of sets of records separation of physical data representation from users view of data pointers between records represent relationships set types encoded as lists queries navigate between records still one record at a time CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 10 / 22

Database Management System Idea Abstracts common functions and creates a uniform well defined interface for applications accessing data. 1 Data Model all data stored in a well defined way 2 Access control only authorized people get to see/modify it 3 Concurrency control multiple concurrent applications access data 4 Database recovery nothing gets accidentally lost 5 Database maintenance CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 11 / 22

Brief History of Data Management: 1970s Edgar Codd proposes relational data model (1970) firm mathematical foundation! declarative queries Charles Bachman wins ACM Turing award (1973) The Programmer as Navigator Peter Chen proposes E-R model (1976) Transaction concepts (Jim Gray and others) IBM s System R and UC Berkeley s Ingres systems demonstrate feasibility of relational DBMS (late 1970s) CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 12 / 22

Three Level Schema Architecture Definition (Schema) A schema is a description of the data interface to the database (i.e., how the data is organized). 1 External schema (view): what the application programs and user see. May differ for different users of the same database. 2 Conceptual schema: description of the logical structure of all data in the database. 3 Physical schema: description of physical aspects (selection of files, devices, storage algorithms, etc.) Definition (Instance) A database instance is a database (real data) that conforms to a given schema. CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 13 / 22

Three-level Schema Architecture (cont.) Users/ Applications External Schema External view External view External view Conceptual Schema Conceptual view Internal Schema DBMS Internal view Database CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 14 / 22

Data Independence Idea Applications do not access data directly but, rather through an abstract data model provided by the DBMS. Two kinds of data independence: Physical: applications immune to changes in storage structures Logical: applications immune to changes in data organization Note One of the most important reasons to use a DBMS! CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 15 / 22

Interfacing to the DBMS Data Definition Language (DDL): for specifying schemas may have different DDLs for external schema, conceptual schema, internal schema information is stored in the data dictionary, or catalog Data Manipulation Language (DML): for specifying queries and updates navigational (procedural) non-navigational (declarative) CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 16 / 22

Types of Database Users End user: Accesses the database indirectly through forms or other query-generating applications, or Generates ad-hoc queries using the DML. Application developer: Designs and implements applications that access the database. Database administrator (DBA): Manages conceptual schema. Assists with application view integration. Monitors and tunes DBMS performance. Defines internal schema. Loads and reformats database. Is responsible for security and reliability. CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 17 / 22

Transactions When multiple applications access the same data, undesirable results occur. Example: withdraw(ac,1000) Bal := getbal(ac) if (Bal>1000) <give-money> setbal(ac,bal-1000) withdraw(ac,500) Bal := getbal(ac) if (Bal>500) <give-money> setbal(ac,bal-500) Idea Every application may think it is the sole application accessing the data. The DBMS should guarantee correct execution. CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 18 / 22

Transactions (cont d) Definition (Transaction) An application-specified atomic and durable unit of work. Properties of transactions ensured by the DBMS: Atomic: a transaction occurs entirely, or not at all Consistency: Isolated: Durable: each transaction preserves the consistency of the database concurrent transactions do not interfere with each other once completed, a transaction s changes are permanent CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 19 / 22

Brief History of Data Management: 1980s Development of commercial relational technology IBM DB2, Oracle, Informix, Sybase Edgar Codd wins ACM Turing award (1981) SQL standardization efforts through ANSI and ISO Object-oriented DBMSs persistent objects object id s, methods, inheritence navigational interface reminicent of hierarchical model CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 20 / 22

Brief History of Data Management: 1990s-Present Continued expansion of SQL and system capabilities New application areas: the Internet On-Line Analytic Processing (OLAP) data warehousing embedded systems multimedia XML data streams Jim Gray wins ACM Turing award (1998) Relational DBMSs incorporate objects (late 1990s) CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 21 / 22

Summary Using a DBMS to manage data helps: to remove common code from applications to provide uniform access to data to guarantee data integrity to manage concurrent access to protect against system failure to set access policies for data CS 348 (Intro to DB Mgmt) Overview of Data Management Winter 2015 22 / 22