Question

I am using Oracle SQL Developer (Version 18.4.0.376) and Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production "CORE 10.2.0.1.0 Production" TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production.

In the SQL Query Builder the output of DBMS_OUTPUT.PUT_LINE is not disabled automatically.

See the following screen shot:

enter image description here

Can any one suggest to me, how I can get rid of this issue?

Était-ce utile?

La solution

This works just fine:

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

Then your output will look like this:

PL/SQL procedure successfully completed.
Test

Reference: DBMS_OUTPUT (Oracle | Docs)

If you want to get rid of the PL/SQL procedure successfully completed message, then you can turn if off with the command SET FEEDBACK OFF. The whole thing will then look like this:

SET FEEDBACK OFF
SET SERVEROUTPUT ON
BEGIN
  DBMS_OUTPUT.PUT_LINE('Test');
END;

Your output will then be:

Test

Reference: How do I Suppress “PL/SQL procedure successfully completed” message in sqlplus? (Stack Overflow)
Reference: SQLPlus® User's Guide and Reference (Oracle | Help Center)*

Licencié sous: CC-BY-SA avec attribution
Non affilié à dba.stackexchange
scroll top