Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

CLOB in Java Stored Procedure.

590007Mar 28 2008 — edited Mar 30 2008
Hi 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2008
Added on Mar 28 2008
3 comments
1,523 views