how to load fix length formatted data from a file [message #242573] |
Mon, 04 June 2007 02:53 |
sreelatha-p
Messages: 2 Registered: June 2007
|
Junior Member |
|
|
Hi,
Please clarify my below doubt.
I have fixed length formatted data(no delimiters) in a file. I do not want to include the entire data in the control file(under BEGINDATA) as the data is very huge. Can I load this data into database directly from the file, without listing it in the BEGINDATA section? If it is possible, please provide me the syntax for doing so.
Thanks in advance,
Sreelatha.
|
|
|
|
Re: how to load fix length formatted data from a file [message #242585 is a reply to message #242575] |
Mon, 04 June 2007 03:57 |
sreelatha-p
Messages: 2 Registered: June 2007
|
Junior Member |
|
|
thanks for the quick response...
But my doubt still exists. I am under the impression that, if we specify positions then we have to give the data to be loaded into database just after BEGINDATA keyword in the control file. Can the sqlldr map the positions specified in the control file to the data in input file?
If so, do you think the below control file syntax will load the data in file(mydata.csv) into the given table?
LOAD DATA
INFILE c:\mydata.csv
APPEND INTO TABLE load_positional_data
( data1 POSITION(1:4),
data2 POSITION(5:10),
data3 POSITION(11:20),
)
The content of file looks like:
1234asdfasAFD12$$hhd
2345safgshfggfhsadgf
46bh777787979jhfgjkk
.
.
3645234bbsjfhsj83478
|
|
|
|
|