0

I'm trying to display a message in oracle sql develper on oracle 11g. Straight from the doc: http://www.oracle.com/technetwork/issue-archive/2011/11-mar/o21plsql-242570.html

DECLARE
  l_message  
  VARCHAR2 (100) := 'Hello World!';
BEGIN
  DBMS_OUTPUT.put_line (l_message);
END;

gives me a message:

anonymous block completed

why?

1
  • 4
    try adding "SET SERVEROUTPUT ON" Commented Mar 20, 2015 at 1:02

1 Answer 1

2

I'm trying to display a message in oracle sql develper on oracle 11g.

In SQL Developer tool, you need to view the DBMS_OUTPUT window.

enter image description here

Alternatively, you could use SET SERVEROUTPUT ON and execute the anonymous block as a script or press F5.

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.