I tried with:
clear screen (not work)
You are trying to clear a toad DBMS Output
screen using clear screen
command. Unfortunately, tools like toad are not supporting all the SQLPLUS
command. You can use clear screen
command when you are logged in with SQLPLUS
. See below ways to clear the screen
SQL> clear screen
which can also be shortened to
SQL> cl scr
And you can also use:
SQL> host clear
Or
SQL> ho clear
For your toad , in the DBMS Output
tab there is first button right to watch
, is used to clear the output of buffer.
You may try
dbms_output.enable(100000);
Keep in mind that you'll only see results once your PL/SQL block is over. It's not immediate to see result from Oracle PL/SQL during execution. You may try something like explained here.
We can use enable/disable option of DBMS_OUTPUT to either keep DBMS_OUTPUT Console clean or print the instructions you wanted to be passed.
For a sample code
Begin
DBMS_OUTPUT.DISABLE;
--code you want to ignore
DBMS_OUTPUT.PUT_LINE('HI');
DBMS_OUTPUT.ENABLE;
DBMS_OUTPUT.PUT_LINE('Hello');