次のコードを使用して、Oracle データベースにクエリを実行しています。
SET pagesize 0
SET linesize 250
SET wrap ON
SET colsep ,
SET trims ON
SET truncate OFF
SET FEEDBACK OFF
COLUMN col1 format a6
COLUMN col2 format a4
COLUMN col3 format 9999.999
spool /var/tmp/test.dat
SELECT /*+ parallel(8) */
col1,
col2,
col3
FROM table;
spool off
exit
出力ファイルを次のようにしたい: YYYYMMDDHHMMSS_test.dat
これを行うには何が最善ですか?