0
点赞
收藏
分享

微信扫一扫

rlwrap工具安装

安装完oracle后,使用sqlplus命令行登录oracle,默认不能上下翻看历史记录、不能使用backspace删除。下面介绍一个rlwrap工具的安装过程。


1、下载rlwrap:

wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.42.tar.gz


2、解压

tar -xvzf rlwrap-0.42.tar.gz


3、安装:

cd rlwrap-0.42
./configure

这时,在configure时会提示缺少依赖包。


checking for readline in -lreadline... no


configure: error: 


You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build


this program!


1)使用yum安装依赖:

yum install readline-devel

2)执行:

make

make install


4、把下两句写入运行oracle的用户.bash_profle(.bash_history)文件中:
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'

这样,就可以使用上下翻看历史命令 和 退格键了。





举报

相关推荐

0 条评论