Lesson 1
Querying object tables in Oracle
By now, some of you who have worked with real-world business applications may think, how does the object-relational
approach within Oracle8i work?
Oracle8i is an object-relational database management system (ORDBMS), which means that users can define additional kinds of
data, specifying both the structure of the data and the ways of operating on the data--and use these types within the relational
model. This approach adds value to the data stored within a database. User-defined data types make it easier for application
developers to work with complex data such as images, audio, and video. Object types store structured business data in its natural
form and allow applications to retrieve it that way. For this reason, they work efficiently with applications developed using
object-oriented programming techniques.
The object-relational model allows users to define new sets of data types and models drawn from the object programming languages.
This means you can create persistent objects within the database and access them through an API
(application programming interface) from C++, Java, and so on. This object-relational approach specifies both the structure of the
data and the methods of operating on the data. We will look at the details of defining methods later in the course.
- Object-relational: The object-relational model allows users to define object types, specifying both the structure of the data and the methods of operating on the data, and to use these datatypes within the relational model.
- Persistent object: An object that is stored or saved. Within Oracle, an object is stored within the database.
When you have completed this module, you will be able to:
- Understand the reasons to use Oracle objects versus relational tables
- Understand the different terms for Oracle objects
- Describe the Structured Query Language (SQL) techniques that allow you to query object tables
- Determine when to use collections and variable size arrays
- Determine when to use nested tables in querying
- Write SQL to query object tables