1 Database Design Chapter-2- Database System Concepts and Architecture Reference: Prof. Mona Mursi Lecture notes.

Slides:



Advertisements
Similar presentations
Database System Concepts and Architecture
Advertisements

Chapter 2 Database System Concepts and Architecture
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Chapter 2 Database Environment.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Databases and Database Users
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.
Lecture Two Database Environment Based on Chapter Two of this book:
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.
Chapter 2 Database System Concepts and Architecture
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Database System Concepts and Architecture
Chapter 2 CIS Sungchul Hong
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.
Database Environment Chapter 2 AIT632 Sungchul Hong.
Database System Concepts and Architecture
2. Database System Concepts and Architecture
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Database system concept and Architecture
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 2 Database System Concepts and Architecture.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Chapter-2- Database System Concepts and Architecture Text Book : “Fundamentals of Database Systems” Additional References: Prof. Beat Signer Lecture notes.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture Presented & Modified.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Database Environment Session 2 Course Name: Database System Year : 2013.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
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.
1 Chapter 2 Database Environment Pearson Education © 2009.
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
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.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
Chapter (2) Database Systems Concepts and Architecture Objectives
Introduction to DBMS Purpose of Database Systems View of Data
Databases (CS507) CHAPTER 2.
Databases and DBMSs Todd S. Bacastow January 2005.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Chapter (2) Database Systems Concepts and Architecture Objectives
Chapter 2 Database Environment.
Chapter 2 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.
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2: Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Database Systems Instructor Name: Lecture-3.
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 2 Database Environment Pearson Education © 2014.
Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

1 Database Design Chapter-2- Database System Concepts and Architecture Reference: Prof. Mona Mursi Lecture notes

2 Architecture Evolution DBMS was a tightly integrated system DBMS now is modular in design with client- server architecture Mainframes replaced by hundreds of distributed computers connected by a network

3 Client–Server Architecture Client 1 Client 2 LAN Server (DBMS) Database Client Module Run on user computer Application programs & user interface that access DB Handles user interaction and supports GUI Server Module Handles data storage. Access, search.. ect

4 Data Model Data Abstraction : hiding details of data storage that are not needed by most DB users. Data Model: a collection of concepts used to describe the structure of the DB and a set of operations for specifying retrieval and updates of the DB. DB Structure : Data types Relationships Constraints

5 Categories of Data Models High Level (Conceptual Data Model) Representational (implementation Data Model) Low Level (Physical Data Model) Provides concepts close to the way Many users see data Provides concepts may be understood by end users but are not far from the way the data is organized. (Entities, Attributes, Relationships) Relational Data Model widely used Details of how data is stored in the computer. (Computer specialist) (representing Records format, ordering, access paths : makes the search for a record more efficient)

6 Representational (implementation Data Model) Entity: Represent a real-world objects or concepts. (ex: employee) Attribute: Represent some property of interest that describes an entity. (ex: salary, name) Relationship: among two or more entities. (ex: a works-on relationship between an employee and a project)

7 Database Schema

8 What is DB Schema? A description of the database Not changed frequently Specify when a new database defined Schema constructs: Objects in schema (STUDENT or COURSE ) Schema diagram : Convention to display the structure of each record but not the actual instance

9 Schema Diagram STUDENT COURSE Name Student_Number Class Major C_Name C_Number CreditHours Department Note: Schema diagram displays only some aspects of a schema. Ex: does not show the data types nor the relationship between files. Schema Construct

10 Instances and Schema Name Account Number Balance Layla Maha Schema Instances The data stored In the database at any given time The overall design Of the DB

11 Example: University Database DB Schema A DB Instance Schema Constructs

12 Database systems have schemas at each level of abstraction : Physical Level Conceptual Level View 1View 2View 3View N …….. Physical Schema (files of records or structs) ONLY ONE SCHEMA Conceptual Schema Ex: name, account, balance ONLY ONE SCHEMA Subschema Part of the schema Controls what info can be seen AS MANY AS NEEDED

13 Database State Database state : the data in the database at particular moment in time Every insert, delete, update will change the database state. Important difference between database state and database schema: Define a new DB => specify Database schema to the DBMS, At this point the database state is “empty state”. Database is populated or loaded with data => database state changes. At any time there is a current database state.

14 Database State Valid state: every state of the database satisfies the structure and constraints specified in the schema. The DBMS stores the structure and constraints (meta- data) in the DBMS catalog. Schema Evolution : adding another data item to the schema. Ex: adding dateofbirth to the student schema.

15 Three - Schema Architecture

16 DBMS Architecture and Data Independence Characteristics of database approach: 1. Insulation of program and data (program- data and program-operation independence) 2. Support of multiple user views 3. Use of catalog To achieve the previous characteristics => three schema architecture was proposed.

17 Visualization of Three-Schema Architecture

18 Three-Schema Architecture Internal level: describes how data is stored. The way perceived by the DBMS & OS. Conceptual level: describes what data stored in DB, and the relationships among the data. The way perceived by the DBA & programmers. External level: describes the part of the DB that user is interested in. The way perceived by the end users.

19 Three-Schema Architecture Emp_No FName LName Dept_NoStaff_No LName Salary View 1 View 2 Internal Level Conceptual Level EMPLOYEE Emp_NoCHAR(6) FNameCHAR(15) LNameCHAR(15) Dept_NoCHAR(3) SalaryNUMBER(5) PREFIXTYPE=BYTE(6),OFFSET=0 EMP#TYPE=BYTE(6),OFFSET=6, INDEX=EMPX LNM TYPE=BYTE(15),OFFSET=12 FNM TYPE=BYTE(15),OFFSET=27 DPT# TYPE=BYTE(4),OFFSET=42 PAY TYPE=FULLWORD,OFFSET=46 External Level

20 Mapping Mapping is the process of transforming requests and results between the Internal, Conceptual & External levels. Two types of mapping: - External / Conceptual mapping -Conceptual / Internal mapping

21 Data Independence

22 Data Independence Data independence: is the ability to modify a schema definition in one level without affecting a schema definition in the next higher level. Two levels of data independence: 1. Logical data independence 2. Physical data independence

23 Internal Schema Conceptual Schema External Schema External Schema External Schema External/Conceptual Mapping Conceptual/Internal Mapping Logical data Independence Physical data Independence Data Independence

24 1- Logical data independence The ability to change the conceptual schema without affecting the external schemas. (application programs) Ex: adding/ removing a record or a data item The external schema that refer to the remaining data should not be affected.

25 2- Physical data independence The ability to change the internal schema without affecting the conceptual or external schemas. This change might be for reorganizing the physical files. EX: creating new access structures to improve the performance of retrieval or update.

26 Database Languages

27 Purpose of a Database Language DDL (Data Definition Languages) Conceptual schema Internal schemas External schema SDL (Store Definition Languages) Internal schema VDL (View Definition Languages) External view DML (Data Manipulation Languages) To manipulate the populated data A comprehensive database language is the SQl which represent a combination of DDL,VDL and DML