Call for Oracle support & training (800) 766-1884
Free Oracle Tips

Corporate Oracle Training
Custom Oracle Training
Oracle New Features Training
Advanced Oracle DBA Classes
Oracle Tuning Courses
Oracle Tips & Tricks
Oracle Training Links
Oracle Training Links
Oracle Training Links

We are top for USA Oracle Training Clients


Free Oracle Tips


Free Oracle App Server Tips


Oracle support

Oracle training

Oracle tuning


Remote Oracle

Custom Oracle Training


  Oracle Tips by Burleson

Oracle 10g Tables of Final Objects Types

One of the differences between "normal" and "object" tables is that object tables have an object identifier that uniquely identifies every row in the table (not a rowid).

With object tables, the following situations can occur:

  • There is no need to unload and reload the object identifier; in this case, the external table only needs to contain fields for the attributes of the type for the object table (an object table is created from a type definition).

  • The object identifier needs to be unloaded and reloaded and the object identifier for the table has been defined as one or more fields in the table, (also known as primary key-based object identifiers). In this case, the external table has one column for every attribute of the type for the table.

  • The object identifier needs to be unloaded and the object identifier for the table is system-generated. In this case the procedure becomes more complex. In addition to a column for each of the attributes of the type, you need to add another column to hold the system-generated OID.

The following example demonstrates the third situation.

  1. First we create an object table with system-generated OIDs:

 2 ( street_number     NUMBER,
 3 Street_name     VARCHAR2(30),
 4 suite_no     VARCHAR2(10),<
 5 City_name         VARCHAR2(32),
 6 State_or_provence     VARCHAR2(30),
 7 mail_code         VARCHAR2(20),
8 country       VARCHAR2(32))

Type created.

SQL> CREATE TABLE addresses OF address_t;

Table created.

(By default object tables use system-generated object identifiers, so there is no need to specify any special clauses.)

SQL> INSERT INTO addresses VALUES ('1313','Mockingbird Lane','','Sweet Valley','California','99999','USA');

1 row created.

Get the complete story:

The above text is an excerpt from "Oracle Database 10g New Features: Reference for Advanced Tuning and Administration", by Rampant TechPress.  Written by top Oracle experts, this book has a complete online code deport with ready to use scripts. 

To get the code instantly, click here:

Need an Oracle Mentor?

BEI is now offering personal mentors for Oracle DBAs where you can have an Oracle expert right at your fingertips, anytime day or night. We work with hundreds of Oracle databases every year, so we know exactly how to quickly assist you with any Oracle question.

Why risk an unplanned outage? You can now get telephone access to Don Burleson or any of his Oracle Certified DBAs with more than 20 years of full-time IT experience. Click here for details:


Oracle performance tuning book



Oracle performance tuning software

Oracle performance tuning software
Oracle performance Tuning 10g reference poster
Oracle training in Linux commands
Oracle training Excel


email BC:

Copyright © 1996 -  2014 by Burleson Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.