SQL Loader - Loading Text File into Oracle Table that has carriage returns
Hi All,
I have a text file that I need to load into a table in Oracle using SQL Loader. I'm used to loading csv or comma delimited files into Oracle so I'm not sure what the syntax is when it comes to loading a text file that essentially has one value per row and each row is separated by a carriage return. So when you open the text file, the records look like this:
999999999 <CRLF>
888888889 <CRLF>
456777777 <CRLF>
456555535 <CRLF>
345688888 <CRLF>
...............
So each row is separated by a hard return and I need to tell sql loader that the hard return or next row is the next value to insert into the table. Below is an example of a control file I tend to use as a template for loading csv files but I need to modify it to accomodate this new structure.
OPTIONS (DIRECT=TRUE,ROWS=100000)
UNRECOVERABLE
LOAD DATA
INFILE 'C:\input.txt'
BADFILE 'C:\input.bad'
APPEND
INTO TABLE TEST_TABLE
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(
COLUMN_1
)
How to I modify the control file above to use hard returns as the field/row delimiter for my text file?
Thanks