Principles of Database. Management: Summary



Similar documents
1 File Processing Systems

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

Database Administrator [DBA]

ECS 165A: Introduction to Database Systems

COMP5138 Relational Database Management Systems. Databases are Everywhere!

Chapter 2 Database System Concepts and Architecture

Introduction to Database Systems

DATABASE SYSTEM CONCEPTS AND ARCHITECTURE CHAPTER 2

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

Database Management. Chapter Objectives

Chapter 1: Introduction

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

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

Overview of Data Management

Overview of Database Management

Chapter 1 Databases and Database Users

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

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

CSE 132A. Database Systems Principles

Database System Concepts

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

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

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

Transactions and the Internet

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

Introduction: Database management system

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

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

Introduction to Database Systems CS4320. Instructor: Christoph Koch CS

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

Introduction to database management systems

Chapter 1: Introduction

Chapter 1: Introduction. Database Management System (DBMS)

Relational Database Systems 2 1. System Architecture

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

Database Management Systems. Chapter 1

Foundations of Information Management

Introduction to Databases

Relational Database Basics Review

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur

Overview of Database Management Systems

DATABASE MANAGEMENT SYSTEM

COIS Databases

Logistics. Database Management Systems. Chapter 1. Project. Goals for This Course. Any Questions So Far? What This Course Cannot Do.

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

David Dye. Extract, Transform, Load

Basic Concepts of Database Systems

Concepts of Database Management Seventh Edition. Chapter 7 DBMS Functions

Transactions and Recovery. Database Systems Lecture 15 Natasha Alechina

Databases. DSIC. Academic Year

COMPONENTS in a database environment

CSE 233. Database System Overview

ORACLE DATABASE 11G: COMPLETE

INTRODUCTION TO DATABASE SYSTEMS

FROM RELATIONAL TO OBJECT DATABASE MANAGEMENT SYSTEMS

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

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

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

Database Management. Technology Briefing. Modern organizations are said to be drowning in data but starving for information p.

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

Database Systems Introduction Dr P Sreenivasa Kumar

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

Database Systems. Lecture 1: Introduction

Database Management Systems

Oracle Architecture, Concepts & Facilities

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

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

The Import & Export of Data from a Database

Chapter 10 Practical Database Design Methodology and Use of UML Diagrams

2. Background on Data Management. Aspects of Data Management and an Overview of Solutions used in Engineering Applications

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

Data Modeling Basics

1.264 Lecture 15. SQL transactions, security, indexes

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

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

DATABASES AND DATABASE USERS

Data Modeling and Databases I - Introduction. Gustavo Alonso Systems Group Department of Computer Science ETH Zürich

DATA BASE.

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus sandhaus@cs.nyu.edu evan@nytimes.com

Lesson 8: Introduction to Databases E-R Data Modeling

Author: Abhishek Taneja

Modern Databases. Database Systems Lecture 18 Natasha Alechina

CHAPTER. Jones & Bartlett Learning, LLC NOT FOR SALE OR DISTRIBUTION. Database Planning and Database Architecture

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

5.5 Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall. Figure 5-2

Introductory Concepts

The core theory of relational databases. Bibliography

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

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives

Foundations of Business Intelligence: Databases and Information Management

Databases and BigData

Concepts of Database Management Seventh Edition. Chapter 9 Database Management Approaches

Foundations of Information Management

Course Notes on A Short History of Database Technology

Course Notes on A Short History of Database Technology

BCA. Database Management System

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

Transcription:

Principles of Database Management: Summary Pieter-Jan Smets September 22, 2015

Contents 1 Fundamental Concepts 5 1.1 Applications of Database Technology.............................. 5 1.2 Definitions............................................. 5 1.3 File Vs Database Approach to Data Management....................... 5 1.4 Elements of a Database System................................. 5 1.4.1 Data Model........................................ 5 1.4.2 Schemas and Instances.................................. 6 1.4.3 The Three-Scheme Architecture............................. 6 1.4.4 Data Dictionary (Catalog)................................ 6 1.4.5 Database Users...................................... 6 1.4.6 DBMS Languages.................................... 6 1.5 Advantages of Database Using Design............................. 6 2

List of Figures 3

Preface This is a summary of the course Principles of Database Management (D0I62A), taught at the Catholic University of Leuven in the academic year 2015-2016. It is based on the lectures given by professor Baesens and Lemahieu, the online lectures 1 and the quiz questions that were seen in class. Feel free to redistribute this to other people, but I ask you not to sell it. This Summary is hosted on github 2 and an up-to date version can always be downloaded at https: //www.sharelatex.com/github/repos/kulsummaries/principlesofdbmgmt. 1 https://www.youtube.com/playlist?list=pldqddgmbv5zehlpqdiucf9atnetmesgyl 2 https://github.com/kulsummaries/principlesofdbmgmt 4

1 Fundamental Concepts 1.1 Applications of Database Technology Data is everywhere these days, in different formats and sizes. All of them have to be stored one way or another. numeric and alphanumeric data multimedia data (pictures, audio, video s,... ) biometric data gegraphical data volatile data (high frequency trading software) web content (XML, HTML, PDF,... ) storing large datasets for analytics 1.2 Definitions Database collection of related data, within a specific setting and with a target group of users and applications. DBMS a software package that allows to define, store, use and maintain a DB. It is often modular. Database System a combination of a DB and DBMS. 1.3 File Vs Database Approach to Data Management It used to be so that different applications saved their data in their own, separate files. This was bad for numerous reasons: waste of disk space because of redundant storage of data. the redundant data could lead to inconsistencies. there was a strong dependancy between applications and the data. A change in how the data was stored in the file, or the data definitions would would lead to the application having to change too. concurrency control is hard. it is difficult to integrate different applications. DB technology solves this. The DBMS stores the data centrally and acts as an interface to the data for the applications. This centrally stored data can be accessed with SQL, which further eases access to the data. There s no more need to work with files in your code. Also the data definitions are stored in the DBMS and no longer defined in every single application. Add table from slides 1.4 Elements of a Database System 1.4.1 Data Model Definition: a clear description of the data concepts, their relationships and various data constraints that together make up the content of the database. There are various types of data models: Conceptual: high-level description of data concepts and relationships. Used for communication between DB designer and business users. conceptual models are implementation-independant and close to how the business user perceives the data. Examples of a conceptual model are EER s and object-oriented models. Logical: mapping of the conceptual model to a specific implementation(network, relational, hirarchical,... ) Physical: describes how the data is physically stored. 5

1.4.2 Schemas and Instances In data models it is important to distinguish between the description of the data and the actual data itself. This difference is expressed in two concepts: DB Scheme description of data, specified during DB design and stored in the catalog. DB State how the data looks like at a given moment in time. 1.4.3 The Three-Scheme Architecture This architecture is an essential element of any DB environment. add figure from slides In the middle we find the conceptual scheme, which focuses on DB concepts like relationships and constraints, regardless of implementation. It s later mapped to the logical/internal schema. The top level has the external views. These views are tailored to the needs of a certain application or user that uses (part of) the data in the DB. So in essence, the three schema s are: external, conceptual and internal. Ideally, a change in any of those does not impact the other layers. is logical shema = internal schema? 1.4.4 Data Dictionary (Catalog) The catalog is the heart of a DBMS. It is where all the data definitions(metadata) are stored. It stores definitions from all three layers in the three-scheme architecture and keeps them synchronised. This way they re always consistent. 1.4.5 Database Users DB Designer designs conceptual and logical schema. DB Administrator (DBA) designs external and physical schema. Application Developer uses the DB and its data to create software. Business User uses applications to access the data. DBMS Vendors sell DBMS systems. 1.4.6 DBMS Languages DDL Data Definition Language. Used by DBA to define DB s logical, internal and external schema s. (stored in catalog) DML Data Manipulation Language. Used for CRUD, interactively or from another programming language. SQL Structured Query Language. Both a DDL AND DML for relational DB s. 1.5 Advantages of Database Using Design data and functional independence: changes in data definitions have minimal impact on the applications using the data. logical data independence: software apps are minimally impacted by changes in the conceptual schema. (e.g. new relationships) functional independence: when a stored function s method changes, the sofware using this method still works. DB modeling: data model = explicit representation of data concepts. managin data redundancy: sometimes redundancy is useful and some DBMSes have built-in functionality to keep redundant data syncronised so that the redundancy doesn t lead to inconsistency. 6

specifying integrity rules: both semantic and syntactical rules can be stored in the catalog. This way they re always enforced, regardless from which application uses the data. These rules are called integrity rules. concurrency control: most DBMSes have a system of transactions. These are a sequence of reads and writes that are executed as one atomic transaction. These transactions are ACID (Atomicicty, Consistency, Isolation, Durability). data security: DBMSes allow for user level access control to enhance security. These authorization rules are stored in the catalog. backup and recovery facilities: DBMSes have backup and restore functionality. performance utilities: indices, distributed data storage,... 7