解决Linux下sqlplus中退格键和上下回看无法使用的问题

在linux下使用sqlplus,无法使用退格键和上下回看:
连接到: 
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from 1^H^H^H^H^H^H^H^H

解决办法:
安装rlwap包
        下载地址:http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
       安装步骤:
       tar -xzf  rlwrap-0.37.tar.gz

    cd  rlwrap-0.37

   ./configure

    make install

    
       安装该包前,需先安装readline, readline-devel,libtermcap-devel 这几个包在linux光盘中都可找到,如果上述包有缺失没有安装,则configure时报错如下,
       You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build
        this program!

    安装完成后,添加别名
   vi .bash_profile
  alias sqlplus="rlwrap sqlplus"


请使用浏览器的分享功能分享到微信等