在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包
安装rlwap包
安装步骤:
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"
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21124603/viewspace-767197/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21124603/viewspace-767197/