Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Solved - SQLLoader and clob fields

RE: Solved - SQLLoader and clob fields

From: <Yosi_at_comhill.com>
Date: Tue, 28 Nov 2000 12:27:10 -0500
Message-Id: <10694.123100@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C05960.70BCD590
Content-Type: text/plain;

        charset="iso-8859-1"

None. I simply commented them out and it worked. It was a one time relatively small load. I'd have to investigage further if I had to do this regularly.  

Sorry.  

Yosi    

 -----Original Message-----
From: Alex Hillman [mailto:alex_hillman_at_physia.com] Sent: Tuesday, November 28, 2000 10:52 AM To: Multiple recipients of list ORACLE-L Subject: RE: Solved - SQLLoader and clob fields

So what are the values of these parameters did you use? And how did you selected these values?

Alex Hillman

-----Original Message-----
From: Yosi_at_comhill.com [ mailto:Yosi_at_comhill.com <mailto:Yosi_at_comhill.com> ]

Sent: Wednesday, November 22, 2000 4:41 PM To: Multiple recipients of list ORACLE-L Subject: RE: Solved - SQLLoader and clob fields

The problem had to do with the parameters ROWS, READSIZE, and BINDSIZE. I have
no idea what exactly the problem was, and, given the chance, I'll look more closely.

For now though, I have it working.. Thanks to those who helped.

Yosi

> -----Original Message-----
> From: Shakeel Qureshi [ mailto:msklq_at_yahoo.com <mailto:msklq_at_yahoo.com> ]
> Sent: Wednesday, November 22, 2000 3:21 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Re: SQLLoader and clob fields
>
>
> Hi Yosi,
>
> Just write udef char(50000) and try.
>
> Shakeel Qureshi
> squreshi_at_barpoint.com
>
> --- Yosi Greenfield <yosi_at_comhill.com> wrote:
> > All,
> >
> > How do you load a clob in sql/loader?
> >
> > I'm running sql/loader to load a three field table.
> > The table structure is:
> >
> > ucui varchar2 (8)
> > usab varchar2 (7)
> > udef clob
> >
> > The third field (udef) is a clob field. The data
> > file contains three fields per
> > line,
> > each field - including the last field on the line -
> > terminated by the delimiter
> > '|'.
> >
> > The control file is listed at bottom. It's pretty
> > vanilla, except for the field
> > definition:
> >
> > UDEF CHAR(5796) NULLIF UDEF = BLANKS
> >
> > which specifies a length, since it would otherwise
> > default to 255, and my field
> >
> > would be too long.
> >
> > The rows load without error, but the value in the
> > database is wrong. The udef
> > field
> > loaded into the database for a given record is the
> > udef for a different record.
> >
> > My guess is that the length of the control file
> > field definition is wrapping to
> > and
> > reading the next record or several records. However,
> > I am using field
> > delimiters,
> > so that shouldn't be happening. Also, the record
> > that IS being loaded (the
> > incorrect one) is not necessarily near (in the
> > datafile) the record that should
> > be
> > loaded. Lastly, the first two fields of the
> > following records are not being
> > loaded
> > into the udef field - which I would think would be
> > the case if too much data
> > is being read - only a different record's udef
> > field.
> >
> > If you've read this far - wow! Thanks for any help
> > forthcoming.
> >
> > Yosi
> >
> > Control file for above:
> >
> > LOAD DATA
> > INFILE 'm:\flatfiles\MRDEF.'
> > INSERT
> > INTO TABLE MRDEF
> > FIELDS TERMINATED BY'|'
> > (
> > UCUI CHAR NULLIF UCUI = BLANKS,
> > USAB CHAR NULLIF USAB =BLANKS,
> > UDEF CHAR(5796) NULLIF UDEF = BLANKS
> > )
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/ <http://shopping.yahoo.com/>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
<http://www.orafaq.com>
> --
> Author: Shakeel Qureshi
> INET: msklq_at_yahoo.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
<http://www.orafaq.com>  
-- 
Author: 
  INET: Yosi_at_comhill.com 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051 
San Diego, California        -- Public Internet access / Mailing Lists 
-------------------------------------------------------------------- 
To REMOVE yourself from this mailing list, send an E-Mail message 
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in 
the message BODY, include a line containing: UNSUB ORACLE-L 
(or the name of mailing list you want to be removed from).  You may 
also send the HELP command for other information (like subscribing). 


------_=_NextPart_001_01C05960.70BCD590
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: Solved - SQLLoader and clob fields</TITLE>

<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=863192417-28112000>None. 
I simply commented them out and it worked. It was a one time</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000>relatively small load. I'd have to </SPAN></FONT><FONT 
face=Arial color=#0000ff size=2><SPAN class=863192417-28112000>investigage 
further if I had to do this regularly.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000>Sorry.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000>Yosi</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=863192417-28112000>&nbsp;</SPAN></FONT><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> Alex Hillman 
[mailto:alex_hillman_at_physia.com]<BR><B>Sent:</B> Tuesday, November 28, 2000 
10:52 AM<BR><B>To:</B> Multiple recipients of list ORACLE-L<BR><B>Subject:</B> 
RE: Solved - SQLLoader and clob fields<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <P><FONT size=2>So what are the values of these parameters did you use? And 
  how did you selected these values?</FONT> </P>
  <P><FONT size=2>Alex Hillman</FONT> </P>
  <P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: 
  Yosi_at_comhill.com [<A 
  href="mailto:Yosi_at_comhill.com">mailto:Yosi_at_comhill.com</A>]</FONT> <BR><FONT 
  size=2>Sent: Wednesday, November 22, 2000 4:41 PM</FONT> <BR><FONT size=2>To: 
  Multiple recipients of list ORACLE-L</FONT> <BR><FONT size=2>Subject: RE: 
  Solved - SQLLoader and clob fields</FONT> </P><BR>
  <P><FONT size=2>The problem had to do with the parameters ROWS, READSIZE, and 
  BINDSIZE. I</FONT> <BR><FONT size=2>have</FONT> <BR><FONT size=2>no idea what 
  exactly the problem was, and, given the chance, I'll look more</FONT> 
  <BR><FONT size=2>closely.</FONT> </P>
  <P><FONT size=2>For now though, I have it working.. Thanks to those who 
  helped.</FONT> </P>
  <P><FONT size=2>Yosi</FONT> </P>
  <P><FONT size=2>&gt; -----Original Message-----</FONT> <BR><FONT size=2>&gt; 
  From: Shakeel Qureshi [<A 
  href="mailto:msklq_at_yahoo.com">mailto:msklq_at_yahoo.com</A>]</FONT> <BR><FONT 
  size=2>&gt; Sent: Wednesday, November 22, 2000 3:21 PM</FONT> <BR><FONT 
  size=2>&gt; To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT 
  size=2>&gt; Subject: Re: SQLLoader and clob fields</FONT> <BR><FONT 
  size=2>&gt; </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; Hi 
  Yosi,</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; Just write 
  udef char(50000) and try.</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT 
  size=2>&gt; Shakeel Qureshi</FONT> <BR><FONT size=2>&gt; 
  squreshi_at_barpoint.com</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT 
  size=2>&gt; --- Yosi Greenfield &lt;yosi_at_comhill.com&gt; wrote:</FONT> 
  <BR><FONT size=2>&gt; &gt; All,</FONT> <BR><FONT size=2>&gt; &gt; 
  </FONT><BR><FONT size=2>&gt; &gt; How do you load a clob in sql/loader?</FONT> 
  <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; &gt; I'm running 
  sql/loader to load a three field table.</FONT> <BR><FONT size=2>&gt; &gt; The 
  table structure is:</FONT> <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT 
  size=2>&gt; &gt;&nbsp;&nbsp; ucui varchar2 (8)</FONT> <BR><FONT size=2>&gt; 
  &gt;&nbsp;&nbsp; usab varchar2 (7)</FONT> <BR><FONT size=2>&gt; 
  &gt;&nbsp;&nbsp; udef&nbsp; clob</FONT> <BR><FONT size=2>&gt; &gt; 
  </FONT><BR><FONT size=2>&gt; &gt; The third field (udef) is a clob field. The 
  data</FONT> <BR><FONT size=2>&gt; &gt; file contains three fields per</FONT> 
  <BR><FONT size=2>&gt; &gt; line,</FONT> <BR><FONT size=2>&gt; &gt; each field 
  - including the last field on the line -</FONT> <BR><FONT size=2>&gt; &gt; 
  terminated by the delimiter</FONT> <BR><FONT size=2>&gt; &gt; '|'.</FONT> 
  <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; &gt; The control file 
  is listed at bottom. It's pretty</FONT> <BR><FONT size=2>&gt; &gt; vanilla, 
  except for the field</FONT> <BR><FONT size=2>&gt; &gt; definition:</FONT> 
  <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; &gt;&nbsp;&nbsp; UDEF 
  CHAR(5796) NULLIF UDEF = BLANKS</FONT> <BR><FONT size=2>&gt; &gt; 
  </FONT><BR><FONT size=2>&gt; &gt; which specifies a length, since it would 
  otherwise</FONT> <BR><FONT size=2>&gt; &gt; default to 255, and my 
  field</FONT> <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; &gt; 
  would be too long.</FONT> <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT 
  size=2>&gt; &gt; The rows load without error, but the value in the</FONT> 
  <BR><FONT size=2>&gt; &gt; database is wrong. The udef</FONT> <BR><FONT 
  size=2>&gt; &gt; field</FONT> <BR><FONT size=2>&gt; &gt; loaded into the 
  database for a given record is the</FONT> <BR><FONT size=2>&gt; &gt; udef for 
  a different record.</FONT> <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT 
  size=2>&gt; &gt; My guess is that the length of the control file</FONT> 
  <BR><FONT size=2>&gt; &gt; field definition is wrapping to</FONT> <BR><FONT 
  size=2>&gt; &gt; and</FONT> <BR><FONT size=2>&gt; &gt; reading the next record 
  or several records. However,</FONT> <BR><FONT size=2>&gt; &gt; I am using 
  field</FONT> <BR><FONT size=2>&gt; &gt; delimiters,</FONT> <BR><FONT 
  size=2>&gt; &gt; so that shouldn't be happening.&nbsp; Also, the record</FONT> 
  <BR><FONT size=2>&gt; &gt; that IS being loaded (the</FONT> <BR><FONT 
  size=2>&gt; &gt; incorrect one) is not necessarily near (in the</FONT> 
  <BR><FONT size=2>&gt; &gt; datafile) the record that should</FONT> <BR><FONT 
  size=2>&gt; &gt; be</FONT> <BR><FONT size=2>&gt; &gt; loaded. Lastly, the 
  first two fields of the</FONT> <BR><FONT size=2>&gt; &gt; following records 
  are not being</FONT> <BR><FONT size=2>&gt; &gt; loaded</FONT> <BR><FONT 
  size=2>&gt; &gt; into the udef field - which I would think would be</FONT> 
  <BR><FONT size=2>&gt; &gt; the case if too much data</FONT> <BR><FONT 
  size=2>&gt; &gt; is being read - only a different record's udef</FONT> 
  <BR><FONT size=2>&gt; &gt; field.</FONT> <BR><FONT size=2>&gt; &gt; 
  </FONT><BR><FONT size=2>&gt; &gt; If you've read this far - wow! Thanks for 
  any help</FONT> <BR><FONT size=2>&gt; &gt; forthcoming.</FONT> <BR><FONT 
  size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; &gt; Yosi</FONT> <BR><FONT 
  size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; &gt; Control file for 
  above:</FONT> <BR><FONT size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; &gt; 
  LOAD DATA</FONT> <BR><FONT size=2>&gt; &gt; INFILE&nbsp; 'm:\flatfiles\MRDEF.' 
  </FONT><BR><FONT size=2>&gt; &gt; INSERT</FONT> <BR><FONT size=2>&gt; &gt; 
  INTO TABLE MRDEF</FONT> <BR><FONT size=2>&gt; &gt; FIELDS TERMINATED 
  BY'|'</FONT> <BR><FONT size=2>&gt; &gt; (</FONT> <BR><FONT size=2>&gt; &gt; 
  UCUI CHAR NULLIF UCUI = BLANKS,</FONT> <BR><FONT size=2>&gt; &gt; USAB CHAR 
  NULLIF USAB =BLANKS,</FONT> <BR><FONT size=2>&gt; &gt; UDEF CHAR(5796) NULLIF 
  UDEF = BLANKS</FONT> <BR><FONT size=2>&gt; &gt; )</FONT> <BR><FONT size=2>&gt; 
  &gt; </FONT><BR><FONT size=2>&gt; &gt; </FONT><BR><FONT size=2>&gt; 
  </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; 
  __________________________________________________</FONT> <BR><FONT 
  size=2>&gt; Do You Yahoo!?</FONT> <BR><FONT size=2>&gt; Yahoo! Shopping - 
  Thousands of Stores. Millions of Products.</FONT> <BR><FONT size=2>&gt; <A 
  target=_blank 
  href="http://shopping.yahoo.com/">http://shopping.yahoo.com/</A></FONT> 
  <BR><FONT size=2>&gt; -- </FONT><BR><FONT size=2>&gt; Please see the official 
  ORACLE-L FAQ: <A target=_blank 
  href="http://www.orafaq.com">http://www.orafaq.com</A></FONT> <BR><FONT 
  size=2>&gt; -- </FONT><BR><FONT size=2>&gt; Author: Shakeel Qureshi</FONT> 
  <BR><FONT size=2>&gt;&nbsp;&nbsp; INET: msklq_at_yahoo.com</FONT> <BR><FONT 
  size=2>&gt; </FONT><BR><FONT size=2>&gt; Fat City Network 
  Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX: (858) 538-5051</FONT> 
  <BR><FONT size=2>&gt; San Diego, 
  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet access 
  / Mailing Lists</FONT> <BR><FONT size=2>&gt; 
  --------------------------------------------------------------------</FONT> 
  <BR><FONT size=2>&gt; To REMOVE yourself from this mailing list, send an 
  E-Mail message</FONT> <BR><FONT size=2>&gt; to: ListGuru_at_fatcity.com (note 
  EXACT spelling of 'ListGuru') and in</FONT> <BR><FONT size=2>&gt; the message 
  BODY, include a line containing: UNSUB ORACLE-L</FONT> <BR><FONT size=2>&gt; 
  (or the name of mailing list you want to be removed from).&nbsp; You 
  may</FONT> <BR><FONT size=2>&gt; also send the HELP command for other 
  information (like subscribing).</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT 
  size=2>-- </FONT><BR><FONT size=2>Please see the official ORACLE-L FAQ: <A 
  target=_blank href="http://www.orafaq.com">http://www.orafaq.com</A></FONT> 
  <BR><FONT size=2>-- </FONT><BR><FONT size=2>Author: </FONT><BR><FONT 
  size=2>&nbsp; INET: Yosi_at_comhill.com</FONT> </P>
  <P><FONT size=2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) 
  538-5051&nbsp; FAX: (858) 538-5051</FONT> <BR><FONT size=2>San Diego, 
  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet access 
  / Mailing Lists</FONT> <BR><FONT 
  size=2>--------------------------------------------------------------------</FONT> 
  <BR><FONT size=2>To REMOVE yourself from this mailing list, send an E-Mail 
  message</FONT> <BR><FONT size=2>to: ListGuru_at_fatcity.com (note EXACT spelling 
  of 'ListGuru') and in</FONT> <BR><FONT size=2>the message BODY, include a line 
Received on Tue Nov 28 2000 - 11:27:10 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US