Oracle SqlPlus-将输出保存在文件中,但不显示在屏幕上 [英] Oracle SqlPlus - saving output in a file but don't show on screen
问题描述
使用SqlPlus for Oracle,如何将查询的输出保存在文件中,但不显示在终端/提示上.
Using SqlPlus for Oracle, how do I save the output of a query in a file but not show it on the terminal/prompt.
推荐答案
SQL * Plus手册中的权利
http://download.oracle.com/docs /cd/B19306_01/server.102/b14357/ch8.htm#sthref1597
Right from the SQL*Plus manual
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch8.htm#sthref1597
设置终止
SET TERMOUT OFF将抑制显示,以便您可以假脱机处理脚本中的输出,而无需 在屏幕上看到它.
SET TERMOUT OFF suppresses the display so that you can spool output from a script without seeing it on the screen.
如果不需要后台处理文件和写入终端,请使用> SQL脚本中的SET TERMOUT OFF禁用终端输出.
If both spooling to file and writing to terminal are not required, use SET TERMOUT OFF in >SQL scripts to disable terminal output.
SET TERMOUT
SET TERMOUT is not supported in iSQL*Plus
这篇关于Oracle SqlPlus-将输出保存在文件中,但不显示在屏幕上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!