Databases CIS 422. Lifetime of Data Transient results to the evaluations of expression Variables involved in procedure activation Global variables Dynamically.

Slides:



Advertisements
Similar presentations
Object Oriented Analysis And Design- IT0207 III Semester UNIT-IV.
Advertisements

OO databases 1 Object Oriented databases. OO databases 2 Developing OODBMS - motivation motivation more and more application areas require systems that.
Chapter 10: Designing Databases
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
ODMG Standard: Object Model1 OBJECT-ORIENTED DATABASE SYSTEMS ODMG Standard: Object Model Susan D. Urban and Suzanne W. Dietrich Department of Computer.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
--What is a Database--1 What is a database What is a Database.
Chapter Object-Oriented Practices. Agenda Object-Oriented Concepts Terminology Object-Oriented Modeling Tips Object-Oriented Data Models and DBMSs.
IMS1907 Database Systems Week 5 Database Systems Architecture.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
Object Oriented Databases - Overview
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Object and Object- Relational Databases.
Chapter 4 Object and Object-Relational Databases (Part ½: Object-Oriented Concepts) Lecturer: H.Ben Othmen Department of Computer Science, Umm Al-Qura.
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
Introduction to Database
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.
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
Introduction to Databases
DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
Module Title? DBMS Introduction to Database Management System.
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.
2. Database System Concepts and Architecture
Data & Databases Basic Data Fundamentals. Data vs Information l Data: facts Computer systems store data. l Information: facts organized for a specific.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
11 1 Chapter 11 Object Oriented Databases Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
SQL Structured Query Language Programming Course.
1 Object-Oriented Systems Development Bahrami © Irwin/ McGraw-Hill Chapter 2: Object Basics Object-Oriented Systems Development Using the Unified Modeling.
ObjectStore Database System By C. Lamb, G Landis, J.Orenstein, L. Weinreb Presentation by Meghana Chemburkar December 4, 2002 Instructor: Dr.Vasilis Megalooikonomou.
Database Management COP4540, SCS, FIU Database Modeling A Introduction to object definition language (ODL)
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Object Oriented Database By Ashish Kaul References from Professor Lee’s presentations and the Web.
11-1 CHAPTER 11 Concepts for Object-Oriented Databases.
Object storage and object interoperability
Distributed Database Management Systems. Reading Textbook: Ch. 1, Ch. 3 Textbook: Ch. 1, Ch. 3 For next class: Ch. 4 For next class: Ch. 4 FarkasCSCE.
E.Bertino, L.Matino Object-Oriented Database Systems 1 Chapter 9. Systems Seoul National University Department of Computer Engineering OOPSLA Lab.
CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
Postgraduate Module Enterprise Database Systems Technological Educational Institution of Larisa in collaboration with Staffordshire University Larisa
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
Data Resource Management Lecture 8. Traditional File Processing Data are organized, stored, and processed in independent files of data records In traditional.
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 1: Introduction
Chapter 2 Database System Concepts and Architecture
The Object-Oriented Database System Manifesto
Chapter 1: Introduction
Chapter 12 Outline Overview of Object Database Concepts
Tools for Memory: Database Management Systems
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Introduction to Database Systems
Data, Databases, and DBMSs
Introduction to DBMS Purpose of Database Systems View of Data
ITEC 3220A Using and Designing Database Systems
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Database System Concepts and Architecture
Chapter 1: Introduction
OBJECT STORAGE AND INTEROPERABILITY
Presentation transcript:

Databases CIS 422

Lifetime of Data Transient results to the evaluations of expression Variables involved in procedure activation Global variables Dynamically allocated variables Data that exists between executions Data that exits between versions Data that outlives a program

Essentials to Provide Persistence Object ID Properties and relationships Scale of the store Stability of the store

Database vs File System Marketing Engineering Accounting DBMS Database Sales Accounts Employee Inventory Customer Parts Engineering Marketing Accounting Parts Customer Inventory Accounts

Database A collection of related data Represents some aspect of the real world Is a logically coherent collection of data with some inherent meaning Is designed, built, and populated with data for a specific purpose.

Database Management Systems Data Schema Program Independence Views

Hierarchical Model Motor Vehicle BusTruckCar

Network Model Customer Soup Order

Relational Model Soup-ID Soup Name Price Cust-ID Name Address Phone Order-ID Soup-ID Cust-ID Qty

Database Interface Approaches Data Definition Language CREATE TABLE inventory (inventory-number CHAR(20)NOT NULL description CHAR(25)NOT NULL price DECIMAL (9,2) Data Manipulation Language

Shareability Transactions Commit Abort Atomicity

Concurrency Locking Conservative Locking Policy Read Locks Write Locks

Object Oriented vs Traditional Objects are active components OO Databases have inheritance Allow storage in the form of objects

OODBMS - OO Part The system must support complex objects Object identity must be supported Objects must be encapsulated The system must support types or classes The system must support inheritance The system must avoid premature binding The system will be computationally complete The system must be extensible

OODBMS - DB Part It must be persistent, able to remember object state It must be able to manage very large databases It must accept concurrent users It must be able to recover from hardware and software failures Data query must be simple

Complex Objects Job Object OID eee Emp# E001 PositionSalary 50,000 ENAME Smith DEPT# D01 Budget 1,000,000 DNAME Mktg MgrEmpsOID ddd OID sss …... OID’s of Employee Objects

Object Data Management Group Model Parts Literals Objects (OID) –system assigned –not dependent on attribute values –conceptual address Collections

Abstract Types - Interfaces Inherit signatures of operations Noninstantiable Behaviour Inheritance –Supertype must be an interface –Subtype may be interface or class

Classes Specifies both attributes and behavior Instantiable Class Inheritance –supertype must be a class –subtype must be a class

Relationships Inverses 1-1 n-1 n-m

Persistent Objects Naming & Extents Reachablility Key

Company Schema Worker calcDeductions calcPay Employee string name string ssn int dependents Salaried double salary Hourly double hours double rate department n1 office 11

Representation interface Worker { method double calcDeductions(); method double calcpay(); }; class Employee : Worker ( extent workers key ssn) { atttribute string name attribute string ssn attribute int dependents relationship Department worksIn inverse Department::hasEmployees relationship Office residesAt inverse Office::houses }

Representation Continued class Salaried extends Employee ( extent salaried) { attribute double salary } class Department ( extent departments key number) { attribute int number attribute string name relationship set hasEmployees inverse Employee::worksIn }

Table-Class Mapping costcolormakemodelcar Cost color make model

Table-Multiple Classes Mapping nameaddresscustIDempID Employee name address empID Customer name address custID

Table-Inheritance Classes Mapping Employee name ssn address HourlyEmp wage SalariedEmp salary nameaddressssnwagesalary

Instance Relationships NameDepartmentID Name deparmentID ssn salary Department name departmentID Employee name salary ssn

Client Sends message to server Manages user interface –validate data –dispatch requests Solution specific logic GUI

Server Fulfills the client request Usually does database access functions File server Transaction server Located separate from client

Basic Characteristics of Client-Server Apps Front-end client acts with back-end server The two tasks have fundamentally different needs Environment is generally heterogeneous and multivendor Scalability

Common Components User Interface Business Processing Database Processing

Distributed Processing Processing divided up between processes Objects can be distributed and accessed by users across a network