set serveroutput on即打开oracle自带的输出方法dbms_output。在执行set serveroutput on以后,使用dbms_output方法可以输出信息需要在SQL*PLUS环境中设定如下命令:SQLPLUS> set serveroutput on就可以输出了。