rlwrap download website:~hlub/uck/rlwrap/
rlwrap is a wrapper that uses the GNU readline library to allow the editing of keyboard input for any other command. Input history is kept between invocations, separately for each command; history completion and search work as in bash and completion word lists can be specified on the command line.
rlwrap compiles and runs on most Unix(-like) systems, including cygwin.
1. pre-install readline library for CentOS 6.5
# yum install readline readline-devel
2. install rlwrap
# tar -zxvf rlwrap-0.42.tar.gz
# cd rlwrap-0.42
# ./configure
# make
# make install
3. oracle profile
# su - oracle
$ vi .bash_profile
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
阅读(1005) | 评论(0) | 转发(0) |