Oracle SqlPlus - saving output in a file but don't show on screen

simplfuzz picture simplfuzz · Jul 25, 2011 · Viewed 147.9k times · Source

Using SqlPlus for Oracle, how do I save the output of a query in a file but not show it on the terminal/prompt.

Answer

a_horse_with_no_name picture a_horse_with_no_name · Jul 25, 2011

Right from the SQL*Plus manual
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch8.htm#sthref1597

SET TERMOUT

SET TERMOUT OFF suppresses the display so that you can spool output from a script without seeing it on the screen.

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 is not supported in iSQL*Plus