Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006

    Unanswered: 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?


  2. #2
    Join Date
    Oct 2006
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts