安装rlwrap软件,解决oracle进入sqlplus或rman界面时不能回退或上下键历史选择问题

下载rlwrap源文件或rpm包

# wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz

# tar zxvf rlwrap-0.37.tar.gz

# cdrlwrap-0.37/

# ./configure

# make

# makeinstall


设置sqlplus的系统别名:

# vim /home/oracle/.bash_profile


在头部或尾部添加:

alias sqlplus=rlwrap sqlplus

alias rman=rlwrap rman