CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Final Review

Similar documents
Crash Recovery. The ACID properties. Motivation

COURSE 4. Database Recovery 2

Crash Recovery. Chapter 18. Sina Meraji

Crash Recovery CMPSCI 645. Gerome Miklau. Slide content adapted from Ramakrishnan & Gehrke

Last time. Started on ARIES A recovery algorithm that guarantees Atomicity and Durability after a crash

CAS CS 460/660 Introduction to Database Systems. Recovery 1.1

ACID Properties. Transaction Management: Crash Recovery (Chap. 18), part 1. Motivation. Recovery Manager. Handling the Buffer Pool.

Transaction Management: Crash Recovery (Chap. 18), part 1

some sequential execution crash! Recovery Manager replacement MAIN MEMORY policy DISK

Database Recovery Techniques. DBMS, 2007, CEng553 1

Atomicity: All actions in the Xact happen, or none happen. Consistency: If each Xact is consistent, and the DB starts consistent, it ends up

UNIT 9 Crash Recovery. Based on: Text: Chapter 18 Skip: Section 18.7 and second half of 18.8

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #1: Introduction

A tomicity: All actions in the Xact happen, or none happen. D urability: If a Xact commits, its effects persist.

Review: The ACID properties. Crash Recovery. Assumptions. Motivation. More on Steal and Force. Handling the Buffer Pool

Crash Recovery Review: The ACID properties

Slides Courtesy of R. Ramakrishnan and J. Gehrke 2. v Concurrent execution of queries for improved performance.

CSE 444, Winter 2011, Midterm Examination 9 February 2011

Name Class Account UNIVERISTY OF CALIFORNIA, BERKELEY College of Engineering Department of EECS, Computer Science Division J.

Aries (Lecture 6, cs262a)

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #1: Introduc/on

Review: The ACID properties. Crash Recovery. Assumptions. Motivation. Preferred Policy: Steal/No-Force. Buffer Mgmt Plays a Key Role

ARIES (& Logging) April 2-4, 2018

Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications. Administrivia. Last Class. Faloutsos/Pavlo CMU /615

Database Applications (15-415)

CS 4604: Introduc0on to Database Management Systems

INSTITUTO SUPERIOR TÉCNICO Administração e optimização de Bases de Dados

CompSci 516 Database Systems

Department of Information Technology B.E/B.Tech : CSE/IT Regulation: 2013 Sub. Code / Sub. Name : CS6302 Database Management Systems

Introduction to Database Systems CSE 444

Introduction to Data Management. Lecture #26 (Transactions, cont.)

CSE 344 Final Review. August 16 th

CS122 Lecture 18 Winter Term, All hail the WAL-Rule!

Homework 7: Transactions, Logging and Recovery (due April 22nd, 2015, 4:00pm, in class hard-copy please)

ARIES. Handout #24. Overview

Goals for Today. CS 133: Databases. Final Exam: Logistics. Why Use a DBMS? Brief overview of course. Course evaluations

1/29/2009. Outline ARIES. Discussion ACID. Goals. What is ARIES good for?

Outline. Purpose of this paper. Purpose of this paper. Transaction Review. Outline. Aries: A Transaction Recovery Method

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

COMPSCI/SOFTENG 351 & 751. Strategic Exercise 5 - Solutions. Transaction Processing, Crash Recovery and ER Diagrams. (May )

Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications

Administrivia. CS186 Class Wrap-Up. News. News (cont) Top Decision Support DBs. Lessons? (from the survey and this course)

Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications. Outline. We ll learn: Faloutsos/Pavlo CMU /615

User Perspective. Module III: System Perspective. Module III: Topics Covered. Module III Overview of Storage Structures, QP, and TM

The transaction. Defining properties of transactions. Failures in complex systems propagate. Concurrency Control, Locking, and Recovery

Outline. Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications. We ll learn: We ll learn (cnt d) Faloutsos/Pavlo CMU /615

Introduction. Storage Failure Recovery Logging Undo Logging Redo Logging ARIES

Introduction to Data Management. Lecture #18 (Transactions)

Introduction and Overview

Final Review. CS634 May 11, Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke

Database Recovery. Lecture #21. Andy Pavlo Computer Science Carnegie Mellon Univ. Database Systems / Fall 2018

MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

CS122 Lecture 19 Winter Term,

Introduction to Database Systems CS432. CS432/433: Introduction to Database Systems. CS432/433: Introduction to Database Systems

Administration Naive DBMS CMPT 454 Topics. John Edgar 2

CS 5614: (Big) Data Management Systems. B. Aditya Prakash Lecture #1: Introduc/on

Introduction to Data Management. Lecture #25 (Transactions II)

Lecture 16: Transactions (Recovery) Wednesday, May 16, 2012

Introduction and Overview

CSE 190D Database System Implementation

CS634 Architecture of Database Systems Spring Elizabeth (Betty) O Neil University of Massachusetts at Boston

Database Systems ( 資料庫系統 )

Database Administration and Tuning

AC61/AT61 DATABASE MANAGEMENT SYSTEMS JUNE 2013

Transactions and Recovery Study Question Solutions

CSE 444 Midterm Exam

Database Systems Management

Final Review. May 9, 2017

Distributed Systems

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #17: Transac0ons 2: 2PL and Deadlocks

CSC 261/461 Database Systems. Fall 2017 MW 12:30 pm 1:45 pm CSB 601

Final Review. May 9, 2018 May 11, 2018

CS 5614: (Big) Data Management Systems. B. Aditya Prakash Lecture #6: Transac/ons 1: Intro. to ACID

COURSE 1. Database Management Systems

CMPT 354 Database Systems I. Spring 2012 Instructor: Hassan Khosravi

Concurrency Control & Recovery

Transaction Management. Readings for Lectures The Usual Reminders. CSE 444: Database Internals. Recovery. System Crash 2/12/17

Course Book Academic Year

Database Management Systems CSEP 544. Lecture 9: Transactions and Recovery

Database Systems (INFR10070) Dr Paolo Guagliardo. University of Edinburgh. Fall 2016

Transaction Management Overview. Transactions. Concurrency in a DBMS. Chapter 16

CSE 444, Fall 2010, Midterm Examination 10 November 2010

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #19: Logging and Recovery 1

Overview of the Class and Introduction to DB schemas and queries. Lois Delcambre

Database Management Systems. Chapter 1

CAS CS 460/660 Introduction to Database Systems. Fall

Advanced Relational Database Management MISM Course S A3 Spring 2019 Carnegie Mellon University

CPSC 310: Database Systems / CSPC 603: Database Systems and Applications Final Exam Fall 2005

CS 525 Advanced Database Organization - Spring 2017 Mon + Wed 1:50-3:05 PM, Room: Stuart Building 111

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #17: Transac0ons 1: Intro. to ACID

Introduction to Database Management Systems

Introduction. Example Databases

DATABASE MANAGEMENT SYSTEMS

Database Systems. Sven Helmer. Database Systems p. 1/567

Concurrency Control & Recovery

Specific Objectives Contents Teaching Hours 4 the basic concepts 1.1 Concepts of Relational Databases

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1

CPS352 - DATABASE SYSTEMS. Professor: Russell C. Bjork Spring semester, Office: KOSC 242 x4377

Database Systems ( 資料庫系統 ) Practicum in Database Systems ( 資料庫系統實驗 ) 9/20 & 9/21, 2006 Lecture #1

SYED AMMAL ENGINEERING COLLEGE

Transcription:

CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Final Review

Final Exam 30% of the grade No books, no notes, no laptops Allowed: Only 2 le3er-size pages You can use both sides Must be hand-wrihen And a calculator (recommended) DuraBon: 2 hours. 3:25-5:25pm, May 10, 2016 LocaBon: regular classroom Prakash 2016 VT CS 4604 2

Syllabus Comprehensive exam But main focus towards and emphasis on postmidterm stuff (= starbng from lecture 10) Will cover all material in all lectures EXCEPT (i.e. things NOT in exam) 1. NoSQL/MapReduce 2. Semi-structured data/xml 3. Data Mining/Warehousing (No PHP too of course) Prakash 2016 VT CS 4604 3

Office Hours this week - Sorour: (all at McB 106) - May 2: 10-11:00am (extra) - May 4: 2:30-3:30pm (extra) - May 5: 3:30-5:00pm (regular Bme) - May 10: 9:30-11am (regular Bme) - Shamimul: (all at McB 106) - May 6: 3:00-4:00pm (extra) - May 8: 1:00-2pm (extra, note that this is a Sunday) - May 9: 10:00-11:00am (extra) - Aditya: (all at Torg 3160 F) - May 2: 2:30-3:45pm (regular) - May 9: 1:00-4:00pm (extra) - May 10: 12:30-1:30pm (extra) - and by appointment Also posted on Piazza Prakash 2016 VT CS 4604 4

OVERVIEW Prakash 2016 VT CS 4604 5

What you learnt in the course Weeks 1 4: Query/ ManipulaBon Languages and Data Modeling RelaBonal Algebra Data definibon Programming with SQL EnBty-RelaBonship (E/R) approach Specifying Constraints Good E/R design Weeks 5 8: Indexes, Processing and OpBmizaBon Storing Hashing/SorBng Query OpBmizaBon NoSQL and Hadoop Week 9-10: RelaBonal Design FuncBonal Dependencies NormalizaBon to avoid redundancy Week 11-12: Concurrency Control TransacBons Logging and Recovery Week 13 14: Students choice PracBce Problems XML Data mining and warehousing Prakash 2016 VT CS 4604 6

naive app. pgmr casual DBA users app. pgm(o) emb. DML DML proc. query eval. DDL int. query proc. trans. mgr buff. mgr file mgr storage mgr. data meta-data Prakash 2016 VT CS 4604 7

SQL/RA Make sure you know all the operators for SQL and RA Select, From, Where, Group-by, Having, Order-by Set-semanBcs/Bag-semanBcs The base for DB Prakash 2016 VT CS 4604 8

ER You should already have enough pracbce! Prakash 2016 VT CS 4604 9

FDs DefiniBons of FDs, closures (A3ributes vs FDs), cover, normal forms, decomposibons etc. etc. Pay a3enbon to mulbple ways of defining the same thing! E.g. Key : mulbple ways of defining and understanding Various procedures to compute the above Prakash 2016 VT CS 4604 10

Indexing and Hashing Know your basic structure, and definibons Less emphasis (as we have covered this in the midterm) Prakash 2016 VT CS 4604 11

Query Processing EsBmaBng costs What are you esbmabng? = #disk accesses How to esbmate? sorbng Different types of joins (NLJ, Block-NLJ, SMJ, HJ) Don t just memorize the formulae, understand how they are derived, the best-case worst-case scenarios Prakash 2016 VT CS 4604 12

Query Op0miza0on Algebraic manipulabon SelecBvity esbmabon Many cases How to use selecbvibes to get the output size Prakash 2016 VT CS 4604 13

Transac0ons ACID Problems with concurrency and Serializability concept Conflict-Serializability, how to detect 2PL, when, why, what, how, limitabons Strict 2PL, when, why, what, how, limitabons Know your venn diagrams! Deadlocks, how to detect and avoid them Dependency graph vs Waits-for graphs Prakash 2016 VT CS 4604 14

Logging and Recovery: Big Picture update CLR CLR LOG LogRecords prevlsn XID type pageid length offset before-image after-image undonextlsn DB Data pages each with a pagelsn master record LSN of most recent checkpoint RAM Xact Table lastlsn status Dirty Page Table reclsn flushedlsn Prakash 2016 VT CS 4604 15

Crash Recovery: Big Picture Oldest log rec. of Xact active at crash Smallest reclsn in dirty page table after Analysis Start from a checkpoint (found via master record). Three phases. Analysis - Figure out which Xacts committed since checkpoint, which failed. REDO all actions (repeat history) UNDO effects of failed Xacts. Last chkpt CRASH A R U Prakash 2016 VT CS 4604 16

Crash Recovery: Big Picture Oldest log rec. of Xact active at crash Smallest reclsn in dirty page table after Analysis Last chkpt C B A Notice: relative ordering of A, B, C may vary! CRASH A R U Prakash 2016 VT CS 4604 17

Logging and Recovery Make sure you know *exactly* how recovery takes place, and what is logged PracBce, pracbce Check out problems in lectures, pracbce problems and hws Be comfortable with small conceptual quesbons (see pracbce problems) Prakash 2016 VT CS 4604 18

Tips Know your definibons! Different ways of defining same thing e.g. keys Go through the slides Checking the textbook if you are unclear Go through HWs, Handouts, Exams, and Prac0ce problems Textbook also has good problems! Even numbered problems have solubons on-line Take advantage of our office hours Make use of your 2 allowed wri3en notes! Bring a calculator Prakash 2016 VT CS 4604 19

More There will be nega0ve marking for some quesbons Read the whole quesbon carefully before answering Raise your hand if you need any clarificabon Prakash 2016 VT CS 4604 20

Data Management Is a really excibng field ( BIG-Data ) High commercial *and* academic research interest Prakash 2016 VT CS 4604 21

Lots more stuff we did not cover Storage Manager File organizabon More details about query processing Fine-tuning Join algorithms Other powerful query languages Datalog etc. More sophisbcated locking, concurrency control E.g. Hierarchical locking, Bme-stamped CC SpaBal Data Management Distributed Databases More advanced data mining More details on NoSQL/Map Reduce etc... Prakash 2016 VT CS 4604 22

Course Plug: CS 5614: (Big) Data Management Systems Spring 2017: Graduate level course Project, research papers Will cover the state-of-the-art Would be excibng and fun! Good way to get exposed to the state-of-theart in large data management and mining, network analysis, graph databases etc. Prakash 2016 VT CS 4604 23

Good Luck! Especially for those of you will graduate! Feel free to keep in touch J Prakash 2016 VT CS 4604 24

Prakash 2016 VT CS 4604 25