redhat6.2安装rlwrap

进入该目录,执行./configure
如果提示configure: error:You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build this program!
执行yum -y install readline* ,然后再次执行./configure
--编译
make
--安装,需要使用root用户
make install

然后切换到安装oracle时的用户,环境变量配置:
vi  .bash_profile
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'

保存退出,source .bash_profile




参考博客:https://blog.csdn.net/DBAngelica/article/details/81201841

原文地址:https://www.cnblogs.com/cyf18/p/14285531.html