Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> ORA 22922 nonexistent lob value with stored procedure
Hi
We have the following code which works flawlessly with Oracle 9.2, but throws an exception with Oracle 10g.
The blobl zip_desc is filled with data in the java based prepared call f_getLoginZip. In f_getLoginZip the blob is filled without problems and testing code shows that it contains the right data.
But after cstmt.execute() completes, the blob can no longer be referenced with zip_desc. The thrown exception is "ORA-22922: nonexistent lob value".
Is there another solution but to rewrite f_getLoginZip to return a
BLOB?
Bye
Patric
cstmt = (OracleCallableStatement) dbConn.prepareCall("{?=call f_getLoginZip(?,?,?,?)}");
cstmt.registerOutParameter (1, Types.INTEGER); cstmt.setString(2, username); cstmt.setString(3, application); cstmt.setBLOB(4, zip_desc); cstmt.setCLOB(5, xlogin_desc);