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 Unloading Columns Containing Final Object Types

The FINAL or NOT FINAL definition of an object type determines whether subtypes can be derived from that type. Only non-final types allow subtypes. A type is declared as not final by including the NOT FINAL keyword in its type declaration. For example:

CREATE TYPE address_t AS OBJECT
( street_number     NUMBER,
Street_name     VARCHAR2(30),
suite_no     VARCHAR2(10),
City_name         VARCHAR2(32),
State_or_provence     VARCHAR2(30),
mail_code         VARCHAR2(20),
country       VARCHAR2(32))
NOT FINAL;

This statement declares address_t to be a not final type, such that subtypes of address_t can be defined. By default, an object type is declared as final and subtypes cannot be derived from it.

It is permitted to change a final type to a not final type and vice versa with an ALTER TYPE statement. For example, to change address_t to a final type:

ALTER TYPE address_t FINAL;

Alteration of a type from NOT FINAL to FINAL is only allowed if the target type has no subtypes.

Once created, a table can use types in place of columns.

When final column objects are populated into an external table, you move each sub-attribute in the object type into its own column in the external table. In addition to columns for each sub-attribute, the external table needs an additional column to track whether the column object is atomically null. The following demonstrates the unloading and loading of columns consisting of final object types.

  1. In the following example, the address column in the external table is used to track whether the address column in the source table is atomically NULL.

SQL> CREATE TABLE projects_obj_ext
2 ORGANIZATION EXTERNAL
3 (
4 TYPE ORACLE_DATAPUMP


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.