You should not need to re-enable dbms_output once set, unless
something is disabling it or you are somehow invisibly losing
package state. There is nothing special about re-executing a PL/SQL
block that would do this. SQL*Plus: Release 11.2.0.1.0 Production on Thu Mar 10 00:38:33 2011 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> begin 2 dbms_output.put_line('Some output'); 3 end; 4 / Some output PL/SQL procedure successfully completed. SQL> r 1 begin 2 dbms_output.put_line('Some output'); 3* end; Some output PL/SQL procedure successfully completed. SQL> / Some output PL/SQL procedure successfully completed. RUN is documented here: http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12037.htm
|