?
Solved

SQL LOADER:carraige return inside field value

Posted on 1998-10-08
2
Medium Priority
?
1,148 Views
Last Modified: 2008-02-01
I am trying to load data into Oracle using SQL Loader. One field is of datatype varchar(255) and has carraige returns inside it. When I try to load the data it takes the carraige return , line feed as an end of line and tries to continue after that and the operation fails. Is there a way to handle this? As a last option I will write a script to search and replace all such CR and LF with some other character, but I was wondering if this could be tackled in any way other than that. I am bcp ing out the data from Sybase and loading it to Oracle. Basically how can I specify a different row terminator other than CR and LF and load the file using SQL Loader.
0
Comment
Question by:jbiswas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
junfeb earned 300 total points
ID: 1081898
SQL*LOADER in the way it works treats CR as end of row. There isn't an easy way to tell it to not treat CR as end of current row. So I guess you need to start writing that script to get rid of the CR if you want to use sql*loader to load the data.

Thanks.
0
 

Expert Comment

by:jacs
ID: 1081899
You can try with this options

* Use RECLEN sentence to set then oy de row.

* Use the CONCATENATE option to set a number of lines inside
a row.

* Use TERMINATED sentence to set the terminator for the fields.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question