Linux/Centos rlwrap解决sqlplus连接oracle时无法退格,上下翻命令问题

rlwrap 可用来支持oracle下sqlplus历史命令的回调功能,提高效率。
下载rlwrap软件

https://files.cnblogs.com/files/killkill/rlwrap-0.30.tar.gz.zip
下载以后把.zip去掉,再上传到oracle主机上
安装依赖包
#yum install  -y readline*
安装rlwrap
# tar -zxvf rlwrap-0.28.tar.gz
# cd rlwrap-0.28
# ./configure
# make
# make install
# rlwrap

方便使用
#vi /home/oracle/.bash_profile    //加入下面两句

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

#source /home/oracle/.bash_profile
完成!!!!!!!

如果对此有兴趣,请扫下面二维码免费获取更多详情

你可能感兴趣的:(系统类)