Where does DBMS_OUTPUT.PUT_LINE() output go (in Toad) ? [message #221217] |
Sun, 25 February 2007 12:13 |
pstein
Messages: 7 Registered: February 2007
|
Junior Member |
|
|
Ok, I entered a PL-SQL script in TOAD's Procedure Editor
with a Cursor and some DBMS_OUTPUT.PUT_LINE(....)
commands.
I can compile this PL-SQL script (= no errors were shown).
But where does the output go?
I did not found an output pane/window where I can see the expected output.
Maybe I have to show/unhide this output window in Toad.
Or do I have to click another icon/menu after compilation to run this (only) compiled PL-SQL script ?
It is not a procedure but just a
DECLARE
...
BEGIN
...
END
construction
Peter
|
|
|
|
|
|
Re: Where does DBMS_OUTPUT.PUT_LINE() output go (in Toad) ? [message #221294 is a reply to message #221277] |
Mon, 26 February 2007 03:39 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Don't write this anonymous PL/SQL block in Procedure Editor - write it in SQL Editor and view output on the "DBMS Output" tab (ver. 8.6).
If you insist on using a procedure editor, make this anonymous PL/SQL block a procedure, and then execute it from SQL Editor using "EXEC procedure_name".
Sometimes it really behaves strange - although it is a very simple PL/SQL block (just like the one ThomasG wrote), you won't get anything. In such a case, check that DBMS Output is enabled (turn red button to a green one) and, possibly, set "Frequency of polling" to a minumum value (2 sec) - otherwise, you'll have to wait (default) 5 seconds for anything to appear.
If it doesn't help either, open another Tab in SQL Editor (again, ver. 8.6) and simply change tabs (from tab1 to tab2 and back) and you should see the output.
Very simple, isn't it? I hope it will be helpful too.
|
|
|
|
|
|
|
|