Oracle:使用 Toad 设置 SERVEROUTPUT ON

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1699443/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 02:13:03  来源:igfitidea点击:

Oracle: SET SERVEROUTPUT ON with Toad

oracle

提问by Ricky

I put SET SERVEROUTPUT ON SIZE UNLIMITED FORMAT WRAPPED; in glogin.sql, but Toaddoesn't seem to take this configuration. In other words, the following PL\SQL wpuldn't print output:

我把SET SERVEROUTPUT ON SIZE UNLIMITED FORMAT WRAPPED; 在glogin.sql 中,但Toad似乎没有采用这种配置。换句话说,以下 PL\SQL 不会打印输出:

BEGIN
    DBMS_OUTPUT.PUT_LINE('Hello World');
END;

How could I make Toad auto shows PL\SQL output? Thanks

如何让 Toad 自动显示 PL\SQL 输出?谢谢

采纳答案by Tony Andrews

glogin.sql is a script run automatically by SQL Plus; as far as I'm aware Toad does not run this script. In Toad there is a "DBMS Output" pane at the bottom of the Editor window, and a red button at the top left of the pane to turn output on.

glogin.sql 是 SQL Plus 自动运行的脚本;据我所知,Toad 不运行此脚本。在 Toad 中,编辑器窗口底部有一个“DBMS 输出”窗格,窗格左上角有一个用于打开输出的红色按钮。