Am trying to do update a clob column using a connection object that is retrieved using Apache DBCP connection pooling.
Earlier, I've implemented connection pooling using this and it was working fine i.e am able to update CLOB. I switched to DBCP because I was getting java.sql.SQLException: ORA-01000: maximum open cursors exceeded. I've checked connection, resultSet, preparedStatement objects in all the DAOs. All the finally blocks have these cursors closed. Still am facing this error and so decided to switch to DBCP.
But, when I try to update CLOB, with this DBCP connection, the application just hangs at pstmt.executeUpdate().
where getCLOB() method is:
I've tried by passing the ((DelegatingConnection) conn).getInnermostDelegate() connection, but no use.
Also, the same is happening when I try to 'SELECT the CLOB column FOR UPDATE'.
Am using Oracle 9i and the JDBC Oracle Driver version is above 10.