1.安装

     rpm -ivh rlwrap-0.37-1.el6.x86_64.rpm

2.修改oracle家目录下的.bash_profile,最后在.bash_profile文件加入

alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias lsnrctl='rlwrap lsnrctl'


3.重新读取.bash_profile

source .bash_profile