安装rlwrap包
rlwrap-0.28.tar.gz下载地址:http://utopia.knoware.nl/~hlub/uck/rlwrap/
[root@asm oracle]# tar -zxvf rlwrap-0.28.tar.gz
[root@asm oracle]# cd rlwrap-0.28 [root@asm rlwrap-0.28]# aclocal.m4 bash30-005.patch ChangeLog config.h.in configure.ac distribution INSTALL Makefile.in README test tools BUGS completions configure COPYING doc Makefile.am NEWS src TODO [root@asm rlwrap-0.28]# ./configure [root@asm rlwrap-0.28]# make
[root@asm rlwrap-0.28]# make install
[root@asm rlwrap-0.28]# rlwrap
Usage: rlwrap [options] command ... -a[password:] --always-readline[=password:]
-b <chars> --break_chars=<chars> -c --complete-filenames
--command-name=<name|N>ITPUB个人空间)_(RS Orz C -D <0|1|2> --history-no-dupes=<0|1|2>ITPUB个人空间(b1}O'f b7b$U,s -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> r0 -n --no-warnings -P <input> --pre-given=<input>
-m[newline substitute] --multi-line[=newline substitute] -r --remember -v --version -s <N> --histsize=<N>
bug reports, suggestions, updates:
http://utopia.knoware.nl/~hlub/uck/rlwrap/
[root@asm rlwrap-0.28]# vi /home/oracle/.bash_profile 加入下面两句
alias sqlplus='rlwrap sqlplus' }[1]WY C%d*a9r0alias rman='rlwrap rman'
linux sqlplus 下就能和cmd 下sqlplus 正常操作了 |