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 -> problem with piecewise insert with oracle 8i

problem with piecewise insert with oracle 8i

From: Tilo Prütz <tilo_at_infopark.de>
Date: Tue, 4 Jun 2002 16:53:13 +0200
Message-ID: <adijs2$731$1@crusher.de.colt.net>


Hi!

I have to write large binary data into a LONG RAW column. To avoid an out of memory error I tried the piecewise writing following the sample code and the Oracle documentation.

Now my code does following:

open statement:

write piece:

close statement:

When running I insert som zero length columns, then one with 74 bytes, some with zero length, some with a length less 74 bytes again and then come 261 bytes of data and an ORA-24307 (invalid length for piece).

All I've found out is, that no data larger than the first one can be inserted.
All commands are running in one transaction.

Since the maximum column size is set with the OCIBindByPos and the piece size is set with the OCIStmtSetPieceInfo I have no clue why it does not works.

Maybe someone can help me?

Thanks

>tilo

P.S.: I am sorry for linguistical mistakes ... I prefer german ;)). Received on Tue Jun 04 2002 - 09:53:13 CDT

Original text of this message

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