Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Escape sequences in SQL*Loader - Var [01/01]
In article <662uu5$bri$1_at_hermes.is.co.za>, "Billy Verreynne" <vslabs_at_onwe.co.za> wrote:
>Morten Myrvold wrote in message <660itn$reb$1_at_elle.eunet.no>...
>>I'm using SQL*Loader to load our database tables from text files. Some of
>>these columns contain text with CR's embedded. My question is: how do I
>>specify a CR (carriage return) in my SQL*Loader data file??? >
><snip>
>
>The only way (other than replacing CR's before loading) is to make use of
>the FIX option in SQL*Loader
There's also the VAR option which exactly fits Billy's needs. I had to bug support last February to find out about it since (from what I can tell) it's only documented in the problem repository (attached). I've found that TRAILING NULLCOLS does not work when sqlldr is in VAR mode. Also, to work around the problem in the "Notes:" section, I end up putting an extra column separator b4 the first char of the first field, then in the .ctl file I specify that my first column starts in position(2).
Oracle Corporate Support Problem Repository
Problem ID : 1011372.6 Affected Platforms : Generic: not platform specific Affected Products : Oracle7 Server Affected Components : RDBMS Generic Affected Oracle Vsn : Generic
Summary:
HOW TO LOAD CARRIAGE RETURNS IN SQLLOADER?
+=+
Problem Description:
Search Words: SQL*Loader loader return end line end-of-line \n newline var
+==+
Diagnostics and References:
2. Soln# 2059405.6 HOW TO LOAD CARRIAGE RETURN THROUGH SQLLOADER?
Solution ID : 2059405.6 For Problem : 1011372.6 Affected Platforms : Generic: not platform specific Affected Products : Oracle7 Server Affected Components : RDBMS Generic Affected Oracle Vsn : V07.XX
Summary:
HOW TO LOAD CARRIAGE RETURN THROUGH SQLLOADER?
+=+
WARNINGS:
Solution Description:
Control file Syntax:
In the datafile count the number of characters that make up your logical record (including the NEWLINE character) and precede this record by the count specified as a 5 digit length field.
For example:
Note:
+==+
References:
J.D. Laub (Laubster) |"I think you're very, very, very, very, very, jjdl_at_iasi.com |very, very, very, very, ..." - Flying Lizards to reply, remove the first letter of my email address (make it jdl) Received on Thu Dec 04 1997 - 00:00:00 CST