SlideShare a Scribd company logo
1 of 21
Persistent programming
language & OQL & OODBMS
- Ramandeep kaur brar
-M.tech 2nd sem
-16003
Overview of OQL
• OQL is an object database query language.
• OQL is being used as an embedded query
language.
• OQL can also be used as a stand-along query
language.
Overview of OQL
• OQL is based on SQL. Many queries in SQL are
also valid in OQL.
• OQL also extends SQL to deal with object-
oriented notion.
• The supporting languages are small talk, C++
and java.
• OQL can also invoke operations programmed
in these language.
OQL: Object Query Language
SELECT can construct new objects, arbitrary
structures
FROM tuple variables can range over any
collection; may have sub queries.
WHERE pretty much the same as in SQL
Types in OQL
Declaring types for objects
Basic types:
Atomic types (e.g., string, integer, …)
Enumeration types (Monday, Tuesday, Wednesday….)
Constructors: can be applied without limitations.
Set: (1, 5, 6)
Bag: (1, 1, 5, 6, 6 )
List: (1, 5, 6, 1, 6 )
Array: Integer[17]
Struct: (name: string, address: string)
struct( name: “John”, childrenAges: bag (1,1,2,2))
Select-From-Where in OQL
(simple) Example:
SELECT s.name
FROM Movies m, m.stars s
WHERE m.title = “Sleepless in Seattle”
Other Features of OQL
• Ordering of the results
ORDER BY m.title, m.year.
• Subqueries wherever a collection is appropriate.
• Quantifier expressions:
• FOR ALL x IN S : C(x)
• EXISTS x IN S:C(x)
• Aggregation, grouping and HAVING clauses.
• Set operators: UNION, INTERSECT, EXCEPT (different if
operating on bags or sets).
• Remove duplicates: SELECT DISTINCT.
Object oriented database layers
architecture model
This section describes the layers architecture
in object oriented databases. Data are transfer
from database server to client, which passes
through six layers. These six layers have
different responsibility do as per requirement.
The fig 1.1 shows the six layer architecture
model for object oriented data model.
These layers are…..
• Interaction layer
• Application layer
• Administration Layer
• Security layer
• Virtual layer
• Paging layer
……
Interaction layer
• The interaction layer is first layer of Six Layers
Architecture Model for Object Oriented
Databases.
• In this layer, user can interact with the
databases.
• The user can send the data to databases as
well as data can be retrieved from database to
user.
Application layer
• The application is the second layer in this
model.
Administrative layer
• This layer is responsible for management of
administrative information.
• This layer can change responsibility as per
requirement.
• strict requirements of the quality system impose
complex data as well as document workflows.
• The success in preserving complex structures like
databases depends crucially on the amount of
information that is lost in the process.
• In this model Administration layer control the flow of
data as well as provide the permission to access the
data.
Security layer
• The security layer play important role in this
model.
• The security layer is responsible to provide the
full security to data and also provide to the
security of application used to manage the data
also.
• This layer can provide the authentication to the
uses as well as the authentication to databases
administrators.
• All the security concerned is considered in this
layer. Who can use what type of data.
Virtual layer
• The main advantage in this approach is that the
memory requirement of each slice processor is very
small and is independent of input size.
• In this model the virtual layer manage the data
virtually.
• This time the large volume of data are managed.
• The concept of virtual is to put the data outside the
memory.
• As per the requirement the data are converted in real
memory.
• In this ways, the problem to manage large data is
solved.
Paging layer
• The paging layer is responsible to divide the
data in the form of pages.
• The pages are managed easily.
• The data are divided into pages as the same
size of page frame; the page frame is that
dividing memory in equal number of
partitions.
• In this way large volume of data can be
managed efficiently.
Disadvantages of OODBMS
• Lack of experience-not easy for an end user.
We need programmers to interact.
• Competition-object relational DBMS
(ORDBMS) are much more easier to use and
capable of providing object facility to the end
user.
Looking at the object level may
impact the performance
• Complexity- OODBMS concept
implementation is complex.
• Lack of support of views- no support for views
manipulation.
• Lack of support for security
• Poor performance
• Unable to support large scale systems
Thank you

More Related Content

What's hot

08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 

What's hot (20)

object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
Spatial Database
Spatial DatabaseSpatial Database
Spatial Database
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
Object database standards, languages and design
Object database standards, languages and designObject database standards, languages and design
Object database standards, languages and design
 
Oodbms ch 20
Oodbms ch 20Oodbms ch 20
Oodbms ch 20
 
Adbms 11 object structure and type constructor
Adbms 11 object structure and type constructorAdbms 11 object structure and type constructor
Adbms 11 object structure and type constructor
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
Rdbms
RdbmsRdbms
Rdbms
 
DDBMS Paper with Solution
DDBMS Paper with SolutionDDBMS Paper with Solution
DDBMS Paper with Solution
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
 
Transaction management and concurrency control
Transaction management and concurrency controlTransaction management and concurrency control
Transaction management and concurrency control
 
Spatial databases
Spatial databasesSpatial databases
Spatial databases
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
Object oriented databases
Object oriented databasesObject oriented databases
Object oriented databases
 
Data cubes
Data cubesData cubes
Data cubes
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
 
Ch1
Ch1Ch1
Ch1
 
Implementation Issue with ORDBMS
Implementation Issue with ORDBMSImplementation Issue with ORDBMS
Implementation Issue with ORDBMS
 

Viewers also liked

Microsoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device SideMicrosoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device Side
Catalin Gheorghiu
 
’La descentralización de la materia ambiental’’
’La descentralización de la materia ambiental’’’La descentralización de la materia ambiental’’
’La descentralización de la materia ambiental’’
isabeltrejo44
 
Procesos psicologicos
Procesos psicologicosProcesos psicologicos
Procesos psicologicos
Daniela Aguilar
 
Actividad no. 11 ecologia.
Actividad no. 11 ecologia.Actividad no. 11 ecologia.
Actividad no. 11 ecologia.
isabeltrejo44
 
Mobile Database ,alrazgi
Mobile Database ,alrazgiMobile Database ,alrazgi
Mobile Database ,alrazgi
alrazgi
 

Viewers also liked (18)

Maqueta d’una casa domòtica
Maqueta d’una casa domòticaMaqueta d’una casa domòtica
Maqueta d’una casa domòtica
 
Maleta viatgera de lectura Paula
Maleta viatgera de lectura PaulaMaleta viatgera de lectura Paula
Maleta viatgera de lectura Paula
 
(2017 03-09)micosis cutaneas superficiales(doc)
(2017 03-09)micosis cutaneas superficiales(doc)(2017 03-09)micosis cutaneas superficiales(doc)
(2017 03-09)micosis cutaneas superficiales(doc)
 
Microsoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device SideMicrosoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device Side
 
’La descentralización de la materia ambiental’’
’La descentralización de la materia ambiental’’’La descentralización de la materia ambiental’’
’La descentralización de la materia ambiental’’
 
Tom pictorial bio FINAL
Tom pictorial bio FINALTom pictorial bio FINAL
Tom pictorial bio FINAL
 
Procesos psicologicos
Procesos psicologicosProcesos psicologicos
Procesos psicologicos
 
Actividad no. 11 ecologia.
Actividad no. 11 ecologia.Actividad no. 11 ecologia.
Actividad no. 11 ecologia.
 
8 ordinary sunday year a
8 ordinary sunday  year a8 ordinary sunday  year a
8 ordinary sunday year a
 
Using Pinterest in Undergraduate Social Work Education
Using Pinterest in Undergraduate Social Work EducationUsing Pinterest in Undergraduate Social Work Education
Using Pinterest in Undergraduate Social Work Education
 
Arquitectura del eclecticismo
Arquitectura del eclecticismoArquitectura del eclecticismo
Arquitectura del eclecticismo
 
The Industrial Internet of Things and RTI
The Industrial Internet of Things and RTIThe Industrial Internet of Things and RTI
The Industrial Internet of Things and RTI
 
Industrial Internet of Things -- Microsoft DC Azure Meetup
Industrial Internet of Things -- Microsoft DC Azure MeetupIndustrial Internet of Things -- Microsoft DC Azure Meetup
Industrial Internet of Things -- Microsoft DC Azure Meetup
 
Mobile Database
Mobile DatabaseMobile Database
Mobile Database
 
Cristian villa forero
Cristian villa foreroCristian villa forero
Cristian villa forero
 
Mobile Database ,alrazgi
Mobile Database ,alrazgiMobile Database ,alrazgi
Mobile Database ,alrazgi
 
Webinar com Demo ao Vivo: SonicWall Security Solutions
Webinar com Demo ao Vivo: SonicWall Security SolutionsWebinar com Demo ao Vivo: SonicWall Security Solutions
Webinar com Demo ao Vivo: SonicWall Security Solutions
 
Temporal database
Temporal databaseTemporal database
Temporal database
 

Similar to PPL, OQL & oodbms

01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
TOUSEEQHAIDER14
 

Similar to PPL, OQL & oodbms (20)

unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Mis assignment (database)
Mis assignment (database)Mis assignment (database)
Mis assignment (database)
 
6846222.pdf
6846222.pdf6846222.pdf
6846222.pdf
 
Unit 1 dbms
Unit 1 dbmsUnit 1 dbms
Unit 1 dbms
 
UNIT 5- Other Databases.pdf
UNIT 5- Other Databases.pdfUNIT 5- Other Databases.pdf
UNIT 5- Other Databases.pdf
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
 
CPP19 - Revision
CPP19 - RevisionCPP19 - Revision
CPP19 - Revision
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
 
dbms introduction.pptx
dbms introduction.pptxdbms introduction.pptx
dbms introduction.pptx
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
Enterprise Software Development Patterns
Enterprise Software Development PatternsEnterprise Software Development Patterns
Enterprise Software Development Patterns
 
Ch-11 Relational Databases.pptx
Ch-11 Relational Databases.pptxCh-11 Relational Databases.pptx
Ch-11 Relational Databases.pptx
 
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
Adbms 1 object oriented modeling
Adbms 1 object oriented modelingAdbms 1 object oriented modeling
Adbms 1 object oriented modeling
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
SpringPeople - Introduction to Cloud Computing
SpringPeople - Introduction to Cloud ComputingSpringPeople - Introduction to Cloud Computing
SpringPeople - Introduction to Cloud Computing
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 

Recently uploaded

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Recently uploaded (20)

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 

PPL, OQL & oodbms

  • 1. Persistent programming language & OQL & OODBMS - Ramandeep kaur brar -M.tech 2nd sem -16003
  • 2.
  • 3.
  • 4. Overview of OQL • OQL is an object database query language. • OQL is being used as an embedded query language. • OQL can also be used as a stand-along query language.
  • 5. Overview of OQL • OQL is based on SQL. Many queries in SQL are also valid in OQL. • OQL also extends SQL to deal with object- oriented notion. • The supporting languages are small talk, C++ and java. • OQL can also invoke operations programmed in these language.
  • 6. OQL: Object Query Language SELECT can construct new objects, arbitrary structures FROM tuple variables can range over any collection; may have sub queries. WHERE pretty much the same as in SQL
  • 7. Types in OQL Declaring types for objects Basic types: Atomic types (e.g., string, integer, …) Enumeration types (Monday, Tuesday, Wednesday….) Constructors: can be applied without limitations. Set: (1, 5, 6) Bag: (1, 1, 5, 6, 6 ) List: (1, 5, 6, 1, 6 ) Array: Integer[17] Struct: (name: string, address: string) struct( name: “John”, childrenAges: bag (1,1,2,2))
  • 8. Select-From-Where in OQL (simple) Example: SELECT s.name FROM Movies m, m.stars s WHERE m.title = “Sleepless in Seattle”
  • 9. Other Features of OQL • Ordering of the results ORDER BY m.title, m.year. • Subqueries wherever a collection is appropriate. • Quantifier expressions: • FOR ALL x IN S : C(x) • EXISTS x IN S:C(x) • Aggregation, grouping and HAVING clauses. • Set operators: UNION, INTERSECT, EXCEPT (different if operating on bags or sets). • Remove duplicates: SELECT DISTINCT.
  • 10. Object oriented database layers architecture model This section describes the layers architecture in object oriented databases. Data are transfer from database server to client, which passes through six layers. These six layers have different responsibility do as per requirement. The fig 1.1 shows the six layer architecture model for object oriented data model.
  • 11. These layers are….. • Interaction layer • Application layer • Administration Layer • Security layer • Virtual layer • Paging layer
  • 13. Interaction layer • The interaction layer is first layer of Six Layers Architecture Model for Object Oriented Databases. • In this layer, user can interact with the databases. • The user can send the data to databases as well as data can be retrieved from database to user.
  • 14. Application layer • The application is the second layer in this model.
  • 15. Administrative layer • This layer is responsible for management of administrative information. • This layer can change responsibility as per requirement. • strict requirements of the quality system impose complex data as well as document workflows. • The success in preserving complex structures like databases depends crucially on the amount of information that is lost in the process. • In this model Administration layer control the flow of data as well as provide the permission to access the data.
  • 16. Security layer • The security layer play important role in this model. • The security layer is responsible to provide the full security to data and also provide to the security of application used to manage the data also. • This layer can provide the authentication to the uses as well as the authentication to databases administrators. • All the security concerned is considered in this layer. Who can use what type of data.
  • 17. Virtual layer • The main advantage in this approach is that the memory requirement of each slice processor is very small and is independent of input size. • In this model the virtual layer manage the data virtually. • This time the large volume of data are managed. • The concept of virtual is to put the data outside the memory. • As per the requirement the data are converted in real memory. • In this ways, the problem to manage large data is solved.
  • 18. Paging layer • The paging layer is responsible to divide the data in the form of pages. • The pages are managed easily. • The data are divided into pages as the same size of page frame; the page frame is that dividing memory in equal number of partitions. • In this way large volume of data can be managed efficiently.
  • 19. Disadvantages of OODBMS • Lack of experience-not easy for an end user. We need programmers to interact. • Competition-object relational DBMS (ORDBMS) are much more easier to use and capable of providing object facility to the end user.
  • 20. Looking at the object level may impact the performance • Complexity- OODBMS concept implementation is complex. • Lack of support of views- no support for views manipulation. • Lack of support for security • Poor performance • Unable to support large scale systems