dbTalk Databases Forums  

load big text file into long field

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss load big text file into long field in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vuht2000@yahoo.com
 
Posts: n/a

Default load big text file into long field - 05-24-2004 , 04:12 PM






Hi friends,
I have a text file of size 30M, single-line and want to load it to a
table in my oracle (9i) database. The table has only 1 column of type
long. However sqlldr always returns this error:
SQL*Loader-510: Physical record in data file is longer than the
maximum(1048576)

Here's the control file:

unrecoverable LOAD DATA
INFILE '/home/oracle/chr1_sequence.txt'
INTO TABLE chr_sequences
FIELDS TERMINATED BY "\t" OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(chr_sequence)

I also played something with the control file (like readsize,
bindsize) but couldn't get it work.
Can anybody help me?
thanks,
Tam

Reply With Quote
  #2  
Old   
Romeo Olympia
 
Posts: n/a

Default Re: load big text file into long field - 05-24-2004 , 09:29 PM






2 Things:

(1) You're trying to load a large object (30MB). See the Oracle
Utilities / Sqlloader documentation for info on loading LOBs.

(2) Do consider using CLOB datatype instead of LONG. This will save
you from numerous headaches in the future.

Cheers,

Romeo

vuht2000 (AT) yahoo (DOT) com wrote in message news:<c9cd729c.0405241312.256e76cc (AT) posting (DOT) google.com>...
Quote:
Hi friends,
I have a text file of size 30M, single-line and want to load it to a
table in my oracle (9i) database. The table has only 1 column of type
long. However sqlldr always returns this error:
SQL*Loader-510: Physical record in data file is longer than the
maximum(1048576)

Here's the control file:

unrecoverable LOAD DATA
INFILE '/home/oracle/chr1_sequence.txt'
INTO TABLE chr_sequences
FIELDS TERMINATED BY "\t" OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(chr_sequence)

I also played something with the control file (like readsize,
bindsize) but couldn't get it work.
Can anybody help me?
thanks,
Tam

Reply With Quote
  #3  
Old   
vuht2000@yahoo.com
 
Posts: n/a

Default Re: load big text file into long field - 05-27-2004 , 03:07 PM



Thank you so much for your advice, Romeo. It helps
Tam
rolympia (AT) hotmail (DOT) com (Romeo Olympia) wrote in message news:<42fc55dc.0405241829.4b941fca (AT) posting (DOT) google.com>...
Quote:
2 Things:

(1) You're trying to load a large object (30MB). See the Oracle
Utilities / Sqlloader documentation for info on loading LOBs.

(2) Do consider using CLOB datatype instead of LONG. This will save
you from numerous headaches in the future.

Cheers,

Romeo

vuht2000 (AT) yahoo (DOT) com wrote in message news:<c9cd729c.0405241312.256e76cc (AT) posting (DOT) google.com>...
Hi friends,
I have a text file of size 30M, single-line and want to load it to a
table in my oracle (9i) database. The table has only 1 column of type
long. However sqlldr always returns this error:
SQL*Loader-510: Physical record in data file is longer than the
maximum(1048576)

Here's the control file:

unrecoverable LOAD DATA
INFILE '/home/oracle/chr1_sequence.txt'
INTO TABLE chr_sequences
FIELDS TERMINATED BY "\t" OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(chr_sequence)

I also played something with the control file (like readsize,
bindsize) but couldn't get it work.
Can anybody help me?
thanks,
Tam

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.