1、进入SQLPLUS ,登录数据库;2、输入命令: set serverout on;3、使用dbms_output.put_line('aa='||aa);进行输出。
此外SQLPLUS还提供了错误查看命令show errors;