sending a CLOB to oracle via Websphere problem

From: Jon Roquet (jroquet_at_covad.net)
Date: 01/28/04


Date: Wed, 28 Jan 2004 07:54:40 -0600

I'm attempting to perform two different things with a Websphere 5.1
application connecting to an Oracle 9i database via JDBC.

First, I'm trying to send a large (approximately 500k) string to it to be
persisted as a CLOB. Unfortunately, I've been unable to find any method to
send this using Websphere datasources. The only method we've discovered that
works is to create our own connection pool, and then create the CLOB via the
temporary CLOB functions provided by Oracle.

However, we want to use Websphere datasources for this, not our own
connection pools.

The errors we received were all along the lines of "Too long".

Secondly, I'm trying to send even larger datablocks (about 1 meg) to a
stored procedure on our database. Same problem.

This appears to be a problem between JDBC and Oracle. Does anyone have any
insights into how I can send this data?

-- 
Jon "Adrenfreak" Roquet


Relevant Pages

  • Re: Oracle JDBC connection class (10.1 vs 10.2)
    ... Totally different recommendations for sharing connection object ... "The Oracle JDBC drivers provide full support for, ...
    (comp.databases.oracle.misc)
  • Oracle JDBC connection class (10.1 vs 10.2)
    ... We have come across rather puzzling difference in JDBC documentation ... Totally different recommendations for sharing connection object ... Oracle strongly discourages sharing a database connection ...
    (comp.databases.oracle.misc)
  • Re: Oracle specific jdbc and J2EE application server
    ... We need to use the Oracle specific jdbc features such as mapping an Java object to a Oracle Type and for that reason we need to cast the connection and statements returned from the jndi datasource to Oracle ... Typically these objects come from a pooled JDBC connection, and the application server needs to be able to guarantee that no two threads/users will be operating on a given pooled connection at the same time. ...
    (comp.lang.java.databases)
  • Re: Memory shooting up when using Oracle JDBC drivers
    ... I have a JDBC program connecting to Oracle 9i Database using ... memory stabiliases around 110MB. ... Do you store the PreparedStatement with the Connection? ...
    (comp.lang.java.databases)
  • problem inserting CLOB into oracle via JDBC thin driver through websphere
    ... Oracle 9.2.x server using JDBC thin client that gets it's connection ... via Websphere 5.1.1.x's datasource. ... object that websphere gives me can't be cast to an OracleConnection. ...
    (comp.lang.java.databases)