操作系统:centos6.4X86_64数据库:oracle12cR1
需要的安装包:rlwrap-0.37.tar.gz(网上可下载)
readline-6.0-4.el6.x86_64.rpm(镜像包)
readline-devel-6.0-4.el6.x86_64.rpm(镜像包)

ncurses-devel-5.7-3.20090208.el6.x86_64.rpm(readline-devel的依赖包,注意安装顺序)(镜像包)

1.安装rlwrap:
解压tar-zxvfrlwrap-0.37.tar.gz
安装./configuremakemakeinstall
安装rpm包:
命令:rpm-ivhreadline-6.0-4.el6.x86_64.rpm
rpm-ivhncurses-devel-5.7-3.20090208.el6.x86_64.rpm
rpm-ivhreadline-devel-6.0-4.el6.x86_64.rpm

登录sql数据库时使用命令rlwrapsqlplus/nolog即可
(或者alias别名命令将命令写入oracle账户的.bash_profile【aliassqlplus=’rlwrapsqlplus’】)。

快去试试上下键吧相信会成功的~~~

51cto中没有了空格只能将就了希望能看懂