Using SqlPlus for Oracle, how do I save the output of a query in a file but not show it on the terminal/prompt.
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
termout_off.sql
and call this from the SQL prompt:
SQL> @termout_off