zoukankan      html  css  js  c++  java
  • 利用rlwrap配置linux下oracle sqlplus 历史记录回调

    1.下载rlwrap
    wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.42.tar.gz
    
    2.解压
    tar -xvzf rlwrap-0.42.tar.gz
    
    3.检查配置
    cd /opt/rlwrap-0.42
    [root@localhost rlwrap-0.42]# ./configure
    configure: checking for pty ranges...
    checking for tgetent... no
    checking for tgetent in -ltinfo... no
    checking for tgetent in -lcurses... no
    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!
    报错缺少包
    4.在安装光盘查找对应的包 [root@localhost cdr]# ls ./Packages/ | grep termcap compat-libtermcap-2.0.8-49.el6.i686.rpm compat-libtermcap-2.0.8-49.el6.x86_64.rpm [root@localhost cdr]# 5.继续安装 termcap,curses,readline 相关的包,直到运行 configure得到: checking that generated files are newer than configure... done checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating filters/Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating doc/rlwrap.man config.status: creating config.h config.status: executing depfiles commands Now do: make (or gmake) to build rlwrap make check for instructions how to test it make install to install it [root@localhost rlwrap-0.42]# 创建,检查,安装。 6.切换到oracle用户下,配置命令别名 vi .bash_profile 加入别名sqlplus/rman配置 alias sqlplus='rlwrap sqlplus' alias rman='rlwrap rman' 7.测试OK
  • 相关阅读:
    牛客 公式字符串求值
    牛客 括号字符串的有效性和最长有效长度
    POJ-2533 Longest Ordered Subsequence ( DP )
    HDU-1160 FatMouse's Speed ( DP )
    HDU-1260 Tickets ( DP )
    HDU-1074 Doing Homework( 状压DP )
    HDU-1069 Monkey and Banana ( DP )
    HDU-1087 Super Jumping! Jumping! Jumping!( DP )
    HDU-3746 Cyclic Nacklace ( kmp )
    HDU-2087 剪花布条 ( kmp )
  • 原文地址:https://www.cnblogs.com/Alex-Zeng/p/4330511.html
Copyright © 2011-2022 走看看