Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Loading One-to_Many relationship data into Oracle tables

Loading One-to_Many relationship data into Oracle tables

From: Krishnaswamy, Ranganath <>
Date: Thu, 08 May 2003 02:42:22 -0800
Message-ID: <>

Hi List,

        I have two tables by name Allotment and Allot_flights in which Allotment is the parent table and Allot_Flights is the child table. Flat file data has to be loaded into these tables. The flat file data comes in the form of .CSV files. These tables are related in such a way that for every record of Allotment table there can be one or more records in Allot_Flights table. The flat file data format is that for one record of allotment table one or more records of allot_flights table appear in a single row with each value separated by comma and the no. of records in allot_flights for a record in allotment table might vary. Hence it is not a fixed-length format data. In such a case what parsing logic should I use to load the data into a temp table (in denormalized form) and then into the actual tables? Is it possible to do the same through UNIX shell scripts? Or is there any other way in SQL* Loader to do this? If so, please let me know the same. Any help in this regard is very much appreciated.

Thanks and Regards,


WARNING: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you.

Please see the official ORACLE-L FAQ:

Author: Krishnaswamy, Ranganath

Fat City Network Services    -- 858-538-5051
San Diego, California        -- Mailing list and web hosting services
To REMOVE yourself from this mailing list, send an E-Mail message to: (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu May 08 2003 - 05:42:22 CDT

Original text of this message