If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > loading into views

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-04-03, 13:05
pamshields pamshields is offline
Registered User
 
Join Date: Mar 2003
Posts: 2
Question loading into views

I'm mapping data from multiple exisitng databases into an Oracle instance. I've setup a view that "looks like" the old data and have created an INSTEAD OF trigger to correctly insert the cols into the appropriate Oracle tables.

The question is - what's the best method for importing the data? SQL*Loader appears to only work with Tables and not Views. I'm considering UTL_FILE, but if anyone else has a better suggestion, please let me know!
Reply With Quote
  #2 (permalink)  
Old 03-05-03, 07:51
jf_dba jf_dba is offline
Registered User
 
Join Date: Jan 2003
Posts: 10
Hi,

if you are using 9i you can use a EXTERNAL TABLE instead of the sqlloader. The you have to select from the EXTERNAL TABLE and insert into the VIEW.

In 8i you can load the data into a staging table with the sqlloader and the do an insert into ... select ....

You can load one flatfile-record into multible database-tables with the sqlloader. Maby this is an option to load the data without using the VIEW and instead-of-trigger. Using the sqlloader in this way is match faster then using instead-of-triggers.

Regards
JF
Reply With Quote
  #3 (permalink)  
Old 03-05-03, 08:20
pamshields pamshields is offline
Registered User
 
Join Date: Mar 2003
Posts: 2
Thumbs up

Hey - thanks!! You've given me some good ideas!

Quote:
Originally posted by jf_dba
Hi,

if you are using 9i you can use a EXTERNAL TABLE instead of the sqlloader. The you have to select from the EXTERNAL TABLE and insert into the VIEW.

In 8i you can load the data into a staging table with the sqlloader and the do an insert into ... select ....

You can load one flatfile-record into multible database-tables with the sqlloader. Maby this is an option to load the data without using the VIEW and instead-of-trigger. Using the sqlloader in this way is match faster then using instead-of-triggers.

Regards
JF
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On