Chapter 1: Introduction to DBMS & Databases. Database Management System (DBMS) What is a DBMS? What are some examples of Database Applications?

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

Ver 1,12/09/2012Kode :CCS 111,Sistem Basis DataFASILKOM Chapter 1: Introduction PENDAHULUAN Bambang Irawan S.KOM;M.Kom.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts - 6 th Edition Database System Concepts.
Introduction. 1.2 Points Use of Database Systems View of Data Database Languages RDBMS Database Design Object-based and semi-structured databases Data.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database Management System (DBMS)
Ch1: File Systems and Databases Hachim Haddouti
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Introduction to Databases Database Management Systems I Alex Coman, Winter.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction n Why Database Systems? n Data Models n Data Definition Language.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Database Management Systems Purpose of Database Systems View of Data.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Chapter 1: Introduction. Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data Set.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database System Concepts, 5th Ed. Bin Mu at Tongji University Chapter 1: Introduction.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com PENDAHULUAN Bambang Irawan.
Introduction to Databases
Chapter 1: Introduction. Unite International College1.2Database Management Systems Chapter 1: Introduction Purpose of Database Systems View of Data Database.
Chapter 1: Introduction
HND Agri DBMS Introduction MH Mohamed Nafas 1. Why DBMS? 2  Suppose we need to develop a Information system.  How do we  store the data? (use file.
Chapter 1 Introduction Yonsei University 1 st Semester, 2015 Sanghyun Park.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Chapter 1 Introduction Yonsei University 1 st Semester, 2014 Sanghyun Park.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Chapter 1: Introduction. Purpose of Database Systems Database Languages Relational Databases Database Design Data Models Database Internals Database Users.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
CPT-S Advanced Databases 11 Yinghui Wu EME 49.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module 1: Introduction.
1.1Database System Concepts - 6 th Edition Chapter 1: Introduction Purpose of Database Systems View of Data Database Languages Relational Databases Database.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Lecture on Database Management System
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Introduction To DBMS.
Database System Concepts
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Terms: Data: Database: Database Management System: INTRODUCTION
Chapter 1: Introduction
Presentation transcript:

Chapter 1: Introduction to DBMS & Databases

Database Management System (DBMS) What is a DBMS? What are some examples of Database Applications?

Database Management System (DBMS) Database contains information about a particular enterprise Collection of interrelated data/information with longevity. Set of programs to access the data An environment that is both convenient and efficient to use Database Examples: Banking: transactions Airlines: reservations, schedules Universities: registration, grades Sales: customers, products, purchases Online retailers: order tracking, customized recommendations Manufacturing: production, inventory, orders, supply chain Human resources: employee records, salaries, tax deductions Databases touch all aspects of our lives

University Database Example What are some examples of Application program? In the early days, database applications were built directly on top of file systems

University Database Example Application program examples Add new students, instructors, and courses Register students for courses, and generate class rosters Assign grades to students, compute grade point averages (GPA) and generate transcripts In the early days, database applications were built directly on top of file systems What would be some of the disadvantages of such a strategy?

Drawbacks of File Systems Data redundancy and inconsistency  Multiple file formats, duplication of information in different files Difficulty in accessing data  Need to write a new program to carry out each new task Data isolation — multiple files and formats 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

Drawbacks of File Systems 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 Concurrency  Concurrent access needed for performance  Uncontrolled concurrent accesses can lead to inconsistencies – Example: Two people reading a balance (say 100) and updating it by withdrawing money (say 50 each) at the same time Security  Hard to provide user access to some, but not all, data Database systems offer solutions to all the above problems

DBMS Database Management System: Sophisticated software ~ evolved over ½ century or more.  DBMS allow one to build & use databases – Their schema; add/maintain data: data definition language (DDL). Run queries: Data manipulation language (DML) – Notion of ‘transaction’ – Assure durability, concurrency with a scheduler, proper access authorizations, proper logs, ensure recoverability, buffer management, interface with OS, maintaining indexes. – ACID: Atomicity, consistency, isolation, durability. Social Media Systems Netflix, twitter, Google, Yahoo!, YouTube, satellite data feeds….. Cloud Databases: Amazon SimpleDB: Key – value (noSQL) system & Amazon relational system (MySQL). Not only SQL. Weaker consistency requirements, adds horizontal scaling. ACID versus BASE: Basic availability, soft-state, eventual consistency.

Data Models What is a Data Model? And why have these?

Data Models A collection of tools for describing Data Data relationships Data semantics Data constraints Relational model Entity-Relationship data model (mainly for database design) Object-based data models (Object-oriented and Object-relational) Semistructured data model (XML) Other older models: Network model Hierarchical model Beginnings of a relational schema:  Customer (id, address info); Balance (id, amount)  How does this database look?

Query Processing 1.Parsing/translation (tree) & preprocess: (semantics) 2.Optimization 3.Evaluation

Query Processing Alternate ways of evaluating a given query Equivalent expressions  Customer (id, address info); Balance (id, amount)  Print addresses of customers with balance > 2000 Different algorithms for each operation  How many seeks? Get to first block; transfer data. Data not contiguous? (more seeks).  Using an index? Binary search? Cost difference between good and bad way of query evaluation can be enormous Need to estimate cost of operations  Statistical information about relations which a database maintains – buffer (logs, statistics, indexes and data of course).  Estimates for complex expressions

Transaction Management What if the system fails? What if more than one user is concurrently updating the same data? A transaction is a collection of operations that performs a single logical function in a database application. Read (A); A = A + 50; Write (A); Read (B); B = B - 50; Write (B); Logging, lock tables, deadlock detection & resolution. How do you ensure durability? Security? Recovery?

History of Database Systems 1950s and early 1960s: Data processing using magnetic tapes for storage  Tapes provided only sequential access Punched cards for input Late 1960s and 1970s: Hard disks allowed direct access to data Network and hierarchical data models in widespread use Ted Codd defines the relational data model in 1970  Would win the ACM Turing Award for this work  IBM Research begins System R prototype  UC Berkeley begins Ingres prototype High-performance (for the era) transaction processing

History (cont.) 1980s: Research relational prototypes evolve into commercial systems  SQL becomes industrial standard Parallel and distributed database systems Object-oriented database systems 1990s: Large decision support and data-mining applications Large multi-terabyte data warehouses Emergence of Web commerce Early 2000s: XML and XQuery standards Automated database administration Later 2000s: Giant data storage systems  Google BigTable, Yahoo PNuts, Amazon,..