linux下使用rlwrap开源工具,可以在oracle sqlplus下具有linux下命令行功能。比如上下翻命令,等等。
一、安装 [root@cms2 ~]#unzip rlwrap-0.28.zip [root@cms2 ~]# cd rlwrap-0.28 [root@cms2 rlwrap-0.28]# ./configure ...... configure: WARNING: No termcap nor curses library found checking for readline in -lreadline... no configure: error: You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build this program! [root@cms2 rlwrap-0.28]# yum install readline-devel readline-devel readline libtermcap-devel [root@cms2 rlwrap-0.28]# ./configure [root@cms2 rlwrap-0.28]# make [root@cms2 rlwrap-0.28]# make install
二、使用 vi .bashrc alias sqlplus='rlwrap sqlplus' |