<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Decode360's Blog

    業精于勤而荒于嬉 QQ:150355677 MSN:decode360@hotmail.com

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 ::  :: 管理 ::
      302 隨筆 :: 26 文章 :: 82 評論 :: 0 Trackbacks

     

    rlwrap 的安裝使用[轉]
     
    http://www.boobooke.com/bbs/redirect.php?fid=3&tid=10044&goto=nextoldset
     
     
    今天在論壇上看到了rlwrap工具,感覺很好,但自己搞了半天才裝上(沒辦法,誰讓偶是超級菜鳥呢~),我把總結發一下,方面需要的朋友.
    blog    http://www.keycn.com/?p=5

    os:Oracle-Enterprise-R5-U2-Server-i386
    Oracle:linux_x86_11gR1_database

        在Windows操作系統上,當在DOS命令窗口中運行SQL*Plus的時候,可以使用向上,向下鍵來跳回之前已經執行過的SQL語句.你可以根據需要修改他們,然后按Enter鍵重新提交執行. 然而,當在Linux Shell中運行SQL*Plus的時候,并不提供瀏覽歷史命令行的功能. 為了在Linux中達到同樣的目的,你可以安裝rlwrap,這個程式本身是個Shell,可以運行任何你提供給它的命令包括參數,并添加命令歷史瀏覽功能.The rlwrap program is under the GPL license.
     
     
    一:安裝readline

    OS的安裝光盤里提供了readline包.
    [root@oracle11g ~]# rpm -Uvh readline*
    error: Failed dependencies: libtermcap-devel is needed by readline-devel-5.1-1.1.i386.rpm
    [root@oracle11g ~]# rpm -Uvh libtermcap-devel-2.0.8-46.1.i386.rpm
    [root@oracle11g ~]# rpm -Uvh readline*
    package readline-5.1-1.1 is already installed
    [root@oracle11g ~]# rpm -Uvh readline-devel-5.1-1.1.i386.rpm
     
     
    二:安裝rlwrap

    Download:
    http://utopia.knoware.nl/~hlub/uck/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
    [root@oracle11g rlwrap-0.30]# rlwrap
    Usage: rlwrap [options] command ...
     
    Options:
      -a[password:]              --always-readline[=password:]
      -A                         --ansi-colour-aware
      -b <chars>                 --break-chars=<chars>
      -c                         --complete-filenames
      -C <name|N>                --command-name=<name|N>
      -D <0|1|2>                 --history-no-dupes=<0|1|2>
      -f <completion list>       --file=<completion list>
      -F <format string>         --history-format=<format string>
      -h                         --help
      -H <file>                  --history-filename=<file>
      -i                         --case-insensitive
      -l <file>                  --logfile=<file>
      -n                         --no-warnings
      -p[ANSI colour spec]       --prompt-colour[=ANSI colour spec]
      -P <input>                 --pre-given=<input>
      -q <chars>                 --quote-characters=<chars>
      -m[newline substitute]     --multi-line[=newline substitute]
      -r                         --remember
      -v                         --version
      -s <N>                     --histsize=<N> (negative: readonly)
      -t <name>                  --set-term-name=<name>
     
    bug reports, suggestions, updates:
    http://utopia.knoware.nl/~hlub/uck/rlwrap/
    [root@oracle11g rlwrap-0.30]# vi /home/oracle/.bash_profile
    添加
    alias sqlplus='rlwrap sqlplus'
    alias rman='rlwrap rman'
     

    三:使用rlwrap

    [oracle@oracle11g ~]$ sqlplus / as sysdba
     
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue Jul 29 21:28:30 2008
     
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
     

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
     
    SQL> select * from v$sga;
     
    NAME                      VALUE
    -------------------- ----------
    Fixed Size              1299116
    Variable Size         155192660
    Database Buffers       79691776
    Redo Buffers            2347008
     
    使用向上鍵調回最后執行的命令,按Enter鍵重新執行或修改后按Enter鍵執行.
    SQL> select * from v$sga;
     
    NAME                      VALUE
    -------------------- ----------
    Fixed Size              1299116
    Variable Size         155192660
    Database Buffers       79691776
    Redo Buffers            2347008
     
    SQL>
     
     
    Note:

    解決在sqlplus下輸錯命令后正常刪除的方法
    [oracle@oracle11g ~]$ vi /home/oracle/.bash_profile
    添加
    stty erase ^h
     
     
     




    -The End-

    posted on 2009-05-27 22:03 decode360-3 閱讀(946) 評論(0)  編輯  收藏 所屬分類: Linux
    主站蜘蛛池模板: 亚洲国产成人va在线观看网址| 女人张开腿等男人桶免费视频| 一级特黄a免费大片| 免费人成视频在线播放| 国产又黄又爽又大的免费视频 | 91久久精品国产免费一区| 亚洲一级毛片免费看| 成人永久福利免费观看| 亚洲精品国产精品乱码不99 | 在线永久免费的视频草莓| 国产成人免费高清在线观看| 亚洲色精品88色婷婷七月丁香| 久久久久亚洲av无码专区| 99久久国产亚洲综合精品| www一区二区www免费| 毛片a级毛片免费播放下载| 亚洲国产美女精品久久久久∴| 国产成人无码精品久久久久免费| 狠狠色婷婷狠狠狠亚洲综合| 亚洲jjzzjjzz在线观看| 免费视频精品一区二区三区 | 亚洲AV综合色区无码二区爱AV| 毛片免费观看网址| 日本人的色道免费网站| 亚洲人成网站看在线播放| 噜噜综合亚洲AV中文无码| 少妇性饥渴无码A区免费| 永久中文字幕免费视频网站| 亚洲毛片在线观看| 久久国产精品免费一区| 国产精品久久免费视频| 全部一级一级毛片免费看| 亚洲成A∨人片在线观看不卡| 手机永久免费的AV在线电影网| 四虎影院在线免费播放| 四虎精品成人免费视频| 久久亚洲国产成人精品性色| 国产大片91精品免费观看男同| 亚洲免费在线观看| 亚洲精品国产第1页| 鲁大师在线影院免费观看|