javakid1993 javakid1993 - 1 month ago 16
SQL Question

Oracle output in sqlplus

I have an oracle stored procedure which has output to the users in the form of

DBMS_OUTPUT.PUT_LINE('....');


I run the stored procedure through .sql file in sqlplus and none of the output messages of the stored procedures are being shown in sqlplus command window. How could I get the outputs to show in the command window?

Thanks,

Answer

You need set your server output to on by this command:

SET serververoutput ON;

Cheers!