Home » RDBMS Server » Server Administration » sql loader load data into multiple tables
sql loader load data into multiple tables [message #60414] Fri, 06 February 2004 03:56 Go to next message
Sascha
Messages: 15
Registered: November 2002
Junior Member
i have a "&#124" separated file the 1st column of which signifies an individual record type . The record types are variable length ie record type 1 has around 100 chars while 2 has around 50 etc...

We plan to load this data in multiple tables using a loader script. The loader script works fine but loads data in only the first table . The other record types get rejected .

Some sample records from the file is as follows
1?&#124N?-10-01&#124CON?-10-07?OTOFF?&#124D?.29��.53&#124.00ӚӘӘӘ
2?ә&#124N&#124D&#124XT?*1111��.60

Please note 1| and 2| indicate the record types mentioned above .

our control file looks like this
LOAD DATA
into table summ_order
when (1) = '1'
fields terminated by "&#124"
(
Record_Identifier,
OPS_Order_ID,
Record_Status,
Transaction_Date,
Booking_Status ,
Departure_Date ,
Branch_Code ,
Consultant_Ref ,
DC_Indicator ,
Total_GrossCost ,
Total_NetCost ,
Total_Discounts ,
No_of_Adults ,
No_of_Senior_Citizens,
No_of_Children ,
No_of_Infants
)
into table pay_order1
when (1) = '2'
fields terminated by "&#124"
(
Record_Identifier,
OPS_Order_ID,
Payment_Record_ID,
Record_Status,
DC_Indicator,
Payment_Method,
Payment_Ref,
Payment_Amount
)

What should I do??

Sascha
Re: sql loader load data into multiple tables [message #61799 is a reply to message #60414] Sat, 29 May 2004 10:14 Go to previous message
Jon
Messages: 483
Registered: May 2001
Senior Member
Sascha,

Has anyone responded outside of this thread. I am running nto a similar issue. The data in the second table needs to reference a record in the first table.

Thanks,
Jon
Previous Topic: Asynchronous I/O
Next Topic: urgent
Goto Forum:
  


Current Time: Fri Sep 20 14:19:40 CDT 2024