Computing.Net > Forums > Database > Using sqlldr to insert blob?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Using sqlldr to insert blob?

Reply to Message Icon

Name: wvr
Date: March 2, 2007 at 11:49:26 Pacific
OS: na
CPU/Ram: na
Comment:

Hi,

I used bcp to extract two rows of data into a file from a Sybase database. One of the columns in each row containts blob data. I'm not trying to use sqlldr to insert the data from the file into an Oracle database, but I keep getting this message:

Record 1: Rejected - Error on table BLOBTEST, column TXDATA.
Field in data file exceeds maximum length
Record 2: Rejected - Error on table BLOBTEST, column TXDATA.
Field in data file exceeds maximum length

Ideas? Hints?



Sponsored Link
Ads by Google

Response Number 1
Name: wvr
Date: March 2, 2007 at 11:50:08 Pacific
Reply:

*I'm NOW trying to use sqlldr. Typo, sorry.


0

Response Number 2
Name: Stephen Hall
Date: March 3, 2007 at 10:45:26 Pacific
Reply:

wvr,

Never used Oracle or Sybase, but it looks like you're trying to put too much data into the Oracle field. Am I correct in assuming that TXDATA is the Oracle BLOB field the Sybase BLOB is being loaded into?

Just looked in my O'Reilly SQL in a Nutshell book and it says that the Oracle BLOB data type takes a value "...between 8 and 128 terabytes, depending on the database block size." This should be more than sufficient for _any_ field being imported from the Sybase database. Heh, maybe even the whole Sybase database itself. ;)

Are you sure that the TXDATA field is a BLOB data type? Have you checked to make sure that the order of fields are the same in both databases? (i.e. the BLOB field is field #4 in both tables??)

Could you show the table layouts from both Sybase and Oracle?

Just some thoughts,

Stephen


"Live long and PROGRAM......or at least do _something_ with all that time...!"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Using sqlldr to insert blob?

using administrator to reset psswrd www.computing.net/answers/dbase/using-administrator-to-reset-psswrd/432.html

MySql Insert Status problem www.computing.net/answers/dbase/mysql-insert-status-problem/304.html

Problem in inserting values to a table in SQL www.computing.net/answers/dbase/problem-in-inserting-values-to-a-table-in-sql/710.html