Skip to Main Content

Java Programming

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!

How to get DBMS_OUTPUT.PUT_LINE() message to JAVA

807606Mar 6 2007 — edited Mar 28 2007
How to redirect DBMS_OUTPUT.PUT_LINE() message to JAVA.

e.g.
DECLARE
i number :=10;
BEGIN
if i>5 then
DBMS_OUTPUT.PUT_LINE('i is greater.')
else
DBMS_OUTPUT.PUT_LINE('i is small' ) ;
END;

I want to capture message "i is greater" in Java.

Thanks....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2007
Added on Mar 6 2007
5 comments
779 views