SQL Loader Question [message #353112] |
Sat, 11 October 2008 10:58 |
skumar08
Messages: 4 Registered: September 2008
|
Junior Member |
|
|
Dear All,
I have attached a data file that I need to import into Oracle. I am using SQL loader to do this load. But the issue I am facing is that I need to separate out the C_NUMBER, RNUMBER,
CH_AMOUNT , subject, to, etc from the data file into separate columns in an Oracle table. Unfortunately, the locations of these fields vary. So, I was wondering if the experts here could guide me on how to load these individual elements into separate columns in Oracle.
As always thanks in advance for your help on this.
Santhosh.
-
Attachment: DataFile.txt
(Size: 1.33KB, Downloaded 1401 times)
|
|
|
|
|
Re: SQL Loader Question [message #353138 is a reply to message #353112] |
Sat, 11 October 2008 19:30 |
|
ebrian
Messages: 2794 Registered: April 2006
|
Senior Member |
|
|
skumar08 wrote on Sat, 11 October 2008 11:58 | I need to separate out the C_NUMBER, RNUMBER,
CH_AMOUNT , subject, to, etc from the data file
|
What does "etc" consist of ? You mention C_NUMBER, RNUMBER, CH_AMOUNT and then jump to subject, to. Do you need to capture all the data in the data file ? How big are the data files typically ?
|
|
|
Re: SQL Loader Question [message #353159 is a reply to message #353138] |
Sun, 12 October 2008 01:26 |
skumar08
Messages: 4 Registered: September 2008
|
Junior Member |
|
|
Thanks for your response. Maybe I can clarify a bit more on my question. As you can see the first record contains C_NUMBER=5001,RNUMBER=1234567890,CH_AMOUNT=50.00 and other entries in new line. I would like to combine these into one row like C_NUMBER=5001,RNUMBER=1234567890,CH_AMOUNT=50.00 separated by a separator and so on. Unfortunately, the records are not always consistent as shown in the data file. The second row (starting with 2250308) and the third row (starting with 2250309) are totally different but the concept is the same which is basically, combine the new line entries in each record into a delimited row separated by a separator.
The size of the file varies. We have currently about 1 mil records which are in the format shown in the sample data file.
Thanks.
|
|
|
|
|