[20190603]关于dbms_output输出问题.txt --//以前遇到的问题,重新做一个记录: --//链接:http://www.itpub.net/thread-2096243-1-1.html 1.环境: SYS@book> @ ver1 PORT_STRING VERSION BANNER ------------------- ---------- ---------------------------------------------------------------------------- x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production 2.测试: SCOTT@book> set serveroutput OFF SCOTT@book> call dbms_output.enable(1e6); Call completed. SCOTT@book> exec DBMS_OUTPUT.put_line ('this is a first test!'); PL/SQL procedure successfully completed. --//现在不显示是正常的。因为设置serveroutput OFF. SCOTT@book> set serverout on SCOTT@book> exec DBMS_OUTPUT.put_line ('this is a second test!'); this is a first test! this is a second test! PL/SQL procedure successfully completed. --//OK,现在把在缓存的第一行一起显示出来,出现了2行,主要我打开了dbms_output.enable(1e6),缺省这个是disable。再次执行就不会了。 SCOTT@book> exec DBMS_OUTPUT.put_line ('this is a third test!'); this is a third test! PL/SQL procedure successfully completed. --//但是如果执行set serveroutput OFF后没有执行call dbms_output.enable(1e6);缓存就关闭了. 3.继续测试: SCOTT@book> set serverout off SCOTT@book> exec DBMS_OUTPUT.put_line ('this is a 111 test!'); PL/SQL procedure successfully completed. SCOTT@book> set serverout on SCOTT@book> exec DBMS_OUTPUT.put_line ('this is a 222 test!'); this is a 222 test! PL/SQL procedure successfully completed.
[20190603]关于dbms_output输出问题.txt
来源:这里教程网
时间:2026-03-03 13:49:08
作者:
编辑推荐:
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- ORACLE for windows 审计文件xml文件过多导致数据库启动报错ORA-09925
- Oracle启动两个监听
Oracle启动两个监听
26-03-03 - 11g ADG 出现FAL[client,USER]:error 12154 connect to orcl for fetching gap
- Oracle中的12C新特性-容器数据库概念-基本操作
Oracle中的12C新特性-容器数据库概念-基本操作
26-03-03 - Debian模型评估指标(在Debian系统中计算机器学习模型性能的完整指南)
- 在 Linux 上检测硬盘上的坏道和坏块
在 Linux 上检测硬盘上的坏道和坏块
26-03-03 - 有关oracle字符与字节的整理
有关oracle字符与字节的整理
26-03-03 - 运行lsnrctl 命令 挂机,超时TNS-12525: TNS-12535:TNS-12606:
- ORACLE OCM备考之外部表管理使用非压缩属性脚本报错KUP-04095与权限
- 删除表空间时报ORA-00604、ORA-38301问题解决
删除表空间时报ORA-00604、ORA-38301问题解决
26-03-03
