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

Home -> Community -> Usenet -> c.d.o.server -> Re: uploading BLOB data using SQLLoader

Re: uploading BLOB data using SQLLoader

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Thu, 19 Jan 2006 20:30:24 +0100
Message-ID: <dqoomq$bfb$2@news4.zwoll1.ov.home.nl>


Fiat wrote:
> We are migrating from sql server 6.5 to oracle 9 release 2.
> I am using bcp to extract the data of Sql server tables into a flat
> file (.dat) which also has image data type in it. when i use SQL*
> Loader script to load it, sql loader throws an error.
> saying no data can be uploaded with DATA. I have defined the data type
> as BLOB in oracle for image data type of SQL Server.
> The .ctl file for the table is:
>
> load data
> infile 'CABS.dat' "str '<er>'"
> into table CABS
> fields terminated by '<ec>'
> trailing nullcols
> (ROWID_,
> PKGROWID_,
> NAME CHAR(255) "DECODE(:NAME, CHR(00), ' ', :NAME)",
> DATA CHAR(2000000) "HEXTORAW(:DATA)")
>
> can you suggest me a way how to use sql loader to upload the data ?
>

You'll have to break the source into parts, and save externally. The load them as such (external files, containing blobs)

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Thu Jan 19 2006 - 13:30:24 CST

Original text of this message

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