Chapter 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.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
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.
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.
Faculty of Information Science and Technology Mahanakorn University of Technology Topic 2 Database System Concepts and Architecture.
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.
Database System Concepts and Architecture
2. Database System Concepts and Architecture
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 2 Database System Concepts and Architecture.
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.
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.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
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
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
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.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
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.
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 Environment.
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
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.
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Database Environment Transparencies
Database Systems Instructor Name: Lecture-3.
Introduction to Databases
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.
Database System Concepts and Architecture
Presentation transcript:

Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008

Outline Data Models, Schemas, and Instances Three-Schema Architecture Database language and Interfaces The database system environment Centralized and client/server architecture

Categories of data models One fundamental characteristic of the database approach is that it provides some level of data abstraction High-level or Conceptual data models: Provide concept that are close to the way many users perceive data Low-level or Physical data model: Provide concepts that describe the details of how data is stored in the computer

Conceptual data models It uses concepts such as entities, attributes and relationships. Entity represents a real-world object or concept, such as employee or project Attribute represents some property of interest that further describes an entity, such as employee’s name or salary Relation among two or more entities represents an association among two or more entitles

Example of a Relation

Schemas and Database State In any data model, it is important to distinguish between the description of the data and database itself The description of the database is called the database schema A displayed Schema is called a schema diagram

Database V.S. File In the database approach, a single repository of data is maintained that is defined once then accessed by various users The major differences between DB and File are: Self-describing of a DB Insulation between programs and data Support of multiple views of the data Sharing of data and multiuser transaction processing

University Database

Example of a Database Schema

Schemas and Database State The data in the database at a particular moment in time is called a database state The distinction between database schema and database state is very important When we define a new database, we specify its database schema only to the DBMS At this point, the corresponding database state is the empty state with no data We get the initial state of the database when the database is first loaded From then on, every time an update operation is applied to the database, we get another database state

Schemas and Database State Valid State: a state that satisfies the structure and constrains specified in the schema. The database schema changes very infrequently. The database state changes every time the database is updated Schema is also called intension. State is also called extension.

Outline Data Models, Schemas, and Instances Three-Schema Architecture Database language and Interfaces The database system environment Centralized and client/server architecture

Three-Schema Architecture Three of four important characteristics of the database approach, listed in Ch.1 are: Self-describing of a DB (Schema) Insulation between programs and data Support of multiple views of the data Three-Schema Architecture : it was proposed to help achieve and visualize these characteristics

Three-Schema Architecture Defines DBMS schemas at three levels: Internal schema at the internal level to describe physical storage structures and access paths (e.g indexes). Conceptual schema at the conceptual level to describe the structure and constraints for the whole database for a community of users. External schemas at the external level to describe the various user views.

The three-schema architecture

Outline Data Models, Schemas, and Instances Three-Schema Architecture Database language and Interfaces The database system environment Centralized and client/server architecture

DBMS Languages The first step to create a database through DBMS is to specify conceptual and internal schemas for the database Data Definition Language (DDL): is used by database designers to define schemas Data Manipulation Language (DML) View Definition Language (VDL): is to specify user views In current DBMS, the preceding types of languages are usually not considered distinct languages

DBMS Programming Language Interfaces Programmer interfaces for embedding DML in a programming languages: Embedded Approach: e.g embedded SQL (for C, C++, etc.), SQLJ (for Java) Procedure Call Approach: e.g. JDBC for Java, ODBC (open DB connectivity) for other programming languages Database Programming Language Approach: e.g. ORACLE has PL/SQL, a programming language based on SQL; language incorporates SQL and its data types as integral components

User-Friendly DBMS Interfaces Menu-based, popular for browsing on the web (URSA) Forms-based, designed for naïve users Graphics-based Natural language: requests in written English Combinations of the above

Outline Data Models, Schemas, and Instances Three-Schema Architecture Database language and Interfaces The database system environment Centralized and client/server architecture

DBMS Component Modules A DBMS is a complex software system The figure showed in next slide is divide into two halves. The top half refers to the various users of the database system The lower half shows the internals of the DBMS responsible for storage of data and processing of transactions

Typical DBMS Component Modules

Outline Data Models, Schemas, and Instances Three-Schema Architecture Database language and Interfaces The database system environment Centralized and client/server architecture

Centralized DBMS Architecture A centralized DBMS in which all the DBMS functionality, application program execution, and user interface processing were carried out on a single machine

A Physical Centralized Architecture

Basic Client/Server Architectures The client/server architecture was developed to deal with computer environment in which a large number of PCs, workstation, file server… A client in this framework is typically a user machine that provides user interface capabilities and local processing A server is a system containing both hardware and software that can provide services to the client machines.

Logical two-tier client server architecture

Two-tier Architecture This is called two-tire architectures because the software components are distributed over two systems: client and server The emergence of the Web changed the roles of client and server, leading to the three-tier architecture

Three-tier architecture The intermediate layer or middle layer is sometimes called the application server or Web server Three-tier Architecture Can Enhance Security: Database server only accessible via middle tier Clients cannot directly access database server

Three-tier client-server architecture

Three-tier architecture The presentation layer displays information to the user The business logic layer handles intermediate rules and constrains before data is passed up to the user or down to the DBMS If the bottom layer is split into two layers (a web server and a database server), then it is a 4-tire architecture (possible to the n-tier)