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

5 DEFAULT DIRECTORY proj_dir
6 LOCATION ('proj_obj_ext.dmp')
7 )
8 AS
9 SELECT ps.project_id,
10 DECODE (ps.address, NULL, 0, 1) address,
11 ps.address.street street,
12 ps.address.suite suite,
14 ps.address.state_or_provence state_or_provence,
15 ps.address.mail_code mail_code,
16 ps.address.country country,
14 ps.projet_percent_complete
15 FROM projects_sources ps;

Table created.

The type constructor function can now use the columns in the external table containing the attributes of the object type as arguments when loading data into a column of that type. Note that the address column in the external table will be used to determine whether to call the constructor function for the object or set the column to NULL.

  1. Now let's create a new internal table that looks exactly like the projects_sources table.

SQL> CREATE TABLE projects_sources_2 AS SELECT * FROM project_sources
SEE CODE DEPOT

SQL> INSERT INTO project-sources_2
2 SELECT project_id,
3 DECODE (address, 0, NULL,
4 address_t(street, suite,
city,state_or_provence, mail_code, country)),
5 percent_complete
6 FROM projects_obj_ext;

120 rows 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:

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.