linux 中上下键跳SQL命令 rlwrap使用方法
Os:CentOS> Oracle:linux_x86_11gR1_database1。安装rlwrap
Download:http://utopia.knoware.nl/~hlub/uck/rlwrap/
# tar -zxvf rlwrap-0.30.tar.gz # cd rlwrap-0.30
# ./configure
# make
# make install
# rlwrap
Usage: rlwrap command ...
Options:
-a --always-readline[=password prompt]
-A --ansi-colour-aware
-b --break-chars=
-c --complete-filenames
-C --command-name=
-D --history-no-dupes=
-e --extra-char-after-completion=
-f --file=
-g --forget-matching=
-h --help
-H --history-filename=
-i --case-insensitive
-I --pass-sigint-as-sigterm
-l --logfile=
-m --multi-line[=newline substitute]
-M --multi-line-ext=
-n --no-warnings
-N --no-children
-o --one-shot
-O --only-cook=
-p --prompt-colour[=colour]
-P --pre-given=
-q --quote-characters=
-r --remember
-R --renice
-s --histsize= (negative: readonly)
-S --substitute-prompt=
-t --set-term-name=
-U --mirror-arguments
-v --version
-w --wait-before-prompt= (msec, Copyright (c) 1982, 2009, Oracle.All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition> With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from v$sga;
NAMEVALUE
-------------------- ----------
Fixed>
Variable> Database Buffers 138412032
Redo Buffers3579904
使用向上键调回最后执行的命令,按Enter键重新执行或修改后按Enter键执行.
SQL> select * from v$sga;
页:
[1]