V. Megalooikonomou Object-Oriented and Object-Relational DBMSs (based on notes by Silberchatz,Korth, and Sudarshan and notes by C. Faloutsos at CMU) Temple.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

IMPLEMENTATION OF INFORMATION RETRIEVAL SYSTEMS VIA RDBMS.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
The Relational Model Class 2 Book Chapter 3 Relational Data Model Relational Query Language (DDL + DML) Integrity Constraints (IC) (From ER to Relational)
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 28 Database Systems I The Relational Data Model.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Temple University – CIS Dept. CIS331– Principles of Database Systems V. Megalooikonomou Query by example (based on notes by Silberchatz,Korth, and Sudarshan.
ISD3 Chris Wallace Next 6 Weeks Extended Relational Model Object Orientation Matching systems 3 tier architecture Technology.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
The Relational Model Lecture 3 Book Chapter 3 Relational Data Model Relational Query Language (DDL + DML) Integrity Constraints (IC) From ER to Relational.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Chapter 11 Data Management Layer Design
Copyright © 2004, Dr. Guimaraes OODBMS & ORDBMS Class Will Start Momentarily… Dr. Mario Guimaraes.
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
Oracle SQL*plus John Ortiz. Lecture 10SQL: Overview2 Overview  SQL: Structured Query Language, pronounced S. Q. L. or sequel.  A standard language for.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 18 Object Database Management Systems.
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
Advanced Database CS-426 Week 13 – Object Relational Databases.
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos OO and OR DBMSs.
Object-Relational DBMSs By Yao-Wen Tu CS157b12/09/2003 Prof. Sin-Min Lee.
Advanced Database CS-426 Week 2 – Logic Query Languages, Object Model.
Chapter 24 Introduction to Object DBMSs Prepared by Kai Huang CS157B Prof Sin-Min Lee.
The Relational Model These slides are based on the slides of your text book.
1 Introduction to databases concepts CCIS – IS department Level 4.
Relational Data Model, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 The Relational Model Chapter 3.
Module Title? DBMS Introduction to Database Management System.
The Relational Model. Review Why use a DBMS? OS provides RAM and disk.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3 Modified by Donghui Zhang.
Simple Database.
Database System Concepts and Architecture
Temple University – CIS Dept. CIS331– Principles of Database Systems V. Megalooikonomou Relational Model – SQL Part II (based on notes by Silberchatz,Korth,
Modern Database Techniques Part 1: Object Oriented Databases 3. Different Kinds of OODB.
1 Object Databases: Introduction. 2 Why OO? v Relational Systems are limited: –Structural restrictions on data –Missing semantics (value-based relationships)
1 CS 430 Database Theory Winter 2005 Lecture 17: Objects, XML, and DBMSs.
©Silberschatz, Korth and Sudarshan9.1Database System Concepts Chapter 9: Object-Oriented Databases Nested Relations Complex Types and Object Orientation.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
1.1 CAS CS 460/660 Relational Model. 1.2 Review E/R Model: Entities, relationships, attributes Cardinalities: 1:1, 1:n, m:1, m:n Keys: superkeys, candidate.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Chapter 12: Designing Databases
Chapter 18 Object Database Management Systems. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Motivation for object.
Object relational database managmement systems (ORDBMS) Adapted by Edel Sherratt from originals by Nigel Hardy.
FEN NOEA/IT - Databases/ODB1 ODB – Object DataBases Object-Oriented – Fundamental Concepts UML and EE/R OO and Relational Databases Introduction.
1 CS457 Object-Oriented Databases Chapters as reference.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Visual Programing SQL Overview Section 1.
OODBMS: Introduction and Logical Database Design
Object Oriented Database By Ashish Kaul References from Professor Lee’s presentations and the Web.
Chapter 2 Object-Relational DBMSs Chapter 28 in Textbook.
© D. Wong Security and User Authorization in SQL 8.7 pp. 410  Authorization ID = user name  Special authorization ID: PUBLIC  Privileges for:
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
1 CS 430 Database Theory Winter 2005 Lecture 10: Introduction to SQL.
CS34311 The Relational Model. cs34312 Why Relational Model? Currently the most widely used Vendors: Oracle, Microsoft, IBM Older models still used IBM’s.
Object Relational and Extended Relational Database Systems
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
1 Dept. of CIS, Temple Univ. CIS616/661 – Principles of Data Management V. Megalooikonomou SQL (part 2) (based on slides by C. Faloutsos at CMU)
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Database Management Systems By Dinesha L Lecturer, Dept. Of CSE SSIT, Tumkur Chapter-1.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
OODBMS and ORDBMS. Background Object-oriented software, based on the principles of user-defined datatypes, along with inheritance and polymorphism, is.
Chapter 3 The Relational Model. Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. “Legacy.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Relational vs. Object Oriented Database Management System Syazwani Nur Dayana Nur Fatin Syafiqa M3cs2305B.
Introduction to Database Programming with Python Gary Stewart
Object-Relational DBMSs
Tools for Memory: Database Management Systems
The Relational Model Relational Data Model
Object – relational database
Presentation transcript:

V. Megalooikonomou Object-Oriented and Object-Relational DBMSs (based on notes by Silberchatz,Korth, and Sudarshan and notes by C. Faloutsos at CMU) Temple University – CIS Dept. CIS616– Principles of Data Management

Detailed outline OO DBMSs OR DBMS complex data types inheritance UDFs ORACLE-specific extensions Conclusions

Why more than RDBMSs? RDBMS: tuples, of numbers + strings What apps need only those?

Why more than RDBMSs? RDBMS: tuples, of numbers + strings What apps need only those? Banks Airlines Retailer stores... Q: Other apps, with more req’s?

Why more than RDBMS’s Q: Other apps, with more req’s? A: text multimedia; financial apps/forecasting Geographic Inf. Sys. CAD/CAM Network management

Their specs? complex objects (sets/vectors) inheritance new data types (image, video,...) and user defined functions (UDFs)

Two solutions: Object Oriented DBMSs Object Relational DBMSs

OO DBMS roughly, ‘C++’ with persistence commercial systems: O2; ObjectStore; Objectivity Object Database Management Group (ODMG): defined standards BUT: OODBMS have small market share Hence: OR-DBMSs

OR DBMSs traditional DBMS with attempts to provide enriched data types user defined data types support for large / complex objects inheritance

SQL-3 proposed extensions complex types (sets, lists, multisets) inheritance (IS-A hierarchies) User Defined Functions (UDFs)

Complex types e.g., create type MyDate ( day decimal(2), month char(3), year decimal (4) );

Complex types e.g., Row Types: create row type Doc ( callnum varchar2(10), title char(20), authors list (varchar2(20)) ); create table document of type Doc;

Complex types DML - insertions: insert into document values (‘QA123.45’, ‘DB systems’, set(‘Smith’, ‘Johnson’) );

Inheritance single inheritance: create type Person ( ssn varchar2(10), name char(20)); create type Student (major varchar2(5)) under Person;

Inheritance multiple inheritance: create type Teacher ( salary integer) under Person; create type TA under Student, Teacher;

Inheritance multiple inheritance: constraints: one TA record corresponds to exactly one ‘Teacher’ and ‘Student’ record insertions/deletions/updates: appropriately propagated.

Object Ids and references can define ‘object ids’ for each object, and use them, effectively as pointers.

Query language extensions (recall:) create row type Doc ( callnum varchar2(10), title char(20), authors list (varchar2(20)) ); create table document of type Doc; find titles, (co-)authored by ‘Smith’

Query language extensions select title from document where ‘Smith’ in authors;

SQL-3 proposed extensions - overview complex types (sets, lists, multisets) inheritance (IS-A hierarchies) User Defined Functions (UDFs)

UDFs create function author-count (adoc document) returns integer as select count (authors) from adoc; select title from document d where author-count(d) > 1

UDFs UDFs: stay within the DBMS, for everybody to use!

Detailed outline OO DBMSs OR DBMS complex data types inheritance UDFs ORACLE-specific extensions Conclusions

ORACLE-specific Large objects PL/SQL and UDFs

ORACLE-specific Large objects, e.g., video, images, 3d- MRI scans new data types:

ORACLE-specific Large objects, e.g., video, images, 3d- MRI scans new data types: LOB (=Large OBject) BLOB: (up to 4Gb; binary: jpeg, mpeg,...) CLOB: (up to 2Gb; character: english text) NCLOB:( ; multi-byte characters) (LONG: similar, for backwards compatibility)

ORACLE-specific stored procedures PL/SQL: a ‘C’-like language too large to describe here… example of a stored procedure:

ORACLE-specific SQL> create or replace procedure del-st-rec (s-id number) as begin delete from student where s-id = ssn; end del-st-rec; SQL> execute del-st-rec ( 123 );

Illustra  Informix  IBM’s Informix Dynamic Server Illustra Informix Dynamic Server (Universal Data Option) IBM DB2 Universal Database – Informix Product family

Illustra  Informix  IBM’s Informix Dynamic Server Datablades technology - extensions for specific data domains Image Text Geodetic Spatial Time series Video Web

Informix - Sample SQL queries COMPUTE VOLUME OF A GIVEN STRUCTURE return volume((select unique image from structures where side='Left' and atlas='Brodmann' and name='17')) ; DISPLAY GIF OF ALL LESIONS SUMMED UP insert into temp_image_1 values(permanent(map_image(sum_images(( select image from patient_images where image.description='All Lesions')), 'redgreenscale'))) ; select TS.SliceNo, slice(TS.SliceNo,overlay.image)::GIF as LesionDensity from TalairachSlices TS, temp_image_1 overlay order by SliceNo ;

Detailed outline OO DBMSs OR DBMS complex data types inheritance UDFs ORACLE-specific extensions Informix Conclusions

OO and OR DBMS strive for complex data types inheritance UDFs OR DBMSs: overwhelming market share (why?)

Conclusions OR DBMSs: overwhelming market share (why?) SQL is more standardized than OO query languages legacy data are in SQL more SQL programmers are available