0

enter image description here

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;
/
3
  • In Oracle sql developer the output not show after put set serveroutput on comment. Commented Mar 20, 2022 at 7:19
  • The window contains SET SERVEROUTPUT ON. But, did you actually execute it before running that PL/SQL block? Commented Mar 20, 2022 at 7:34
  • Was the "Dbms Output" pane already open and connected when you ran it; and did you click 'run statement' or 'run script'? Commented Mar 20, 2022 at 10:27

1 Answer 1

1

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:

  1. find an older copy of SQL Developer, which uses an older JDBC driver or
  2. Upgrade your database to something from this decade (19c would be best)

Obviously option 1 is the easiest and option 2 is the most desirable.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.