Operating System - HP-UX
1752813 Members
5991 Online
108789 Solutions
New Discussion юеВ

problem with loading long data using sqldr

 
Faris Hussain
New Member

problem with loading long data using sqldr

Hi,
I am trying to load some data in to table which contains a long datatype. The data i am trying to load contains a column that is pretty large, some up to 8000 characters which should go into the long datatype column.

when i use the sqlldr it does not give any errors, but only loads around 100 characters to this column .


here is my control file:
LOAD DATA
INFILE 'entity3.dat'
BADFILE 'entity3.bad'
TRUNCATE INTO TABLE SONEDBA.ENTITY3
FIELDS TERMINATED BY "@"
TRAILING NULLCOLS
(ENTITY_KEY, ID, ENTITY_NAME, BITMAP,PRIMARY_KEY_COLUMN, LOCK_VERSION, SQL_STATEMENT CHAR (20000))

entity3.dat file, which contains the data holds a column which is around 8000 charcaters.

I checked the control file but no errors.
The long datatype is SQL_STATEMENT column.

Thanks for your help inadvance..


DBA
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: problem with loading long data using sqldr

Faris,

have you looked into either writing a "c" or "perl" program to load your data? I think you are running into a command line IO length issue.

live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: problem with loading long data using sqldr

I assume that there are no '@'s within the SQL statements. You might try adding the 'optionally enclosed by '"' clause.

e.g.
FIELDS TERMINATED BY '@' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS

If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: problem with loading long data using sqldr

Hi Again:

I also suggest that you search Oracle's MetaLink. There are a number of posting with problems very similar to yours.
If it ain't broke, I can fix that.
Faris Hussain
New Member

Re: problem with loading long data using sqldr

Well,, i did try the optinally clase but did not work.
also, i set the bindsize to 20000 still have the same problem
DBA
Andreas D. Skjervold
Honored Contributor

Re: problem with loading long data using sqldr

Hi

No errors you say?? What about the .log file. Can you post it here?

Andreas
Only by ignoring what everyone think is important, can you be aware of what everyone ignores!