I am logging my SQLPLUS session to a file.
SPOOL mylog.txt
But if I doing commands with a short output
e.g.
SELECT * FROM DUAL;
it is not immediately put into the file. It takes some commands. If it is a command with a large output it happens instantly.
So I think it is some sort of buffer that needs to be filled before writing to the file.
I tried
SET FLUSH ON
but is did not do the trick.
How can I tell SPOOL to flush the buffer immediately?