Running this, I see no output other than 'completed'
set serveroutput on
declare
message varchar2(20) := 'Hello, World';
begin
dbms_output.put_line(message);
end;
/
Running this, I see no output other than 'completed'
set serveroutput on
declare
message varchar2(20) := 'Hello, World';
begin
dbms_output.put_line(message);
end;
/
I have seen this behavior before, and it's always because your database is too old.
Are you using something older than 11gR2 on the database? If so, our newer jdbc drivers no longer support DMBS_OUTPUT polling on 9i and 10g of the Database.
Your options are:
Obviously option 1 is the easiest and option 2 is the most desirable.