Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science 15-415 - Database Applications C. Faloutsos OO and OR DBMSs.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

IMPLEMENTATION OF INFORMATION RETRIEVAL SYSTEMS VIA RDBMS.
CMU SCS Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications C. Faloutsos & A. Pavlo Lecture#6: Rel. model - SQL part1 (R&G, chapter.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
CMU SCS Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Lecture#7 (cont’d): Rel. model - SQL part3.
ISD3 Chris Wallace Next 6 Weeks Extended Relational Model Object Orientation Matching systems 3 tier architecture Technology.
Chapter 11 Data Management Layer Design
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos E-R diagrams.
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.
Advanced Database CS-426 Week 2 – Logic Query Languages, Object Model.
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Rel. model - SQL part1.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Chapter 24 Introduction to Object DBMSs Prepared by Kai Huang CS157B Prof Sin-Min Lee.
Module Title? DBMS Introduction to Database Management System.
The Relational Model. Review Why use a DBMS? OS provides RAM and disk.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Database System Concepts and Architecture
V. Megalooikonomou Object-Oriented and Object-Relational DBMSs (based on notes by Silberchatz,Korth, and Sudarshan and notes by C. Faloutsos at CMU) Temple.
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)
HSCI 709 SQL Data Definition Language. SQL Standard SQL-92 was developed by the INCITS Technical Committee H2 on Databases. SQL-92 was designed to be.
1 CS 430 Database Theory Winter 2005 Lecture 17: Objects, XML, and DBMSs.
ADVANCED DATABASE SYSTEMS DR. FATEMEH AHMADI- ABKENARI SEPTEMBER Object Databases.
©Silberschatz, Korth and Sudarshan9.1Database System Concepts Chapter 9: Object-Oriented Databases Nested Relations Complex Types and Object Orientation.
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Introduction.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Chapter 12: Designing Databases
Object relational database managmement systems (ORDBMS) Adapted by Edel Sherratt from originals by Nigel Hardy.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Advanced Database CS-426 Week 1 - Introduction. Database Management System DBMS contains information about a particular enterprise Collection of interrelated.
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Distributed DB.
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Rel. model - SQL part3.
1 CS457 Object-Oriented Databases Chapters as reference.
Visual Programing SQL Overview Section 1.
Object Oriented Database By Ashish Kaul References from Professor Lee’s presentations and the Web.
Chapter 2 Object-Relational DBMSs Chapter 28 in Textbook.
INTRODUCTION lecture1 1. Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
© D. Wong Security and User Authorization in SQL 8.7 pp. 410  Authorization ID = user name  Special authorization ID: PUBLIC  Privileges for:
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Rel. model - SQL part2.
1 CS 430 Database Theory Winter 2005 Lecture 10: Introduction to SQL.
DBMS 3. course. Reminder Data independence: logical and physical Concurrent processing – Transaction – Deadlock – Rollback – Logging ER Diagrams.
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
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Relational tuple calculus.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
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.
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Indexing and Hashing – part II.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
©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
Big Data Yuan Xue CS 292 Special topics on.
Faloutsos - Pavlo C. Faloutsos - A. Pavlo Lecture#2: E-R diagrams
Database Application Development
Object-Relational DBMSs
Translation of ER-diagram into Relational Schema
Tools for Memory: Database Management Systems
“Introduction To Database and SQL”
DATABASE MANAGEMENT SYSTEM
From ER to Relational Model
Object – relational database
JDBC II IS
Database Application Development
Presentation transcript:

Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos OO and OR DBMSs

Carnegie Mellon C. Faloutsos2 General Overview - rel. model Relational model - SQL Functional Dependencies & Normalization Physical Design; Indexing Query optimization Transaction processing Advanced topics –Distributed Databases –OO- and OR-DBMSs

Carnegie Mellon C. Faloutsos3 Detailed outline OO DBMSs OR DBMS –complex data types –inheritance –UDFs ORACLE-specific extensions Conclusions

Carnegie Mellon C. Faloutsos4 Why more than RDBMSs? RDBMS: tuples, of numbers + strings What apps need only those?

Carnegie Mellon C. Faloutsos5 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?

Carnegie Mellon C. Faloutsos6 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

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

Carnegie Mellon C. Faloutsos8 Two solutions: Object Oriented DBMSs Object Relational DBMSs

Carnegie Mellon C. Faloutsos9 OO DBMS roughly, ‘C++’ with persistence commercial systems: –O2; ObjectStore; Objectivity ODMG: defined standards BUT: OODBMS have small market share Hence: OR-DBMSs

Carnegie Mellon C. Faloutsos10 OR DBMSs traditional DBMS with attempts to provide user defined data types support for large / complex objects inheritance

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

Carnegie Mellon C. Faloutsos12 Complex types eg, create type MyDate ( day decimal(2), month char(3), year decimal (4) );

Carnegie Mellon C. Faloutsos13 Complex types eg, Row Types: create row type Doc ( callnum varchar2(10), title char(20), authors list (varchar2(20)) ); create table document of type Doc;

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

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

Carnegie Mellon C. Faloutsos16 Inheritance multiple inheritance: create type Teacher ( salary integer) under Person; create type TA under Student, Teacher;

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

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

Carnegie Mellon C. Faloutsos19 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’

Carnegie Mellon C. Faloutsos20 Query language extensions select title from document where ‘Smith’ in authors;

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

Carnegie Mellon C. Faloutsos22 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

Carnegie Mellon C. Faloutsos23 UDFs UDFs: stay within the DBMS, for everybody to use!

Carnegie Mellon C. Faloutsos24 Detailed outline OO DBMSs OR DBMS –complex data types –inheritance –UDFs ORACLE-specific extensions Conclusions

Carnegie Mellon C. Faloutsos25 ORACLE-specific Large objects PL/SQL and UDFs

Carnegie Mellon C. Faloutsos26 ORACLE-specific Large objects, eg., video, images, 3d-MRI scans new data types:

Carnegie Mellon C. Faloutsos27 ORACLE-specific Large objects, eg., 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)

Carnegie Mellon C. Faloutsos28 ORACLE-specific stored procedures PL/SQL: a ‘C’-like language –too large to describe here (see book on reserve) –example of a stored procedure:

Carnegie Mellon C. Faloutsos29 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 );

Carnegie Mellon C. Faloutsos30 Detailed outline OO DBMSs OR DBMS –complex data types –inheritance –UDFs ORACLE-specific extensions Conclusions

Carnegie Mellon C. Faloutsos31 Conclusions OO and OR DBMS strive for –complex data types –inheritance –UDFs OR DBMSs: overwhelming market share (why?)

Carnegie Mellon C. Faloutsos32 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