Database System Concepts and Architecture

Slides:



Advertisements
Similar presentations
Database Environment Pertemuan 02 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
Advertisements

Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
Introduction to Databases
Introduction to Databases
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
1 Pertemuan 02 Database environment Matakuliah: >/ > Tahun: > Versi: >
Chapter 2 Database Environment.
Introduction to Databases Transparencies
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Chapter 1 INTRODUCTION TO DATABASE.
Chapter 2 Database Environment Pearson Education © 2014.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Lecture Two Database Environment Based on Chapter Two of this book:
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Introduction to Databases
Introduction to Database Systems 1.  Assignments – 3 – 9%  Marked Lab – 5 – 10% + 2% (Bonus)  Marked Quiz – 3 – 6%  Mid term exams – 2 – (30%) 15%
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Module Title? DBMS Introduction to Database Management System.
Chapter 2 CIS Sungchul Hong
CSC271 Database Systems Lecture # 4.
Database Environment Chapter 2 AIT632 Sungchul Hong.
Introduction: Databases and Database Users
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 2 Database System Concepts and Architecture.
1 Chapter 1 Introduction to Databases Transparencies Last Updated: Pebruari 2010 By M. Arief Updated by RSO Feb 2011
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 1 Introduction to Databases © Pearson Education Limited 1995, 2005.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
Database Environment Session 2 Course Name: Database System Year : 2013.
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
1 Chapter 1 Introduction to Databases Transparencies.
1 Lecturer M.Eng. Nguyen Ngo Bao Tran URL:
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
Chapter 2 Database Environment.
1 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data. u A user’s view is immune to changes.
1 Chapter 2 Database Environment Pearson Education © 2009.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Postgraduate Module Enterprise Database Systems Technological Educational Institution of Larisa in collaboration with Staffordshire University Larisa
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Introduction to Databases Transparencies
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Introduction to Databases
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Chapter 2 Database Environment.
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases
Introduction to Databases
Introduction to Databases
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Introduction to Databases
Database Environment Transparencies
Introduction to Databases
Introduction to Databases
Introduction to Databases Transparencies
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Database System Concepts and Architecture

Outline File-based Approach Database Approach Database Systems Roles in the Database Environment DBMSs Three-Schema Architecture and Data Independence Database Languages Data Models, Database Schema and Database State Data Management Systems Framework Where are we? Extending database capabilities for new applications Reading Suggestion: [1,2]: Chapters 1, 2 ) 2

File-based Approach Data is stored in one or more separate computer files Data is then processed by computer programs - applications 3

File-based Approach 4

File-based Approach Problems/Limitations Data Redundancy Data Inconsistency More details: see [2] 5

File-based approach Shared file approach 6

File-based Approach Shared File Approach Data (files) is shared between different applications Data redundancy problem is alleviated Data inconsistency problem across different versions of the same file is solved Other problems: Rigid data structure: If applications have to share files, the file structure that suits one application might not suit another Physical data dependency: If the structure of the data file needs to be changed in some way, this alteration will need to be reflected in all application programs that use that data file No support of concurrency control: While a data file is being processed by one application, the file will not be available for other applications or for ad hoc queries 7

Outline File-based Approach Database Approach Database Systems Roles in the Database Environment DBMSs Three-Schema Architecture and Data Independence Database Languages Data Models, Database Schema and Database State Data Management Systems Framework Where are we? Extending database capabilities for new applications Reading Suggestion: [1,2]: Chapters 1, 2 8

Database Approach Arose because: Result: Definition of data was embedded in application programs, rather than being stored separately and independently No control over access and manipulation of data beyond that imposed by application programs Result: The Database and Database Management System (DBMS). 9

Database Approach 10

Database Approach Data Known facts that can be recorded and that have implicit meaning Information? Knowledge? More: www.whatis.com Database: Shared collection of logically related data and a description of this data, designed to meet the information needs of an organization 11

Database Approach System catalog (metadata) provides description of data to enable program–data independence Logically related data comprises entities, attributes, and relationships of an organization’s information DataBase Management System (DBMS): a general-purpose software system that facilitates the processes of defining, constructing, manipulating, and sharing databases among various users and applications (or a software system that enables users to define, create, maintain, and control access to the database) 12

Database Approach Data Definition Language (DDL) Permits specification of data types, structures and any data constraints to be stored in the database All specifications are stored in the database Data manipulation language (DML). Query language: retrieve (query), update (insert, delete, modify) Controlled access to database may include: a security system an integrity system a concurrency control system a recovery control system a user-accessible catalog Database System = the Database + DBMS software 13

Database Approach Roles in the Database Environment Database Administrator (DBA): responsible for authorizing access to DB, coordinating & monitoring its use, and for acquiring software and hardware resources as needed Database Designers: responsible for identifying the data to be stored in DB, choosing appropriate structures to represent and store this data Application Programmers End Users More details: see [1,2]-chapter 1

Database Approach DBMS components: see [1,2] for the details 15

Database Approach Characteristics of the Database Approach Self-describing nature of a database system Insulation between programs and data, and data abstraction Program-data independence + Program-operation independence = Data abstraction A data model is a type of data abstraction Support of multiple views of the data Sharing of data and multi-user transaction processing Other advantages of using the DBMS approach: see [1]-1.6 Self-describing nature of a database system: metadata Program-data independence: structure data file, form access program. Program-operation independence : function and parameters 16

Database Approach History of database systems First generation: Hierarchical and Network Second generation: Relational Third generation: Object-Relational, Object-Oriented Brief history of database applications see [1]-section 1.7 Flat-File Databases: Data is stored in files consisting of one or more readable files, usually in text format. Hierarchical Databases: Data is stored in tables with parent/child relationships with a strictly hierarchical structure. Network Databases: Similar to the hierarchical model, but allows more flexibility; for example, a child table can be related to more than one parent table. Object-Oriented Databases: The object-oriented database model was developed in the late 1980s and early 1990s to deal with types of data that the relational model was not well-suited for. Medical and multimedia data, for example, required a more flexible system for data representation and manipulation. Object-Relational Databases: A hybrid model, combining features of the relational and object-oriented models. 17

Example of Network Model Schema

Example of Relational Model Schema

Outline File-based Approach Database Approach Database Systems Roles in the Database Environment DBMSs Three-Schema Architecture and Data Independence Database Languages Data Models, Database Schema and Database State Data Management Systems Framework Where are we? Extending database capabilities for new applications Reading Suggestion: [1,2]: Chapters 1, 2 20

Three-Schema Architecture and Data Independence Objectives of Three-Schema Architecture All users should be able to access same data Users should not need to know physical database storage details DBA should be able to change database storage structures without affecting the users’ views Internal structure of database should be unaffected by changes to physical aspects of storage DBA should be able to change conceptual structure of database without affecting all users 21

Three-Schema Architecture and Data Independence Three-level architecture and data independence 22

Three-Schema Architecture and Data Independence External Level Users’ view of the database Describes that part of database that is relevant to a particular user Conceptual Level Community view of the database Describes what data is stored in database and relationships among the data 23

Three-Schema Architecture and Data Independence Internal Level Physical representation of the database on the computer. Describes how the data is stored in the database 24

Three-Schema Architecture and Data Independence 25

Three-Schema Architecture and Data Independence Data Independence is the capacity to change the schema at one level of a database system without having to change the schema at the next higher level Logical Data Independence Refers to immunity of external schemas to changes in conceptual schema Conceptual schema changes (e.g. addition/removal of entities) should not require changes to external schema or rewrites of application programs 26

Three-Schema Architecture and Data Independence Physical Data Independence Refers to immunity of conceptual schema to changes in the internal schema Internal schema changes (e.g. using different file organizations, storage structures/devices) should not require changes to conceptual or external schemas 27

Three-Schema Architecture and Data Independence 28

Outline File-based Approach Database Approach Database Systems Roles in the Database Environment DBMSs Three-Schema Architecture and Data Independence Database Languages Data Models, Database Schema and Database State Data Management Systems Framework Where are we? Extending database capabilities for new applications Reading Suggestion: [1,2]: Chapters 1, 2 29

Database Languages Data Definition Language (DDL) allows the DBA or user to describe and name entities, attributes, and relationships required for the application plus any associated integrity and security constraints Data Manipulation Language (DML) provides basic data manipulation operations on data held in the database Data Control Language (DCL) defines activities that are not in the categories of those for the DDL and DML, such as granting privileges to users, and defining when proposed changes to a databases should be irrevocably made 30

Database Languages Procedural DML allows user to tell system exactly how to manipulate data (e.g., Network and hierarchical DMLs) Non-Procedural DML (declarative language) allows user to state what data is needed rather than how it is to be retrieved (e.g., SQL, QBE) Fourth Generation Languages (4GLs) Non-procedural languages: SQL, QBE, etc. Application generators, report generators, etc. (see [2]) 31

Outline File-based Approach Database Approach Database Systems Roles in the Database Environment DBMSs Three-Schema Architecture and Data Independence Database Languages Data Models, Database Schema and Database State Data Management Systems Framework Where are we? Extending database capabilities for new applications Reading Suggestion: [1,2]: Chapters 1, 2 32

Data Models, Database Schema and Database State Data Model: An integrated collection of concepts for describing data, relationships between data, and constraints on the data in an organization Categories of data models include: Object-based (Conceptual) ER, Object-Oriented, … Record-based (Representational) Relational, Network, Hierarchical Physical: used to describe data at the internal level Describe data at the conceptual & external levels 33

Data Models, Database Schema and Database State Database Schema: the description of a database, which is specified during database design and is not expected to change frequently Schema Diagram: a displayed schema Database State (Snapshot): the data in the database at a particular moment in time 34

Outline File-based Approach Database Approach Database Systems Roles in the Database Environment DBMSs Three-Schema Architecture and Data Independence Database Languages Data Models, Database Schema and Database State Data Management Systems Framework Where are we? Extending database capabilities for new applications Reading Suggestion: [1,2]: Chapters 1, 2 35

Data Management Systems Framework Where are we? Visualization, Collaborative Computing, Mobile Computing, Knowledge-based Systems Layer 3: information extraction & sharing Data Warehousing, Data Mining, Internet DBs, Collaborative, P2P & Grid Data Management Layer 2: interoperability & migration Heterogeneous DB Systems, Client/Server DBs, Multimedia DB Systems, Migrating Legacy DBs Layer 1: DB technologies DB Systems, Distributed DB Systems Networking, Mass Storage, Agents, Grid Computing Infrastructure, Parallel & Distributed Processing, Distributed Object Management Data Management Layer Application Layer Supporting Layer 36

Data Management Systems Framework Extending database capabilities for new applications Example applications: storage and retrieval of images, videos, data mining (large amounts of data need to be stored and analyzed), spatial databases, time series applications, … More complex data structures than relational representation New data types except for the basic numeric and character string types New operations and query languages for new data types New storage and retrieval methods New security mechanisms … 37

Summary File-based Approach Database Approach Three-Schema Architecture and Data Independence Database Languages Data Models Database Schema and Database State Data Management Systems Framework (where are we?) Next week: ER Model 38

Q&A Question ? 39