Use of Clob in WL 5.1

  • Thread starter Francisco Tazón Vega
  • Start date
F

Francisco Tazón Vega

Is it possible to use a CLOB on a Weblogic 5.1? If so, how can I do it? I'm
using WL 5.1 with Oracle 8.1.7 and when I try to read a clob field from
database using rs.getClob(1) or rs.getObject(1) I get a message like
"..oracle.sql.CLOB is not Seriarizable...."

Thanks in advance.

Fran
 
S

Sudsy

Francisco said:
Is it possible to use a CLOB on a Weblogic 5.1? If so, how can I do it? I'm
using WL 5.1 with Oracle 8.1.7 and when I try to read a clob field from
database using rs.getClob(1) or rs.getObject(1) I get a message like
"..oracle.sql.CLOB is not Seriarizable...."

Unfortunately you have to use the Oracle classes. While you can find
much more on the Oracle Technology Network (<http://otn.oracle.com>)
you might also find an article I wrote useful:
<http://www.sudsy.net/technology/clobs.html>
 
A

anonymous

Francisco said:
Is it possible to use a CLOB on a Weblogic 5.1? If so, how can I do it? I'm
using WL 5.1 with Oracle 8.1.7 and when I try to read a clob field from
database using rs.getClob(1) or rs.getObject(1) I get a message like
"..oracle.sql.CLOB is not Seriarizable...."

Thanks in advance.

Fran
I think you have to include Oracle's classes12.zip. I have code like this:

import oracle.jdbc.OracleTypes;

// offersList is a CallableStatement
offersList.registerOutParameter(1, OracleTypes.CLOB);


Clob clob = offersList.getClob(1);

// result is a String
result = clob.getSubString(1, (int)clob.length());

I use this to retrieve xml that can be more than 32Kb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top