|
Os:CentOS> Oracle:linux_x86_11gR1_database
1。安装rlwrap
Download:http://utopia.knoware.nl/~hlub/uck/rlwrap/
[root@centos6 ~]# tar -zxvf rlwrap-0.30.tar.gz [root@centos6 ~]# cd rlwrap-0.30
[root@centos6 rlwrap-0.42]# ./configure
[root@centos6 rlwrap-0.42]# make
[root@centos6 rlwrap-0.42]# make install
[root@centos6 rlwrap-0.42]# rlwrap
Usage: rlwrap [options] command ...
Options:
-a[password prompt] --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[newline substitute] --multi-line[=newline substitute]
-M --multi-line-ext=
-n --no-warnings
-N --no-children
-o --one-shot
-O --only-cook=
-p[colour] --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;
NAME VALUE
-------------------- ----------
Fixed>
Variable> Database Buffers 138412032
Redo Buffers3579904
使用向上键调回最后执行的命令,按Enter键重新执行或修改后按Enter键执行.
SQL> select * from v$sga;
|
|