一:安装readline
OS的安装光盘里提供了readline包.
[[email protected] ~]# rpm -ivh readline* libtermcap-devel*
二:安装rlwrap
[[email protected] ~]# tar -zxvf rlwrap-0.41.tar.gz [[email protected] ~]# cd rlwrap-0.41 [[email protected] rlwrap-0.30]# ./configure [[email protected] rlwrap-0.30]# make [[email protected] rlwrap-0.30]# make install
三:使用rlwrap
vi /home/oracle/.bash_profile 添加 alias sqlplus=‘rlwrap sqlplus‘ alias rman=‘rlwrap rman‘
下载地址
http://utopia.knoware.nl/~hlub/uck/rlwrap/
时间: 2025-01-06 06:18:26