时间:2021-07-01 10:21:17 帮助过:1人阅读
1.# yum install rlwrap readline readline-devel
其他Linux发行版如果源里没有rlwrap和readline的(如SUSE企业版默认没有这两个包),要分别下载这两个源码包编译安装一下
# wget ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz
# tar zxvf readline-6.2.tar.gz
# cd readline-6.2/
# ./configure
# make
# make install
# wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz
# tar zxvf rlwrap-0.37.tar.gz
# cd rlwrap-0.37/
# ./configure
# make
# make install
.bash_profile添加如下内容:
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
CentOS 6.5 安装 rlwrap软件for sqlplus
标签:rlwrap