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

Viewed 163455

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

4 Answers

set termout off doesn't work from the command line, so create a file e.g. termout_off.sql containing the line:

set termout off

and call this from the SQL prompt:

SQL> @termout_off
Related