readline-static-6.0-4.el6.x86-64.rpm
sqlplus 上下键,centos6 安装 yum -y install readline* 提示无readline-static-6.0-4.el6.x86_64.rpm包 下载rlwrap-0.41.tar.gz地址: https://codeload.github.com/hanslub42/rlwrap/tar.gz/refs/tags/v0.41 cd rlwrap-0.43/ ./configure && make && make install 安装好后切换oracle用户加入环境变量 alias sqlplus='/usr/local/bin/rlwrap /oracle/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus' alias rman='/usr/local/bin/rlwrap /oracle/app/oracle/product/11.2.0/dbhome_1/bin/rman' 或者 alias sqlplus='rlwrap sqlplus' alias rman='rlwrap rman'