Monday, January 22, 2007

A small invaluable utility

If you're like me and prefer command line tools for some operations then you need to familiarize yourself with a tool called rlwrap. This handy little tool will give you a command line history for various command line tools. I use it with sqlplus, rman etc..
Here is how I call it from .bash_profile:

alias dba='rlwrap sqlplus / as sysdba'
alias rman='rlwrap rman'
alias sqlplus='rlwrap sqlplus'

After setting these aliases I have a command line history for sqlplus and rman. Rlwrap can even be configured to include word completion lists to enable fast typing of command sequences. You should find .rpm for rlwrap easily with google.

1 comment:

Tani said...

This is really a small invaluable utility. I was looking for this kind of tool for so long. Thanks for sharing.

sap upgrade challenges