Object-Relational and Nested-Relational Databases Dr. Akhtar Ali

Similar documents
ORDBMS - Introduction

Advanced Database Applications. Object Oriented Database Management Chapter 13 10/29/2016. Object DBMSs

Several major software companies including IBM, Informix, Microsoft, Oracle, and Sybase have all released object-relational versions of their

Use of Inheritance Feature in Relational Database Development

3. Object-Oriented Databases

Lecture2: Database Environment

Course Content. Object-Oriented Databases. Objectives of Lecture 6. CMPUT 391: Object Oriented Databases. Dr. Osmar R. Zaïane. University of Alberta 4

Object-Relational Database Systems (ORDBS) Contains slides made by Naci Akkøk, Pål Halvorsen, Arthur M. Keller and Vera Goebel.

The functions performed by a typical DBMS are the following:

Unit 2. Unit 3. Unit 4

Part 3: Object-Oriented Database Management Systems

Issues in Information Systems

Ch. 21: Object Oriented Databases

DATABASE TECHNOLOGY - 1DL124

COURSE 11. Object-Oriented Databases Object Relational Databases

CS511 Design of Database Management Systems

CSE2004 Database Management Systems

8) A top-to-bottom relationship among the items in a database is established by a

LECTURE1: PRINCIPLES OF DATABASES

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases

Comparing the performance of object and object relational database systems on objects of varying complexity

CS317 File and Database Systems

Managing the Data Effectively Using Object Relational Data Store

Data, Databases, and DBMSs

Credit where Credit is Due. Last Lecture. Goals for this Lecture

Course Outline Faculty of Computing and Information Technology

Introduction. Course Overview Evolution and History of Database Management Systems Requirements of Object-Oriented Database Management Systems

AC61/AT61 DATABASE MANAGEMENT SYSTEMS DEC 2013

DSE 203 DAY 1: REVIEW OF DBMS CONCEPTS

Database Fundamentals Chapter 1

Database Management

Introduction To Computers

Relational Model: History

; Spring 2008 Prof. Sang-goo Lee (14:30pm: Mon & Wed: Room ) ADVANCED DATABASES

Database Applications (15-415)

Database Architecture 1

Definitions. Database Architecture 1. Database Schema. Database Instance. Data Item (Schema Construct) The description of a database.

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10

Database Management System 2

D.K.M COLLEGE FOR WOMEN(AUTONOMOUS),VELLORE DATABASE MANAGEMENT SYSTEM QUESTION BANK

M S Ramaiah Institute of Technology Department of Computer Science And Engineering

Essay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM).

LELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER)

Use the below enhanced Entity Relationship diagram for relevant questions on this quiz

ITCS Jing Yang 2010 Fall. Class 16: Object and Object- Relational Databases (ch.11) References

Fundamentals of Design, Implementation, and Management Tenth Edition

Review -Chapter 4. Review -Chapter 5

Of Objects and Databases: A Decade of Turmoil Michael J. Carey, David J. DeWitt. Discussion by: Shervin Presentation by: Roland

Lecture 1: Introduction

Chapter 11 Object and Object- Relational Databases

Topic 3 Object Relational Database

Databases and Database Management Systems

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2-1

Institute of Southern Punjab, Multan

Database Systems: Learning Outcomes. Examples of Database Application. Introduction

Data analysis and design Unit number: 23 Level: 5 Credit value: 15 Guided learning hours: 60 Unit reference number: H/601/1991.

Outline. Database Management Systems (DBMS) Database Management and Organization. IT420: Database Management and Organization

Chapter 9: Object-Based Databases

An Introduction To Data Base Systems: V. 1 By C. J. Date

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Outline. CUGS Core - Databases. Requirements. Work method. Databanks/Databases. Databank

Database System Concepts and Architecture. Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Relational Database design. Slides By: Shree Jaswal

Part I: Structured Data

CS313D: ADVANCED PROGRAMMING LANGUAGE

Course Name: Database Systems - 1 Course Code: IS211

15CS53: DATABASE MANAGEMENT SYSTEM

Review for Exam 1 CS474 (Norton)

CS317 File and Database Systems

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

Introduction to Databases CSE 414. Lecture 2: Data Models

CPS 510 Data Base I. There are 3 forms of database descriptions the ANSI/SPARK, 1975 and so on

Rekayasa Perangkat Lunak 2 (IN043): Pertemuan 8. Data Management Layer Design

Ian Kenny. November 28, 2017

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

Object-Relational Modeling

Overview of DB & IR. ICS 624 Spring Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa

Fundamentals of Databases

Object-relational Databases. Extend relational databases with OO features

An Effective Methodology for an Upper-level Fundamentals of Database Systems Course

Advanced Database Organization INF613

Query Processing & Optimization

Event Stores (I) [Source: DB-Engines.com, accessed on August 28, 2016]

Running Example Tables name location

Fundamentals of. Database Systems. Shamkant B. Navathe. College of Computing Georgia Institute of Technology PEARSON.

Database Systems Relational Model. A.R. Hurson 323 CS Building

Chapter 11: Data Management Layer Design

Introduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure

Layers. External Level Conceptual Level Internal Level

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

AN EFFICIENT OODB MODEL FOR ENSURING THE INTEGRITY OF USER-DEFINED CONSTRAINTS

Relational Database Systems Part 01. Karine Reis Ferreira

Database System Concepts and Architecture

Introduction to Database Systems. Fundamental Concepts

ANDHRA MAHILA SABHA ARTS & SCIENCE COLLEGE FOR WOMEN (AUTONOMOUS), NAAC Accredited O.U. CAMPUS, HYDERABAD.

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

A Sample Solution to the Midterm Test

Introduction: Databases and Database Users. Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

CHAPTER 2: DATA MODELS

Transcription:

Extensions to Relational Databases Object-Relational and Nested-Relational Databases By Dr. Akhtar Ali

Lecture Theme & References Theme The need for extensions in Relational Data Model (RDM) Classification of database systems Extensions to RDM, namely Object-Relational Nested-Relational References R. Elmasri and S. B. Navate, Fundamental of Database Systems 5 th Edition, 2007, Chapter 22 Thomas Connolly and Carolyn Begg, Database Systems 5 th Edition, 2010, Chapter 29 Michael Stonebraker, Paul Brown and Dorothy Moore, Object-Relational DBMSs: The Next Great Wave and Object-Relational DBMSs: Tracking the Next Great Wave (1996, 1998) Prof. Norman Paton, Object Relational Databases, University of Manchester.

Why Extend Relational Data Model To counter the following weaknesses of RDM: Poor representation of real world conceptual model Usually the relational schema does not correspond to real world entities Semantic overloading The same relation is used to represent entities (classes) as well as relationships (associations, aggregation) Poor support for integrity and business rules Fixed number of attributes & all attribute values must be atomic Limited operations on the data Difficult to handle recursive queries Impedance mismatch (when SQL is embedded in 3GLs) Type System mismatch, Evaluation Strategy mismatch Poor navigational access

Michael Stonebraker s Classification Michael Stonebraker presents this four-quadrant matrix in the book entitled Object-Relational DBMSs: The Next Great Wave This is a classification of both database applications and systems.

Lower-Left Quadrant Those application that process simple data and require no query capability e.g. text processors (word, emacs) Information has little internal structure. Document updates are relatively infrequent. Documents are of modest size. Queries are simple string or pattern searches.

Upper-Left Quadrant Those application that process simple data and require complex query capability e.g. a typical business application require RDBMS. Information has straightforward and fixed structure. Information collection may be large. Information storage must be reliable. Queries are relatively complex. Updates are frequent and Security is vital.

Lower-Right Quadrant Those application that process complex data and require no query capability e.g. a CAD application requires OODBMS. Information has complex structure. Analysis is complex. Information is moderate in quantity. Queries are not central. Updates are periodic.

Upper-Right Quadrant Those application that process complex data and require complex query capability e.g. an Image Data Archive requires ORDBMS. Information has complex structure. Information may include special data types. Images, Spatial information Information is large in quantity. Queries are important. Updates are periodic.

Object-Relational Databases Object-Relational databases (ORDBSs) seek to: Retain the relational model as a subset. Retain the strengths of the relational model and all the technologies that come with it. Support complex data types (BLOBS, ADTs, Spatial, and Multimedia, ). Support object-oriented design. Reduce impedance mismatch (type system).

Advantages of ORDBMSs Resolves many of known weaknesses of RDBMS. Reuse and sharing: reuse comes from ability to extend server to perform standard functionality centrally; gives rise to increased productivity both for developer and end-user. Preserves significant body of knowledge and experience gone into developing relational applications.

Disadvantages of ORDBMSs Complexity. Increased costs. Supporters of relational approach believe simplicity and purity of RDM are lost. Some believe RDBMS is being extended for what will be a minority of applications. OO purists not attracted by extensions either. SQL now extremely complex.

Classification Problems! Most of OODBMSs claim to be in Upper-Right quadrant not just ORDBSs.

Myth: OODBs do not support queries

Characteristics of ORDBs According to Stonebraker, ORDBs have the following characteristics. 1. Base type extensions 2. Complex objects 3. Inheritance 4. Active Rules Oracle 8i supports 1,2, and 4. Item 4 is independent of object extensions. Oracle 9i has most of the features (SQL3 compliant). We assume using features of Oracle 9i/10g throughout, although our server is running 11g.

From Relations to Object-Relations Structured types for attributes (beside atomic) Composite attributes (e.g. structs or records) Arrays Nested relation i.e. the value of an attribute can be an entire relation This removes the restriction of first normal form (1NF) Methods Special operations can be defined for, and applied to instances of a user-defined type (UDT) Identifiers for tuples Tuples play the role of objects. Each tuple has a unique ID that is generated by the system References An attribute can have a value that is a pointer to an object. This feature allows objects sharing.

Nested-Relations Relations that violate the 1NF rule of relational model are called Nested-Relations. Nested-Relational Model (NRM) are sometimes referred to as the Non-1NF or Non-First Normal Form (NFNF) or NF 2 relational model. Nested-Relational Model offers very limited features Composite attributes (e.g. structs or records) Nested relation i.e. the value of an attribute can be an entire relation NRM does not support Object-Sharing NRM based system supports new algebraic operations for manipulating nested-relations Nest (to convert 1NF into NF 2 ) Unnest (to convert NF 2 into 1NF)

Nesting and Unnesting Family data in First Normal Form: Nesting on the basis of Father and Mother grouping returns: Unnesting of the Children collection returns:

Relational Design for Movie Database Sample Relational Database A Relational Query Select s.name, sa.street, sa.city, m.title, m.year, m.length From Stars s, Star_Adress sa, Movies m, Movie_Star ms Where s.name = sa.name And s.name = ms.name And ms.title = m.title

Nested-Relational Design Nested-Relational Table A Nested-Relational Query Select s.name, s.address, s.movies From Stars s Watch out for duplication of data!

Object-Relational Design Object-Relational Database An Object-Relational Query Select s.name, s.address, s.movies From Stars s Watch out for Object Sharing!