Home  >  Article  >  Database  >  rlwrap

rlwrap

WBOY
WBOYOriginal
2016-06-07 17:31:011534browse

在Linux下使用sqlplus你会发现:退格键无法正常使用(乱码),上翻键也无法正常显示历史功能,非常讨厌!为了让退格键和上翻键在

在Linux下使用sqlplus你会发现:退格键无法正常使用(乱码),上翻键也无法正常显示历史功能,,非常讨厌!

为了让退格键和上翻键在sqlplus里正常发挥它的作用,我们必须安装一个软件 - rlwrap

参考:

在 Linux中Oracle中如何使用rlwrap解决上下键使用出现乱码

1. 首先,下载rlwrap安装包(见 ),上传到linux服务器上

2. 以root用户解压缩安装

tar -zxvf rlwrap-0.37.tar.gz
cd rlwrap-0.37
./configure
make
make install

3. 安装成功后,在oracle用户下编辑.bash_profile

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

这时你再登陆sqlplus和rman,会很高兴的发现退格、上翻键可以正常使用了,终于不再被输错字符而懊恼不已了。

 

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn