SlideShare a Scribd company logo
1 of 16
Chapter 2
Object-Relational DBMSs
Chapter 28 in Textbook
2
Overview
 Why ORDBMS?
 What is ORDBMS?
 Stonebreaker’s view
 Advantages and disadvantages of
ORDBMS
 New OO features in SQL
 Comparison between OODBMS and
ORDBMS
3
Why ORDBMS – Extending
RDBMS
 Vendors of RDBMSs conscious of threat and
promise of OODBMS.
 Agree that RDBMSs not currently suited to
advanced database applications, and added
functionality is required.
 Reject claim that extended RDBMSs will not
provide sufficient functionality or will be too
slow to cope adequately with new
complexity.
 Can remedy shortcomings of relational
model by extending model with OO features.
4
What is ORDBMS?
 ORDBMS is a relational database with OO
features.
 OO features being added include:
 User-extensible types.
 Encapsulation.
 Inheritance.
 Polymorphism.
 Dynamic binding of methods.
 Complex objects.
 Object identity.
5
Stonebraker’s View
6
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;
 Preserves significant body of knowledge and
experience gone into developing relational
applications.
7
Disadvantages of ORDBMSs
 Complexity.
 Increased costs.
 Proponents of relational approach believe
simplicity and purity of relational model 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.
8
SQL:2003 - New OO Features
 Type constructors for row types and
reference types.
 User-defined types (distinct types and
structured types) that can participate in
supertype/subtype relationships.
 User-defined procedures, functions, methods,
and operators.
 Type constructors for collection types
(arrays, sets, lists, and multisets).
 Support for large objects – BLOBs and
CLOBs.
 Recursion.
9
Row Types
 Sequence of field name/data type
pairs that provides data type to
represent rows in tables.
 Allows complete rows to be:
 stored in variables,
 passed as arguments to routines,
 returned as return values from function calls.
 Also allows column of table to contain
row values.
10
User-Defined Types (UDTs)
SQL:2003 allows definition of UDTs.
May be used in same way as built-in types.
Subdivided into two categories: distinct types
and structured types.
 Distinct type allows differentiation between same
underlying base types.
 Structured type consists of a group of other types
(built-in or UDT).
11
Reference Types and Object
Identity
 References allow
 A row to be shared among multiple tables. and
 Users to replace complex join definitions in
queries with much simpler path expressions
(similar to OODBMS).
12
User-Defined Routines (UDRs)
 UDRs define methods for manipulating data.
 UDRs may be defined as part of a UDT or
separately as part of a schema.
 UDRs may be
 externally provided in standard programming
language (exp. C).
 or defined completely in SQL.
 UDR may be a procedure, function, or
method.
 A procedure has input and output parameters.
 A function has input parameters and must return
a value.
 A method must be a part of UDT.
13
Subtypes and Supertypes
 UDTs can participate in
subtype/supertype hierarchy.
 Subtype inherits all the attributes
and behavior of its supertypes.
 Can define additional attributes and
methods and can override inherited
methods.
14
Subtables and Supertables
 No mechanism to store all instances of given UDT,
unless user explicitly creates a single table in which all
instances are stored.
 Thus, in SQL:2003 may not be possible to apply an
SQL query to all instances of a given UDT.
 Can use table inheritance, which allows table to be
created that inherits all the rows of one or more
existing tables.
 Subtable/supertable independent from UDT
inheritance facility.
 Subtable/supertable: rows are inherited.
 Subtype/supertype: attributes and methods are
inherited.
15
Collection Types
ARRAY: ordered 1D array with maximum
number of elements without duplicates.
LIST: ordered collection that allows
duplicates.
SET: unordered collection without duplicates.
MULTISET: unordered collection that allows
duplicates.
Similar to those in OODBMS
(What were MULTISETs called in OODBMS?).
16
Large Objects
 A table field that holds large amount
of data.
 Three different types:
 Binary Large Object (BLOB).
 Character LOB (CLOB).
 National CLOB.
 Unlike SQL2, in SQL:2003, LOB does
allow some operations to be carried
out in DBMS server.

More Related Content

Similar to ordbms.ppt

Updated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxUpdated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxTHEFPS
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part IIKavithaA19
 
rdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdfrdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdfIrfanRashid36
 
Lecture on DBMS & MySQL.pdf v. C. .
Lecture on DBMS & MySQL.pdf v.  C.     .Lecture on DBMS & MySQL.pdf v.  C.     .
Lecture on DBMS & MySQL.pdf v. C. .MayankSinghRawat6
 
SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3jeetendra mandal
 
SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2jeetendra mandal
 
SQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredSQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredDanish Mehraj
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptxSubhamSarkar64
 
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapOverview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapVikas Jagtap
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfstudy material
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questionsambika93
 
Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview quesSwatiJain303
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Rakibul Hasan Pranto
 
Unit 3 rdbms study_materials-converted
Unit 3  rdbms study_materials-convertedUnit 3  rdbms study_materials-converted
Unit 3 rdbms study_materials-convertedgayaramesh
 

Similar to ordbms.ppt (20)

Updated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxUpdated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptx
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
RDBMS
RDBMSRDBMS
RDBMS
 
rdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdfrdbms-161216100344 (1).pdf
rdbms-161216100344 (1).pdf
 
DBMS summer 19.pdf
DBMS summer 19.pdfDBMS summer 19.pdf
DBMS summer 19.pdf
 
Lecture on DBMS & MySQL.pdf v. C. .
Lecture on DBMS & MySQL.pdf v.  C.     .Lecture on DBMS & MySQL.pdf v.  C.     .
Lecture on DBMS & MySQL.pdf v. C. .
 
SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3SQL interview questions by jeetendra mandal - part 3
SQL interview questions by jeetendra mandal - part 3
 
SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions by Jeetendra Mandal - part 2
 
RDBMS
RDBMSRDBMS
RDBMS
 
SQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredSQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics Covered
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptx
 
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapOverview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdf
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview ques
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)
 
Cse ii ii sem
Cse ii ii semCse ii ii sem
Cse ii ii sem
 
Mysql
MysqlMysql
Mysql
 
MSSQL_Book.pdf
MSSQL_Book.pdfMSSQL_Book.pdf
MSSQL_Book.pdf
 
Unit 3 rdbms study_materials-converted
Unit 3  rdbms study_materials-convertedUnit 3  rdbms study_materials-converted
Unit 3 rdbms study_materials-converted
 

More from HODCA1

Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdfHODCA1
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdfHODCA1
 
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdfmariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdfHODCA1
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdfHODCA1
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.pptHODCA1
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfHODCA1
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptxHODCA1
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.pptHODCA1
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdfHODCA1
 

More from HODCA1 (9)

Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdf
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdf
 
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdfmariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdf
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdf
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptx
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdf
 

Recently uploaded

%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...chiefasafspells
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...masabamasaba
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 

Recently uploaded (20)

%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 

ordbms.ppt

  • 2. 2 Overview  Why ORDBMS?  What is ORDBMS?  Stonebreaker’s view  Advantages and disadvantages of ORDBMS  New OO features in SQL  Comparison between OODBMS and ORDBMS
  • 3. 3 Why ORDBMS – Extending RDBMS  Vendors of RDBMSs conscious of threat and promise of OODBMS.  Agree that RDBMSs not currently suited to advanced database applications, and added functionality is required.  Reject claim that extended RDBMSs will not provide sufficient functionality or will be too slow to cope adequately with new complexity.  Can remedy shortcomings of relational model by extending model with OO features.
  • 4. 4 What is ORDBMS?  ORDBMS is a relational database with OO features.  OO features being added include:  User-extensible types.  Encapsulation.  Inheritance.  Polymorphism.  Dynamic binding of methods.  Complex objects.  Object identity.
  • 6. 6 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;  Preserves significant body of knowledge and experience gone into developing relational applications.
  • 7. 7 Disadvantages of ORDBMSs  Complexity.  Increased costs.  Proponents of relational approach believe simplicity and purity of relational model 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.
  • 8. 8 SQL:2003 - New OO Features  Type constructors for row types and reference types.  User-defined types (distinct types and structured types) that can participate in supertype/subtype relationships.  User-defined procedures, functions, methods, and operators.  Type constructors for collection types (arrays, sets, lists, and multisets).  Support for large objects – BLOBs and CLOBs.  Recursion.
  • 9. 9 Row Types  Sequence of field name/data type pairs that provides data type to represent rows in tables.  Allows complete rows to be:  stored in variables,  passed as arguments to routines,  returned as return values from function calls.  Also allows column of table to contain row values.
  • 10. 10 User-Defined Types (UDTs) SQL:2003 allows definition of UDTs. May be used in same way as built-in types. Subdivided into two categories: distinct types and structured types.  Distinct type allows differentiation between same underlying base types.  Structured type consists of a group of other types (built-in or UDT).
  • 11. 11 Reference Types and Object Identity  References allow  A row to be shared among multiple tables. and  Users to replace complex join definitions in queries with much simpler path expressions (similar to OODBMS).
  • 12. 12 User-Defined Routines (UDRs)  UDRs define methods for manipulating data.  UDRs may be defined as part of a UDT or separately as part of a schema.  UDRs may be  externally provided in standard programming language (exp. C).  or defined completely in SQL.  UDR may be a procedure, function, or method.  A procedure has input and output parameters.  A function has input parameters and must return a value.  A method must be a part of UDT.
  • 13. 13 Subtypes and Supertypes  UDTs can participate in subtype/supertype hierarchy.  Subtype inherits all the attributes and behavior of its supertypes.  Can define additional attributes and methods and can override inherited methods.
  • 14. 14 Subtables and Supertables  No mechanism to store all instances of given UDT, unless user explicitly creates a single table in which all instances are stored.  Thus, in SQL:2003 may not be possible to apply an SQL query to all instances of a given UDT.  Can use table inheritance, which allows table to be created that inherits all the rows of one or more existing tables.  Subtable/supertable independent from UDT inheritance facility.  Subtable/supertable: rows are inherited.  Subtype/supertype: attributes and methods are inherited.
  • 15. 15 Collection Types ARRAY: ordered 1D array with maximum number of elements without duplicates. LIST: ordered collection that allows duplicates. SET: unordered collection without duplicates. MULTISET: unordered collection that allows duplicates. Similar to those in OODBMS (What were MULTISETs called in OODBMS?).
  • 16. 16 Large Objects  A table field that holds large amount of data.  Three different types:  Binary Large Object (BLOB).  Character LOB (CLOB).  National CLOB.  Unlike SQL2, in SQL:2003, LOB does allow some operations to be carried out in DBMS server.