1:安装readline包
yum install readline*
2:安装源码包:
rlwrap-0.30.tar.gz
./configure && make && make install
3:修改oracle用户的环境变量:
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias rman='rlwrap rman'