How to get DBMS_OUTPUT.PUT_LINE() message to JAVA
807606Mar 6 2007 — edited Mar 28 2007How 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....