Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with over 4k XMLType

767526Apr 23 2012 — edited Apr 23 2012
Hi,

I try to insert into table with a column type of XMLType a big XML String over 4K using java code.
and get the following ORA error :

ORA-01461: can bind a LONG value only for insert into a LONG column


My table definishion is :

CREATE TABLE TESTTABLE(
id NUMBER(22),
XMLVAL XMLTYPE
)
XMLType COLUMN XMLVAL
STORE AS CLOB (
TABLESPACE data01
STORAGE (INITIAL 100k NEXT 5k )
CHUNK 4096 NOCACHE LOGGING

);

my insert query is :

INSERT INTO TESTTABLE values (1 , XMLType(?))

I am already using OJBC6 jar (mean oracle driver for 11G) and my database is 11G as well.

Any suggestions for a workaround ?

10x

Edited by: Reem on Apr 23, 2012 8:22 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2012
Added on Apr 23 2012
1 comment
413 views