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下的那样使用了。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。