2

I am using sql developer and I have oracle database 10g and DBMS_OUTPUT.PUT_LINE() doesn't print. I have tried every way.

SET SERVEROUTPUT ON;
BEGIN
DBMS_OUTPUT.PUT_LINE('hello');
END;

With this code it only states PL/SQL procedure successfully completed. But it doesn't print hello.

jarlh
  • 42,561
  • 8
  • 45
  • 63
s250695
  • 39
  • 1
  • 5
  • That's for SQL*Plus. Does this answer your question? [Printing the value of a variable in SQL Developer](https://stackoverflow.com/questions/7887413/printing-the-value-of-a-variable-in-sql-developer) – Álvaro González Feb 03 '20 at 08:53
  • I think because your database is so old, the jdbc driver won't get your output from the buffer – thatjeffsmith Feb 03 '20 at 09:34

2 Answers2

0

Did you turn the output on in the sql developer settings?

Try the following:

  1. View -> Dbms Output

  2. On a new dbms output tab there is a green cross "Enable DBMS OUTPUT for the connection". Click it

ekochergin
  • 4,109
  • 2
  • 12
  • 19
0

You need to activate the DBMS Output screen and then choose the workspace you are working too, click on the PLUS button.

Lucas Mouta
  • 1
  • 1
  • 2