1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.

Slides:



Advertisements
Similar presentations
Database System Concepts and Architecture
Advertisements

Chapter 2 Database System Concepts and Architecture
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Database Systems Chapter 2
Chapter 2 Database Environment.
1 Chapter 2 Database System Concepts and Architecture.
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
Organizing Data & Information
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.
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.
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.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Chapter 2: Database System Concepts and Architecture - Outline Data Models and Their.
Database System Concepts and Architecture
Chapter 2 CIS Sungchul Hong
Chapter 2 Database System Architecture. An “architecture” for a database system. A specification of how it will work, what it will “look like.” The “ANSI/SPARC”
Faculty of Information Science and Technology Mahanakorn University of Technology Topic 2 Database System Concepts and Architecture.
Chapter 2 Database Environment
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
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Data Dictionary.
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.
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.
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 Dr. Bernard Chen Ph.D. University of Central Arkansas.
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
1 Chapter 1 Introduction to Databases Transparencies.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
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 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.
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
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
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.
Fundamental of Database Systems
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
Database Management:.
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.
Chapter 2 Database Environment.
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:

1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts

2 Example of a Database Picture of a Database  See Figure 1.2 of Text Book Two Views of the Data  See Figure 1.4 of Text Book

3 Data Models A Model for Describing Data Examples:  Relational  Legacy: Network, Hierarchical  Object, Object-Relational  Entity/Relationship (ER) Typically used for “data modeling” Typically includes:  Definition: What kind of structures can be defined  Basic Data Manipulation Except for ER Model

4 Relational Data Model Data is organized into Tables  Rows = Records  Columns = Fields Tables are related by data values Data related by shared data values Data manipulation:  Insert a record  Update and delete records  Select records a collection of fields from one or more records

5 Network and Hierarchical Models Data organized into Programming Language records  Programming language = COBOL! Records organized into Sets  Each set has an owner Hierarchical: Record is member of one set  Methods provided to link records Network: Record can be member of multiple sets Data Manipulation:  Traverse sets  Insert, Modify, Delete records  Change set memberships

6 Object and Object/Relational Data Models Object:  C++ (typical) style objects stored in database Manipulated by manipulating records in memory  Objects can have methods as well as data Object/Relational  Relational at core  Rows treated as objects  Supports object concepts such as inheritance, methods, etc.

7 Entity/Relationship (ER) Used for data modeling Data organized into Entities which have attributes Entities are connected via named relationships Tools available which can convert from ER model to Relational Schema

8 Data Modeling Data modeling builds data models  Yes, we have duplicated terminology Data modeling:  Develop a model for the data that will be stored and manipulated by a database applications

9 Categories of Data Models Conceptual or High-Level  Model the data as seen by the user  Typically incomplete  Answers question: Do we have all the data requirements? Logical or Representational  Model the data as seen by the application developer  Should have all the Entities, Attributes and Relationships (ER) or Tables, Columns, DataTypes (Relational) identified Physical or Low-Level  The data as seen by the database administrator  All the physical information available Where data is stored, indices, etc.

10 Schema, States The database schema is the description of the database  The schema is the Intension of the database As the database is modified it moves from state to state  The DBMS is responsible for guaranteeing that each state is consistent (in accord with the schema) A database state is the Extension of the schema

11 Three Schema Architecture See figure 2.2 in Text Book Internal Schema  The actual schema of the database Conceptual Schema  How the data is organized External Schemas  Individual user and/or application views of the data

12 Three Schema Architecture and Data Independence Logical Data Independence  Can change Conceptual Schema without changing External Schemas  Always true to some extent: Add new Records or Tables Add new columns? new Relationships? Change representation of data items (e.g. numbers)? Physical Data Independence  Can change internal Schema without changing Conceptual Schema  Also always true to some extent Where records are stored on disk Add new access paths?

13 Data Languages Data Definition Language (DDL)  Define the schema, create the catalog Data Manipulation Language (DML)  Query the database and change the state of the database  Can be non-procedural (SQL) or procedural (OO) View Definition Language (VDL)  Define external views Storage Definition Language (SDL)  How data is stored on disk

14 Data Languages (continued) An ordinary programming language (e.g. C, Java) is a host language DML embedded in a host language is a data sublanguage  May require a preprocessor  May be an Application Programming Interface (API) Queries, e.g. may be Character Strings DML outside of a host language is a “Query Language”  Even if it can update the database

15 Three Schema Architecture Bottom Line Nice idea Reality:  The three levels are not cleanly separated  Applications (external) are reasonably well insulated from internal changes Except, of course, for performance Example:SQL  There is no separate VDL, this is part of DDL  DDL can include physical information,e.g. indices  Conceptual schema is simply table definitions with the physical portion removed

16 Database Components See Figure 2.3, Text Book Applications can use either precompiled interface or “ad hoc” interface  Ad hoc interface is the same one used by Interactive Query tools Stored Data Manager can include Buffer Management  Or this may be left to Operating System

17 Database Utilities “Bulk loading” of data into the database  Convert from an external text format for data to the DBMS internal format  Integrated with the DBMS for efficiency Backup and Restore  May include incremental backup  Knows DBMS structure, so can save consistent picture of the database Reorganization  Schema changes and/or performance improvement Performance monitoring  Help to improve database performance

18 Application Development Data Dictionary  Description of all the data  All the ancillary information, e.g. units of measure Host language API  For almost any host language  ODBC (Open Database Connectivity) Host language precompilers  Convert embedded DML (typically) into host language API Application Development Environments  Can be extremely sophisticated

19 Two-Tier and Three-Tier Database Applications Two-tier Three-tier Client Application and/or Web Server Database Client Database

20 Classification of DBMS Data Model Single or Multi-User  Multi-User typical General or special purpose Centralized or Distributed  Distributed: Homogeneous or Federated Transaction processing (OLTP) versus Decision Support (OLAP)