Tidy up-install rlwrap to realize the callback function of sqlplus history commands under Oracle
Install rlwrap compiler has been reporting an error You need the GNU readline library (ftp://ftp.gnu.org/gnu/readline/) to build this program!
A check that the system has been installed with readline, really can not find the problem.
Later, an online search found that the installation of rlwrap needs to rely on two packages, one is that readline,readline has been integrated in redhat. There is no need for special download and installation, another package libtermcap-devel
After configuring yum
Yum-y install readline* libtermcap-devel*
Readline will remind you that it has been installed. Never mind.
Install rlwrap directly after completion (attachment)
# tar xvf rlwrap-0.37.tar.gz# cd rlwrap-0.37#. / configure & & make & & make install
Add a line to the oracle environment variable after the installation is complete
# vim / home/oracle/.bash_profile
Alias sqlplus='rlwrap sqlplus'
After the configuration is complete, you can log in again using the oracle user.
Attachment: http://down.51cto.com/data/2367214