If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back  dBforums > Database Server Software > Oracle > SQLLDR with embedded carriage returns

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Registered User
Join Date: Oct 2006
Posts: 1
SQLLDR with embedded carriage returns

I have data in varchar fields using 10g that has been unloaded to a flat file, delimited with '|'. Some of the data has embedded carriage returns. When trying to load the data with SQLLDR it treats this as the end of record, then fails on the next row as well.

Is there a way to tell SQLLDR to ignore the carriage returns embedded in my data?

Reply With Quote
  #2 (permalink)  
Registered User
Join Date: Oct 2006
Posts: 4
SQLLDR can load records split across multiple physical lines; however, it needs to have lines flagged as part of the same logical record, and this has to be done positionally.

Look at the documentation for CONTINUEIF clause of the control file. Sounds like you may have to alter the file (say, with Perl) before loading it into the database. If you're lucky and have the same number of physical records for each logical record, you can use the CONTINUE clause.

Miguel Pascoe

The opinions expressed here are those of the author and do not necessarily reflect those of CGI.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On