安装rlwrap-0.37.tar.gz工具--实现SQLPLUS中记忆和上下翻页功能
在rpm10g32这个路径中
1、解压缩
[[email protected] ~]# cd /u01/rpm10g32
[[email protected] rpm10g32]# tar -zxvf rlwrap-0.37.tar.gz
2、安装
[[email protected] rpm10g32]# cd rlwrap-0.37 --root下安装,安装的时候可能会缺包,read-line、readline-devel包,需要用linux的iso文件创建yum源补包
[[email protected] 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
[[email protected] rlwrap-0.37]# make
[[email protected] rlwrap-0.37]# make install
3、修改Oracle的环境变量
[[email protected] ~]$ vi .bash_profile
在.bash_profile文件中添加这个包内容到命令行工具中
alias sqlplus=‘rlwrap sqlplus‘
alias rman=‘rlwrap rman‘
alias lsnrctl=‘rlwrap lsnrctl‘
[[email protected] ~]$ source .bash_profile --生效
4、测试
---------------------------------------------------------------------------------