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

Home
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


 
HTML Text AOL

Free Oracle App Server Tips


 
HTML Text

Oracle support

Oracle training

Oracle tuning

Rednecks!

Remote Oracle

Custom Oracle Training

 

   
  Oracle Tips by Burleson

Oracle 10g Tables of Final Object Types

  1. Now, create an external table in which a column named OID is used to hold the psuedo-column containing the system-generated object identifier.

SQL> CREATE TABLE addresses_ext
2 ORGANIZATION EXTERNAL
3 (
4 TYPE ORACLE_DATAPUMP
5 DEFAULT DIRECTORY proj_dir
6 LOCATION ('addresses.dmp')
7 )
8 AS SELECT SYS_NC_OID$ oid, street_number, street_name,
9 suite_no,city_name, state_or_provence, mail_code, country
10 FROM addresses;

Table created.

  1. Now, we create another table using the same type with system-generated object identifiers.

Then, we will use an INSERT statement to load the new table with data from the external table we just created.

SQL> CREATE TABLE addresses2 OF address_t;

Table created.

SQL>

SQL> INSERT INTO addresses2 (SYS_NC_OID$, SYS_NC_ROWINFO$)
2 SELECT oid, address_t(street_number, street_name,
9 suite_no,city_name, state_or_provence, mail_code, country)
10 FROM people_xt;

1 row created.

SQL>

  1. Finally, let's verify that the data is identical between the two internal object tables.

SQL> SELECT SYS_NC_OID$, street_number, street_name,
9 suite_no,city_name, state_or_provence, mail_code, country
10 FROM addresses
2 MINUS


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:

http://rampant-books.com/book_2003_2_oracle10g.htm


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:

http://www.dba-oracle.com/service_oracle_backup.htm

 
 
 

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.