Uparrow history in sqlplus/rman

Download rlwrap from: http://utopia.knoware.nl/~hlub/uck/rlwrap/
The current version was: rlwrap-0.37.tar.gz (248 k)

Login as root.
Extract the archive and install rlwrap:

[root@rac1 oracle]# tar -zxvf rlwrap-0.37.tar.gz
[root@rac1 oracle]# cd rlwrap-0.37
[root@rac1 oracle]#./configure
[root@rac1 oracle]#make
[root@rac1 oracle]#make install

Now you can switch to oracle user and start sqlplus like this:

[oracle@rac1 ~]$ rlwrap sqlplus / as sysdba

Or create an alias for faster access:

alias sqs='rlwrap sqlplus / as sysdba'

One response to “Uparrow history in sqlplus/rman

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s