0

I have a procedure created in an external file as

create or replace procedure emp_select
is
begin
    dbms_output.put_line('Hello World');
end;
/

It is run in sqlplus using

@ /pathtofile

It gives procedure created

But exec emp_select; only says procedure executed successfully, but no output on screen

2
  • 6
    Did you run set serveroutput on; first? Commented Jan 9, 2015 at 3:07
  • That was the issue. set serveroutput on; fixed it . Commented Jan 9, 2015 at 3:12

1 Answer 1

4

Run this in SQL*Plus first:

set serveroutput on;
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.