CLOB in Java Stored Procedure.
590007Mar 28 2008 — edited Mar 30 2008Hi experts,
I want to write some java-code (CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED...)
where I want to return an String as CLOB.
For doing that I have to initialize the CLOB in the java-code.
I saw many examples like
CLOB.createTemporary(connection, true, oracle.sql.CLOB.DURATION_SESSION);
If I have to initialize the CLOB in the java source, how to do that (using empty_clob, but why using oracle...createTemporary then?)
I don't want an connection to an remote database, the java-code will be in the database, so can I call createTemporary without connection?
The String will be generated calling other java-code loaded with loadjava.
The java-source I want to write will be wrapped with PL/SQL.
Can you give us some pointers about this issue.
Thanks
parker.