Elena Baralis and Tania Cerquitelli 2013 Politecnico di Torino 1

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

1 File Processing Systems

Introduction to Databases

Overview of Database Management Systems

Chapter 2 Database System Concepts and Architecture

COMPONENTS in a database environment

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

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

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

ECS 165A: Introduction to Database Systems

Relational Database Basics Review

Database Management. Chapter Objectives

1. Relational database accesses data in a sequential form. (Figures 7.1, 7.2)


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

Introduction to Database Systems

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

DATABASE MANAGEMENT SYSTEMS. Question Bank:

FROM RELATIONAL TO OBJECT DATABASE MANAGEMENT SYSTEMS

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

Overview of Data Management

Object Oriented Databases. OOAD Fall 2012 Arjun Gopalakrishna Bhavya Udayashankar

CHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY

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

Databases What the Specification Says

Database Management Systems. Chapter 1

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

Database Management Systems

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

Introduction: Database management system

IT2305 Database Systems I (Compulsory)

COMP5138 Relational Database Management Systems. Databases are Everywhere!

DATABASE SYSTEM CONCEPTS AND ARCHITECTURE CHAPTER 2

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

Chapter 13 File and Database Systems

Chapter 13 File and Database Systems

Module 3: File and database organization

IT2304: Database Systems 1 (DBS 1)

Oracle USF

Fundamentals of Database Design

Overview of Database Management

Database Administrator [DBA]

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

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

1. INTRODUCTION TO RDBMS

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

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

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

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

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

Course MIS. Foundations of Business Intelligence

Database Programming with PL/SQL: Learning Objectives

Principles of Database. Management: Summary

Data Modeling Basics

SQL Simple Queries. Chapter 3.1 V3.0. Napier University Dr Gordon Russell

Chapter 6 FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Learning Objectives

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

Chapter 1: Introduction

Oracle Database 10g: Introduction to SQL

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

Basic Concepts of Database Systems

COMHAIRLE NÁISIÚNTA NA NATIONAL COUNCIL FOR VOCATIONAL AWARDS PILOT. Consultative Draft Module Descriptor. Relational Database

Foundations of Business Intelligence: Databases and Information Management

Alexander Nikov. 5. Database Systems and Managing Data Resources. Learning Objectives. RR Donnelley Tries to Master Its Data

1 Database Systems. Computers are now used in almost all aspects of human activity. One of their main. 1.1 The Main Principles

University Data Warehouse Design Issues: A Case Study

Introduction. Chapter 1. Introducing the Database. Data vs. Information

DATABASE MANAGEMENT SYSTEM

Conventional Files versus the Database. Files versus Database. Pros and Cons of Conventional Files. Pros and Cons of Databases. Fields (continued)

Database as a Service (DaaS) Version 1.02

When to consider OLAP?

Chapter 1 Databases and Database Users

Comparing SQL and NOSQL databases

2) What is the structure of an organization? Explain how IT support at different organizational levels.

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

Introduction to Databases

Introduction to Computing. Lectured by: Dr. Pham Tran Vu

CSE 132A. Database Systems Principles

Database Systems. Lecture 1: Introduction

Logi Ad Hoc Reporting System Administration Guide

What is Data Virtualization? Rick F. van der Lans, R20/Consultancy

Chapter 1: Introduction. Database Management System (DBMS)

Database Management System

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

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

CSE 233. Database System Overview

Database Design Process. Databases - Entity-Relationship Modelling. Requirements Analysis. Database Design

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

Chapter 1: Introduction

7. Databases and Database Management Systems

Module 9. User Interface Design. Version 2 CSE IIT, Kharagpur

Chapter 1 - Database Systems

DB2 - DATABASE SECURITY

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

Database Design and Database Programming with SQL - 5 Day In Class Event Day 1 Activity Start Time Length

Foundations of Business Intelligence: Databases and Information Management

Chapter 9 Political Enterprise Database Management System (PDBHS or PEDBHS)

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

Overview RDBMS-ORDBMS- OODBMS

Foundations of Business Intelligence: Databases and Information Management

Transcription:

Databases Databases Data model Data access Advantages and disadvantages of DBMS Unit 1 Introduction DB M BG2 Information is recorded and exchanged in different forms D B M G4 Information is recorded and exchanged in different forms Forms of information organization and codification have been introduced over time D M B BNCLCU79M44A488D G5 Computer systems In computer systems information is represented by means of data the data are rough symbols which have to be interpreted and correlated to provide information example data: Mario Rossi and 424242 information: result of looking up a telephone number in your personal telephone directory (e.g., list of contacts) DB M BG6 2013 Politecnico di Torino 1

Data characteristics Data are far more stable over time than the processes that manage them Example there have been no variations in the structure of bank applications data for decades the procedures that manage the data vary from year to year Data are an important resource of the organization that manages them DB M BG7 Databases Database (General definition) a database is a collection of data that represents information interesting for a computer system ( Technical definition) a database is a collection of data managed by a DBMS Data Base Management System - DBMS A DBMS (DataBase Management System) is a software system able to manage collections of data that are large shared persistent ensuring their reliability and privacy DB M BG9 DB M BG10 DBMS characteristics Far greater dimensions than the main memory available data management in secondary memory Data sharing between applications and users: a database is an integrated resource, shared by several company sectors reduction of data redundancy reduction of data inconsistency competing access control mechanism DBMS characteristics Data persistence lifetime not limited to execution of programmes that use them Data reliability in the case of hardware and software malfunction/failure backup and recovery functionality Data privacy authorization mechanisms to enable users DB M BG11 DB M BG12 2013 Politecnico di Torino 2

DBMS characteristics DBMS or file system? Efficiency capacity to carry out operations using a set of resources (time and space) acceptable for users Adequately sized computer system Efficacy capacity to render user activities productive Simplified approach to data: data stored in the persistent mode in the mass/secondary memory inside the file it is possible to memorize and look for data simple access mechanisms (sequential reading) simple sharing mechanisms (read only sharing with writing options blocked) DBMS extend the functionalities of the file systems, providing more integrated services DB M BG13 DB M BG14 Data model A data model is a set of concepts utilized for organizing data of interest and describing its structure in a way that is understood by a computer elementary data types (integer, character...) structuring mechanism for defining more complex structures (record builder, array,...) Data model DB M BG16 Relational model Relational model Most widespread data model Defines the relationships builder, which organizes the data into sets of homogeneous (fixed structure) records The relationships are represented as tables Courses Code Name TeacherID M2170 Information systems D101 M4880 Computer Networks D102 F0410 Databases D321 Teacher ID Name Department Phone# D101 Green Computer Engeneering 123456 D102 White Telecommunications 636363 D321 Black Computer Engeneering 414243 DB M BG17 2013 Politecnico di Torino 3

Other data models Before the relational model, other models closer to the physical (not very abstract) structures of storing were used hierarchical model network model Since the relational model Object model XML Schema and instances Defined in the database are the schema, which describes the structure of the data. The schema is practically unvarying over time is represented by the heading of each table (table name and column names) Example schema of the database Courses Code Name TeacherID Teacher ID Name Department Phone# DB M BG19 DB M BG20 Schema and instances Defined in a database are the instance, composed of the content of each table, i.e. of the data effective values which are variable over time, also very rapidly represented by the rows in the tables Example instance of the Teacher table D101 Green Computer Engeneering 123456 D102 White Telecommunications 636363 D321 Black Computer Engeneering 414243 D B M G21 Model types Conceptual model It is possible to represent data independently from the logical describes real world concepts used in the designing phase example: entity-relationship model Logical model Describes the data structure in the DBMS used by the programmes accessing the data independent from the physical structures DB M B Example: relational model G22 Abstraction levels in a DBMS Standard three-level ANSI/SPARC architecture for DBMS Logical schema Internal schema Logical schema description of the database using the logical model of the DBMS Internal schema representation of the logical schema using physical storing structures description of parts of the database, called views, which reflect the point of view of particular users defined on the logical model DB M BG23 BD DB M BG24 2013 Politecnico di Torino 4

guarantees that users and application programmes which utilize a database can ignore the designing details used in the construction of the database It is a consequence of the subdivision into levels of abstraction DB M BG26 Physical independence enables interaction with the DBMS independently from the physical structure of the data access to a (logical or external level) relationship always takes place in the same way, independently from the means of memorization it is possible to change the way the data is physically memorized without affecting the programmes utilizing the data Logical independence enables interaction with the external level independently from the logical level it is possible to change the logical level maintaining the external structures unaltered (as long as the correspondences are unaltered) it is possible to add new views or alter existing views without changing the logical schema DB M BG27 DB M BG28 Data access languages Data access User-friendly interfaces that enable specific queries without using a textual language Interactive languages (SQL) Commands similar to interactive commands introduced into traditional programming languages (C, C++, COBOL, Java, ), so-called host languages Commands similar to interactive commands introduced into ad hoc development languages, often with specific functionalities (generation of graphics, complex prints, screens) DB M BG30 2013 Politecnico di Torino 5

Data access languages SQL language is divided into two categories Data Definition Languages (DDL) used to define the logical, external and physical schemas, and access authorizations Data Manipulation Languages (DML) used for querying and updating database instances Database administrator: in charge of (centralized) control and management of the database guarantees sufficient performance ensures system reliability manages authorizations and access to data DB M BG31 DB M BG32 Designers and programmers: they define and realize the structure of the database the programmes accessing the database : utilize the database for their activities end users: they use transactions, i.e. programmes that carry out predefined activities casual users: they formulate queries (or updates) which are not predefined by the interactive access languages of the database DB M BG33 Transactions Programmes that carry out frequent predefined activities Examples flight bookings bank transfers Generally realized by introducing SQL into a host language DB M BG34 DBMS advantages Data as a common resource of the whole organization reduction of redundancies and inconsistencies Unified and precise data model of facts of interest to the organization Possible centralized control of data standardization, economies of scale Advantages and disadvantages of DBMS DB M BG36 2013 Politecnico di Torino 6

DBMS disadvantages These are expensive, complex products that require direct investment purchase of the product indirect investments purchase of the necessary hardware and software resources conversion of the applications training of personnel They provide a set of services in an integrated form it is not possible to separate out unused services DB M BG that cause a reduction in performance G37 2013 Politecnico di Torino 7