安装rlwrap,前提是安装readline和readline-devel
yum list | grep readline
yum install -y readline.x86_64 readline-devel.x86_64
上传并解压rlwrap
tar -zxvf rlwrap-0.37.tar.gz
cd rlwrap-0.37/
./configure
make
make install
vim /home/oracle/.bash_profile
alias sqlplus='rlwrap sqlplus' alias rman='rlwrap rman'
保存退出,到oracle用户下,使文件立即生效。
su - oracle
. .bash_profile
之后就可以正常使用了!!
参考文章:
https://blog.csdn.net/rlhua/article/details/25108261
https://blog.csdn.net/gavin1731/article/details/70833975