sqlplus and rlwrap

By default in sqlplus , you can not use special keystrokes such Ctrl-R to look for previous typed SQL requests.

Within Debian, there is a package named rlwrap, which gives you the features that sqlplus does not have.

To install it :

root@localhost:~# apt-get install rlwrap

To use it  as a non-root user, add an alias to your .bashrc file  : alias sqlplus=’rlwrap sqlplus’

fool@localhost:~$ source .bashrc

And then, sqlplus is again available with new features.


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

This site uses Akismet to reduce spam. Learn how your comment data is processed.