解决oracle中sqlplus客户端命令行中出现^H字符以及不能使用历史命令行

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