首页 » ORACLE 9i-23c » 让ORACLE sqlplus 支持方向键

让ORACLE sqlplus 支持方向键

linux中的ORACLE
sqlplus默认不支持向系统或WINDOWS那要向上、向下查询命令记录
不果可以安装一个程序来支持
它就是 rlwrap
从网上找个安装包,解压
一:安装rlwrap
[root@oracle11g ~]# tar -zxvf rlwrap-0.30.tar.gz [root@oracle11g ~]# cd rlwrap-0.30 [root@oracle11g rlwrap-0.30]# ./configure [root@oracle11g rlwrap-0.30]# make [root@oracle11g rlwrap-0.30]# make install
如果在make 时提示
checking for tgetent in -lncurses… no
checking for tgetent in -ltermcap… no
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!
那你就要安装readline-devel-5.1-1.1.i386包
但安装它还要有个前提是已安装
libtermcap-devel-2.0.8-46.1.i386包
系统中如果安装就查看是否安装devel版如
readline-5.1-1.1
readline-devel-5.1-1.1
二:配置环境变量
[root@oracle11g rlwrap-0.30]# vi /home/oracle/.bash_profile 添加 alias sqlplus=’rlwrap sqlplus’ alias rman=’rlwrap rman’
Linux下的SQL Plus 终于可以像Windows下的那样使用了。

linux中的ORACLE sqlplus默认不支持向系统或WINDOWS那要向上、向下查询命令记录 不果可以安装一个程序来支持 它就是 rlwrap从网上找个安装包,解压 一:安装rlwrap[root@oracle11g ~]# tar -zxvf rlwrap-0.30.tar.gz [root@oracle11g ~]# cd rlwrap-0.30 [root@oracle11g rlwrap-0.30]# ./configure [root@oracle11g rlwrap-0.30]# make [root@oracle11g rlwrap-0.30]# make install如果在make 时提示
checking for tgetent in -lncurses… nochecking for tgetent in -ltermcap… noconfigure: WARNING: No termcap nor curses library foundchecking for readline in -lreadline… noconfigure: error:
You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to buildthis program! 那你就要安装readline-devel-5.1-1.1.i386包 但安装它还要有个前提是已安装libtermcap-devel-2.0.8-46.1.i386包 系统中如果安装就查看是否安装devel版如readline-5.1-1.1readline-devel-5.1-1.1 二:配置环境变量[root@oracle11g rlwrap-0.30]# vi /home/oracle/.bash_profile 添加 alias sqlplus=’rlwrap sqlplus’ alias rman=’rlwrap rman’Linux下的SQL Plus 终于可以像Windows下的那样使用了。

打赏

目前这篇文章有3条评论(Rss)评论关闭。

  1. Kala Seacrest | #1
    2011-12-21 at 09:11

    Hm, checking out your post gave me another view on things, thanks

  2. NFL Jerseys | #2
    2010-11-26 at 15:46

    看到了。顶

    • Nelda | #3
      2011-06-16 at 13:57

      Wow, that’s a ralely clever way of thinking about it!