Hi,
I try to do some output to the Message window in SqlWorkbench, connected to Oracle 12g database.
I tried the following:
CREATE OR REPLACE PROCEDURE AndreasTest AS
BEGIN
dbms_output.put_line('DEBUG: starting ');
dbms_output.put_line('DEBUG: middle ');
dbms_output.put_line('DEBUG: finished ');
END;
/
then for running the procedure:
set serveroutput on;
exec AndreasTest();
the result:
Execution time: 0ms
Statement 1 of 2 finished (2022-04-13 15:59:59.901)
???
???
???
AndreasTest executed successfully
Execution time: 6ms
Statement 2 of 2 finished (2022-04-13 15:59:59.925)
Script execution finished (2022-04-13 15:59:59.937)
Total script execution time: 6ms
If I change the number of put_line calls, this will change the number of "???" lines in the output.
If I use SET SERVEROUTPUT OFF the lines with the ??? will not appear.
So SET SERVEROUTPUT is working.
The put_line only works insofar as it creates a ??? line - but not a line with the given text.
Do I need to configure something to get the real text instead of the ???
It does not help to replace the "exec" with "wbCall" ...
Thanks in advance
Andreas