Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 11th, 2008, 06:43 PM
Newbie
 
Join Date: Aug 2008
Posts: 1
Default Loading Multiple CSV Files into Oracle DB

Okay here is my problem...

I have multiple csv files with data in each file. They are connected via foreign keys (with each table having its on primary key). I want to load these tables into an Oracle database using SQL or any other method u can think of. I know the order in which the tables should be loaded so do i go about loading the tables into the Oracle db.

E.g.

// CSV 1
Fields = ID_NUMBER | Name | Date
Data = 12345 (PK)| Hafiz | 12-12-2008 |

// CSV2
Field = ID_PRODUCT_ NUMBER | ID_NUMBER | Colour | Type
Data = 54321 (PK) | 12345 (FK) | Black| Car |

// Oracle Table 1
Fields = ID_NUMBER | Name | Date
Data = BLANK

// Oracle Table 2
Field = ID_PRODUCT_ NUMBER | ID_NUMBER | Colour | Type
Data = BLANK

The Oracle DB has the tables setup with the same field name. I want to load CSV 1 first into Oracle Table 1 and then CSV 2 into Oracle Table 2 (must be in this order or will run into referential integrity issues).

The next step is to make the solution applicable to csv files with 100 lines of data each (probably using some sort of iterative process). I've tried using SQL Loader but haven't had much luck. Can someone help??????????
Reply
  #2  
Old August 12th, 2008, 08:38 AM
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 6,870
Default

what is the problem with SQL LOADER ?
Reply
Reply

Bookmarks

Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles