Databases and DBMSs Todd S. Bacastow January 2005.

Slides:



Advertisements
Similar presentations
Database System Concepts and Architecture
Advertisements

Chapter 2 Database System Concepts and Architecture
Chapter 2 Database Environment.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Chapter 2 Database Environment Pearson Education © 2014.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Overview of Database Languages and Architectures.
Database System Concepts and Architecture Dr. Ali Obaidi.
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Database System Concepts and Architecture
Chapter 2 CIS Sungchul Hong
CSC271 Database Systems Lecture # 4.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
2. Database System Concepts and Architecture
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 2 Database System Concepts and Architecture.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
1 Database Management Systems (DBMS). 2 Database Management Systems (DBMS) n Overview of: ä Database Management Components ä Database Systems Architecture.
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
DataBase System Concepts and Architecture
Database Design Chapter-2- Database System Concepts and Architecture
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Chapter 2 Database Environment.
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
1 Database Design Chapter-2- Database System Concepts and Architecture Reference: Prof. Mona Mursi Lecture notes.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Copyright © 2011 Ramez Elmasri and Shamkant Navathe Chapter 2 Database System Concepts and Architecture.
College of Arts & Science Computer Science Department
Chapter (2) Database Systems Concepts and Architecture Objectives
Introduction to DBMS Purpose of Database Systems View of Data
Databases (CS507) CHAPTER 2.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Introduction to Databases
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Database Management.
Chapter 2: Database System Concepts and Architecture - Outline
Chapter (2) Database Systems Concepts and Architecture Objectives
Chapter 2 Database Environment.
Chapter 2 Database System Concepts and Architecture
Database System Concepts and Architecture
Database System Concepts and Architecture
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Introduction to Databases
11/9/2018.
Introduction to Databases
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2: Database System Concepts and Architecture
Introduction to Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data, Databases, and DBMSs
Database Environment Transparencies
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Databases
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 1: Introduction
Chapter 1: Introduction
Database System Concepts and Architecture
5/8/2019.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Database System Concepts and Architecture
Presentation transcript:

Databases and DBMSs Todd S. Bacastow January 2005

A Process of Mapping Real World Conceptual Data Model Logical Physical Data Model High level model Comprises “Things” “Descriptions” “How things are connected” Relational Hierarchical Network Object Oriented

Data Models A data model describes the structure of a database data types, relationships, constraints a set of basic operations insert, delete, modify, retrieve user-defined operations

Types of Data Models Conceptual Logical Physical concepts: entity, attribute, relationship Entity-Relationship model (DBMS-independent) Logical data represented by record structure E.g. relational, network, hierarchical Physical describes how data is stored in the disk

DBMS Architecture External Level External View External View Conceptual Level Conceptual Schema Internal Level Internal Schema

Conceptual Schema Internal Schema External View External Level Describes a part of the database for a particular user group and hides the rest Supports multiple views of a database Same data model as the conceptual schema External Level External View

Conceptual Level Data Abstraction Conceptual Level Conceptual Schema Internal Schema External View Conceptual Level Data Abstraction hides unnecessary details Conceptual Level hides physical layer Data types, Constraints, User Operations Uses both conceptual/logical data models Conceptual Level Conceptual Schema

Internal Level Defines physical storage on the disk Conceptual Schema Internal Schema External View Internal Level Defines physical storage on the disk Defines data location path, blocks, pages, … Device specific STORED_EMP BYTES=20 PREFIX BYTES=20, OFFSET=0 EMP# BYTES=20, OFFSET=6, INDEX=EMPX DPET# BYTES=20, OFFSET=12 PAY BYTES=20, OFFSET=16, ALIGN=FULLWORD Internal Level Internal Schema

DB Schema vs. DB State Database Schema description of the database is specified during database design Database State (extension of the schema) current state of the database: a snapshot actual data instances in a DB changes over time by update initially, a database is empty state with no data

DB Schema vs. DB State Valid State Schema Diagram DBMS checks every state of the database does it satisfy the structure and constraints specified in the schema? Schema Diagram Displays database schema

Example Schema

Designer Goal : develop a schema that changes infrequently Database Schema Metadata descriptions of the schema constructs and constraints stored in the database catalog Schema Evolution Schema change prompted by the change of application requirements

DBMS Mapping Mappings for multi-level DBMS Three-Schema Architecture Conceptual Schema Internal Schema External View DBMS Mapping Mappings for multi-level DBMS to transform a request specified at one level into the request at another level access: external  conceptual  internal  DB retrieve: DB  internal  conceptual  external Three-Schema Architecture advantage: true data independence disadvantage: overhead cost of mappings

Data Independence What happens when the schema changes at some level? the capacity to change the schema at one level without having to change the schema at the next higher level Two Types of Data Independence logical and physical data independence

Data Independence (con’t) 1. Logical Data Independence capacity to change the conceptual schema without having to change the external schema when: logical reorganization of the database 2. Physical Data Independence change the internal schema without having to change the conceptual schema when: physical reorganization of the files

DBMS Languages Data Definition Language (DDL) to define DB conceptual schema Data Manipulation Language (DML) to specify database requests: update, retrieval high-level DML: describes which data to retrieve low-level DML: describes how to retrieve it

DBMS Languages (con’t) High-level DML: set-oriented, declarative Low-level DML: record-oriented, procedural Types of DML data sublangauge: DML embedded in a general purpose language (for DBAs) query language: high-level, interactive, stand-alone DML (casual end users) user-friendly interface for DML (naïve users)

Database System Environment DBMS Component Modules Managers, i.e., disk control Compiler, i.e., query Processors

DBMS Interfaces Menu-based interfaces Forms-based interfaces Natural language interfaces interpret requests to high-level queries Command line

System Utilities & Tools Loading loads existing data files into the database DBMS conversion, reformatting the data Backup provides a backup copy of the database incremental backup: updates changes only File Reorganization to improve performance

System Utilities & Tools Performance Monitoring monitors database usage provides statistics Data Dictionary also called information repository stores additional information: (catalog) + design decisions, usage standards, user information, application program descriptions

Mainframe/ terminal Storage, Logic and Presentation all in same place Network Mainframe/terminal Storage, Logic and Presentation all in same place No platform specific user interface Doesn’t take advantage of client machine

Client Server without stored procedures Storage Logic Presentation Network DBMS Database server handles storage only Logic and presentation in client Takes advantage of client cpu Logic changes require client redistribution Integrity not maintained if other DB tool used Each user needs to be a specific database user

Client Server with stored procedures Storage Logic Presentation Network DBMS Database handles storage and business logic Logic changed in one place, no redistribution of client DBMS dependent code Each user needs to be specific database user

Client Server with 3 tiers Storage Logic Presentation Network DBMS Storage in database Logic in Transaction Monitor Client does presentation only Authentication and Access control can be done in TP monitor Each user does NOT have to be a database user

Client Server with 3 tiers Database Servers Storage Logic Presentation Network DBMS Transaction Monitor A component which sits between the client and the database server to insure reliable updates of information Used in airline reservation and banking systems

Why 3 Tiers? Scalability Flexibility Complexity multiple transaction monitors load balancing Flexibility Complexity update multiple data stores Two phase commit with multiple databases

Classifications of DBMSs Data Model (OO, Relational, hierarchical) Number of Users ( single vs. multi-user) Number of Database Sites ( centralized vs. distributed vs. federated) Special-purpose vs. general-purpose