1、解压缩
[root@dbp ~]# gunzip rlwrap-0.37.tar.gz
2、解包
[root@dbp ~]# tar -xvf rlwrap-0.37.tar
3、进入安装
[root@dbp ~]# cd rlwrap-0.37
[root@dbp rlwrap-0.37]# ./configure
Now do:
make (or gmake) to build rlwrap
make check for instructions how to test it
make install to install it ------此处为系统提示的下一步安装操作
[root@dbp rlwrap-0.37]# make
[root@dbp rlwrap-0.37]# make install
4、使用 在用户家目录的.bash_profile中添加
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias lsnrctl='rlwrap lsnrctl'
至此就可以在sqlplus rman lsnrctl 命令中使用回调功能了。