2. Database System Concepts and Architecture

Slides:



Advertisements
Similar presentations
Database System Concepts and Architecture
Advertisements

Chapter 2 Database System Concepts and Architecture
Database Systems Chapter 2
Chapter 2 Database Environment.
1 Chapter 2 Database System Concepts and Architecture.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Database system concepts and architecture Winter 2007Ron McFadyen ACS Database schema Database system architecture Data independence concept Database.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Databases and Database Users
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Overview of Database Languages and Architectures.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 2 Database System Concepts and Architecture.
Centralized and Client/Server Architecture and Classification of DBMS
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
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction.
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.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 2 Database System Concepts and Architecture.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Chapter 2: Database System Concepts and Architecture - Outline Data Models and Their.
Slide Chapter 2 Database System Concepts and Architecture.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Database System Concepts and Architecture
Faculty of Information Science and Technology Mahanakorn University of Technology Topic 2 Database System Concepts and Architecture.
CSC271 Database Systems Lecture # 4.
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Database System Concepts and Architecture
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 2 Database System Concepts and Architecture.
Instructors: Churee Techawut Introduction to Database System Chapter 1 CS (204)321 Database System I.
Database System Concepts and Architecture. Relational Model Concepts relational model represents the database as a collection of relations. Each relation.
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.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 2-1 Data Models Data Model: A set.
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Database System Concepts and Architecture
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 2- 1.
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
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 2- 1.
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.
Postgraduate Module Enterprise Database Systems Technological Educational Institution of Larisa in collaboration with Staffordshire University Larisa
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.
Database Systems 主講人 : 陳建源 日期 :99/9/14 研究室 : 法 Chapter 2 Database System Concepts and Architecture.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Chapter 2 Database System Concepts and Architecture ICS (081)1.
Copyright © 2011 Ramez Elmasri and Shamkant Navathe Chapter 2 Database System Concepts and Architecture.
Chapter 2 Database System Concepts and Architecture Dr. Abdalla AlAmeen.
College of Arts & Science Computer Science Department
Chapter (2) Database Systems Concepts and Architecture Objectives
Databases (CS507) CHAPTER 2.
Databases and DBMSs Todd S. Bacastow January 2005.
Chapter 2: Database System Concepts and Architecture - Outline
Chapter (2) Database Systems Concepts and Architecture Objectives
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.
Chapter 2: Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Data, Databases, and DBMSs
Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

2. Database System Concepts and Architecture Chapter 2

2.1 Data Models, Schemas, and Instances Data Model: A collection of concepts used to describe the structure of a database Database Structure: Data types, relationships, and constraints on data Database Schema: The description of the database (intension) Schema Diagram: Diagrammatic representation of the DB schema Schema Construct: An object in the schema Database State/Instance: The data in the database at a particular moment in time (extension)

2.1 Data Models, Schemas, and Instances Database schema Database Instance

2.1 Data Models, Schemas, and Instances Schema diagram displays some aspects of the schema Data types and relationships are not evident Define a new DB? Specify the DB schema DB state is the empty state Populate DB with initial data? No changes in the schema DB state is the initial state Subsequent update operations? DB state changes into a new state

2.1 Data Models, Schemas, and Instances DBMS ensures that every DB state is a valid state A state that satisfies the structure and constraints specified in the schema Special care must be taken when designing a DB schema A schema is not supposed to change frequently A DBMS stores the meta-data Schema constructs and constraints

2.2 DBMS Architecture and Data Independence DB architecture is specified using a three-schema architecture Used to achieve the first 3 characteristics of DB approach Separation between programs and data Support of multiple user views Use of catalog to store DB schema Provides only a description of data

2.2.1 The Three-Schema Architecture Physical (Internal) Level Has an internal schema Describes the physical storage structure of the DB Logical (Conceptual) Level Has a conceptual schema Describes the structure of the whole DB (entities, data types, relationships, user operations, and constraints) Hides details of the physical level External (View) Level Has several external schemas or user views Each describes the part of the DB that a particular user is interested in

2.2.1 The Three-Schema Architecture External View External View … mapping mapping Conceptual Schema mapping Internal Schema

2.2.2 Data Independence Data Independence Result? Ability to change the schema at one level of a DB system without having to change the schema at the next higher level Result? Logical data independence Physical data independence

2.2.2 Data Independence Logical data independence Ability to change the conceptual schema without having to change the external schemas or application programs Changes? Expand the DB (add a record or data item) Reduce the DB (remove a record or data item) Changes to constraints

2.2.2 Data Independence Physical data independence Ability to change the internal schema without having to change the conceptual or external schemas Changes? Reorganization of physical files

2.3.1 DBMS Languages Data Definition Language (DDL) Used by the DBA and database designers to specify the conceptual schema of a database In many DBMSs, the DDL is also used to define internal and external schemas (views) In some DBMSs, separate storage definition language (SDL)andview definition language (VDL) are used to define internal and external schemas SDL is typically realized via DBMS commands provided to the DBA and database designers

2.3.1 DBMS Languages Data Manipulation Language (DML) Used to specify database retrievals and updates DML commands (data sublanguage) can be embedded in a general-purpose programming language (host language), such as COBOL, C, C++, or Java. A library of functions can also be provided to access the DBMS from a programming language Alternatively, stand-alone DML commands can be applied directly (called a query language).

2.3.1 DBMS Languages Data Manipulation Language (DML) DML Types: High Level or Non-procedural Language For example, the SQL relational language Are “set”-oriented and specify what data to retrieve rather than how to retrieve it. Also called declarative languages. Low Level or Procedural Language Retrieve data one record-at-a-time; Constructs such as looping are needed to retrieve multiple records, along with positioning pointers

2.3.2 DBMS Interfaces Menu-Based Interfaces Forms-Based Interfaces Popular for browsing the Web Forms-Based Interfaces Designed for naïve users Graphical User Interfaces (GUI) Point and Click, Drag and Drop, etc. Natural Language Interfaces Requests are written in English Speech Input and Output Speech used as input query and/or as query result Interfaces for Parametric Users Ex: bank tellers using function keys Interfaces for the DBA Commands used for Creating user accounts, granting authorizations, setting system parameters, changing schemas or access paths

2.4 The Database System Environment

2.5 DBMS Architectures Centralized DBMSs Architecture Combines everything into single system including- DBMS software, hardware, application programs, and user interface processing software User can still connect through a remote terminal – however, all processing is done at centralized site

2.5 DBMS Architectures Basic Client/Server Architectures Specialized Servers with Specialized functions (Print server, File server, DBMS server, Web server, Email server) Clients can access the specialized servers as needed

2.5 DBMS Architectures Two-Tier Client/Server Architectures A client program may connect to several DBMSs, sometimes called the data sources Data sources can be files or other non-DBMS software that manages data Other variations of clients are possible

2.5 DBMS Architectures Three-Tier and n-tier Architectures Common for Web applications Intermediate Layer called Application Server or Web Server: Such an architecture can enhance security: Database server only accessible via middle tier Clients cannot directly access database server

2.6 Classification of Database Management Systems Several criteria are used Data Model Traditional Relational data model Network data model Hierarchical data model Emerging Object data model Object-relational data model Number of Users Single-user systems Multi-user systems

2.6 Classification of Database Management Systems Number of Sites Centralized DBMS Distributed DBMS Homogeneous DDBMS Heterogeneous DDBMS Federated DBMS (multidatabase system)

Any Questions?