让oracle客户端sqlplus支持命令记录功能(rlwrap)
在Linux下面使用sqlplus很不爽,上下键,退格键都不能用,严重降低生产效率。
为了解决这个问题,只需在linux下安装rlwrap tool,再设置环境变量即可。
1,环境介绍
[oracle@node ~]$ uname -aLinux node 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux
1)rpm -ivh rlwrap-0.37-1.el5.i386.rpm;2)cd rlwrap-0.28./configure; make install
1)echo "alias sqlplus='rlwrap sqlplus'" >>/etc/profile2)[root@oracle10g rlwrap-0.37]# vi /home/oracle/.bash_profile#Add the as following linealias sqlplus='rlwrap sqlplus'alias rman='rlwrap rman'
1)source /etc/profile.2)reloggin