The same way I like to keep a spool of all SQL*Plus output, I like it when I SSH into a server. Putty can do this, and it’s easy to have it by default.
On the stored sessions section, click on “Default Settings”, then on “Load”. Select “Logging” on the left side, and on the “Log file name” box, paste this:
Then get back to “Session”, click on “Default Settings”, then on “Save” and you’re done.
Personally, I also changed these settings:
Window – Lines of scrollback: 20000 (always handy being able to see what you’ve done)
Connection – Seconds between keepalives: 60 (this avoids any firewall between you and the database server from dropping your connection if it stays idle for a long time).