CS522 Advanced database Systems Huiping Guo Department of Computer Science California State University, Los Angeles Course administration.

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

1 Introduction to Database Systems CSE444 Instructor: Scott Vandenberg University of Washington Winter 2000.
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.
Database Management System (DBMS)
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1 Instructor: Deborah Strahman
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 1 Database Systems I Introduction.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1.
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:
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction n Why Database Systems? n Data Models n Data Definition Language.
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.
CSC343H – Introduction to Databases
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Introduction. 
Database Management Systems 1 Introduction to Database Systems Instructor: Xintao Wu Ramakrishnan & Gehrke.
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 MANAGEMENT SYSTEMS TERM B. Tech II/IT II Semester UNIT-I PPT SLIDES Text Books: (1) DBMS by Raghu Ramakrishnan (2) DBMS by Sudarshan and.
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: Monday, Wednesday 4:15 pm – 5:30.
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: M,T,W,Th,F 2:30 pm – 3:30 pm,
INFS614, Dr. Brodsky, GMU1 Database Management Systems INFS 614 Instructor: Professor Alex Brodsky
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.
1 What Is a DBMS?  A very large, integrated collection of data.  Models real-world enterprise.  Entities (e.g., students, courses)  Relationships (e.g.,
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
1 CS462- Database Systems Sang H. Son
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Lecture on Database Management System
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1.
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
DATABASE MANAGEMENT SYSTEMS
Introduction to Database Systems Chapter 1
CS4222 Principles of Database System
Introduction To DBMS.
DATABASE MANAGEMENT SYSTEMS
Chapter 1: Introduction
Chapter 1: Introduction
Introduction to Database Systems
Instructor: Elke Rundensteiner
Chapter 1: Introduction
Database Management Systems Chapter 1
Chapter 1: Introduction
Introduction to Database Systems
Overview of Database Systems Chpt 1
Instructor: Murali Mani
Database Management Systems Chapter 1
Database Management Systems
Introduction to Database Management Systems
Database Management Systems CSE594
Sang H. Son CS6750: Database Systems The slides for this text are organized into chapters. This lecture covers Chapter 1. Chapter 1: Introduction.
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Introduction to Database Systems
Terms: Data: Database: Database Management System: INTRODUCTION
Database Management Systems Chapter 1
Chapter 1: Introduction
Lecture 1: Overview of CSCI 485 Notes: I presented parts of this lecture as a keynote at Educator’s Symposium of OOPSLA Shahram Ghandeharizadeh Director.
Lecture 1: Overview of CSCI 485 Notes: I presented parts of this lecture as a keynote at Educator’s Symposium of OOPSLA Shahram Ghandeharizadeh Associate.
Presentation transcript:

CS522 Advanced database Systems Huiping Guo Department of Computer Science California State University, Los Angeles Course administration

1. Introduction CS522_S Course administration r Lectures Tu/TH 6:00 – 10:00pm, FA 219 r Instructor 1: Huiping Guo Week 1&2 m m Phone: (323) m Office: ET-A318 m Office hours: r Instructor 2: Yuqing Zhu Week 4&5 r TA: Ms. Saloni Chacha

1. Introduction CS522_S Course administration (Cont.) r Textbook m “Fundamentals of Database System”, 7th edition by Ramez Elmasri and Shamkant B. Navathe r References m Database Systems: The Complete Book, by H. Molina, J. Ullman and J Widom m Database System Concept, by A.Silberschatz, H. Korth and S. Sudarshan r Prerequisites m CS422: Principles of Database Systems

1. Introduction CS522_S Course administration (Cont.) r Grading policy m Midterm (50%) 07/05 6:00 – 8:30 m Final exam (50%) TBD r Final letter grade m A A m B B m B C m C C m F <55

1. Introduction CS522_S Course administration (Cont.) r Note: m The grading policy is for all students in the class m No extra homework for individual students m No make up exams DO NOT take this class if you cannot attend the midterm/final exam!  You ’ ll be graded based ONLY on your performance! NOT on your immigration status NOT on your graduation status NOT on your work status NOT on your request

Course administration (Cont.) r CSNS webpage m r Every student enrolled in the class has an account m both of your username and password are your CIN. m When you first sign in, you will be asked to choose a different username and password. m If you already used the system in other classes, your username and password are the same as before. r Make sure your address on CSNS is correct 1. Introduction CS522_S16 1-6

Course administration (Cont.) r Important dates m Thursday, July. 14 Drop Deadline r Academic integrity m DON’T COPY OTHER’S WORK! m DON’T GIVE YOUR SOLUTIONS TO ANYONE! m DON’T COLLABORATE! m If plagiarism is found, ALL parties involved will get F 1. Introduction CS522_S16 1-7

Other policies r Please turn off your cell phone during the lecture r DO NOT talk in class during lectures r After lecture, leave the classroom. m Students are not allowed to stay in the classroom alone without the presence of the instructor 1. Introduction CS522_S16 1-8

Introduction to DBMS Huiping Guo Department of Computer Science California State University, Los Angeles

1. Introduction CS522_S Outline r Database Management Systems r Describing and Storing Data in a DBMS r Components of a DBMS

1. Introduction CS522_S Database Management System (DBMS) r Database m A very large, integrated collection of data which describe the activities of one or more related organizations m Ex: a university database r DBMS m A DBMS is software package designed to store and manage databases How to utilize a database effectively and efficiently

1. Introduction CS522_S DBMS vs. File System r In the early days, database applications were built directly on top of file systems r Drawbacks of using file systems to store data: m Data redundancy and inconsistency Multiple file formats, duplication of information in different files m Difficulty in accessing data Need to write a new program to carry out each new task m Integrity problems Integrity constraints (e.g. account balance > 0) become “buried” in program code rather than being stated explicitly Hard to add new constraints or change existing ones

1. Introduction CS522_S DBMS vs. File System r Drawbacks of using file systems (cont.) m Atomicity of updates Failures may leave database in an inconsistent state with partial updates carried out Example: Transfer of funds from one account to another should either complete or not happen at all m Concurrent access by multiple users Concurrent access needed for performance Uncontrolled concurrent accesses can lead to inconsistencies –Example: Two people reading a balance and updating it at the same time m Security problems Hard to provide user access to some, but not all, data r Database systems offer solutions to all the above problems

1. Introduction CS522_S Advantages of DBMS r Data independence m Application programs are not exposed to details of data representation and storage r Efficient data access m A DBMS utilizes a variety of sophisticated techniques to store and retrieve data efficiently r Concurrent access and crash recovery m A DBMS schedules concurrent accesses to the data in such a manner that users can think of the data as being accessed by only one user at a time

1. Introduction CS522_S Advantages of DBMS r Data integrity and security m A DBMS enforces integrity constraints m A DBMS enforces access controls that govern what data is visible to different classes of users r Data administration r Reduced application development time

1. Introduction CS522_S Describing and Storing Data in a DBMS r Data models r Levels of Abstraction r Data Independence

1. Introduction CS522_S16 Data Models r A data model is a collection of concepts for describing data. r A schema is a description of a particular collection of data, using the a given data model m Ex: ER model r The relational model of data is the most widely used model today. m Main concept: relation, basically a table with rows and columns. m Every relation has a schema, which describes the columns, or fields

1. Introduction CS522_S16 Levels of Abstraction r Many views, single conceptual (logical) schema and physical schema. m Views describe how users see the data. m Conceptual schema defines logical structure m Physical schema describes the files and indexes used. * Schemas are defined using DDL; data is modified/queried using DML. Physical Schema Conceptual Schema View 1View 2View

1. Introduction CS522_S16 Example: University Database r Conceptual schema: m Students(sid: string, name: string, login: string, age: integer, gpa:real) m Courses(cid: string, cname:string, credits:integer) m Enrolled(sid:string, cid:string, grade:string) r Physical schema: m Relations stored as unordered files. m Index on first column of Students. r External Schema (View): m Course_info(cid:string,enrollment:integer) 1-19

1. Introduction CS522_S16 Data Independence * r Applications insulated from how data is structured and stored. r Logical data independence: Protection from changes in logical structure of data. r Physical data independence: Protection from changes in physical structure of data. * One of the most important benefits of using a DBMS! 1-20

1. Introduction CS522_S DBMS Structure of a DBMS Database query Results File and Access Methods Buffer Manager Disk Space Manager Recovery Manager Plan Executor Parser Operator Evaluator Optimizer Query evaluation engine Transaction Manager Lock Manager Concurrency control DBMS Storage & indexing

1. Introduction CS522_S Storage and indexing r File and access method m File organization m indexing r Buffer manager m Responsible for reading data into memory for processing and writing it back r Disk manager m Allocates additional disk space for new records m Keeps track of the pages in use m Deallocates pages

1. Introduction CS522_S Query evaluation r Alternative ways of evaluating a given query m Equivalent expressions m Different algorithms for each operation r Need to estimate the cost of operations m Depends critically on statistical information about relations which the database must maintain m Need to estimate statistics for intermediate results to compute cost of complex expression r Cost difference between a good and a bad way of evaluating a query can be enormous

1. Introduction CS522_S Concurrency control r Transaction manager m A transaction is any one execution of a user program m Ensures that transactions request and release locks m schedules execution of transactions r Lock manager m Keeps track of requests for locks and grants locks

1. Introduction CS522_S Recovery manager r Responsible for maintaining a log and restoring the system to a consistent state after a crash r Responsible for transaction atomicity and durability m Ensures atomicity by undoing transactions that do not commit m Ensures durability by making sure that all actions survive system and media crashes

1. Introduction CS522_S Class objectives  Have a in depth understanding of how a DBMS works m Store and retrieve data m Evaluate and optimize queries m Manage transactions, control concurrency and recover from a crash