If your DBMS_OUTPUT.PUT_LINE code is not printing any of your logs or if you are just viewing "anonymous block completed". Following will fix the issue.
You need to configure a buffer for dbms_output. You can run following command in SQL Prompt:
SQL> set serveroutput on [size N|unlimited]
For example:
SQL> set serveroutput on size unlimited;
Above will set unlimited buffer size for dbms_output and below will set buffer size to 20000
SQL> set serveroutput on size 20000;
In SQL Developer, go to Menu View > 'DBMS Output' and to enable the DBMS Output window, push the green plus icon for a particular session.
1 Comment(s)