DBA best practices: Logging by default in Putty

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:

C:\Spool\&H-&Y&M&D&T.log

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)
Colors
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).

Advertisements
This entry was posted in Best Practices, Oracle and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s