一:安装readline
OS的安装光盘里提供了readline包.
# RHEL 4 [[email protected] ~]# rpm -Uvh readline* error: Failed dependencies: libtermcap-devel is needed by readline-devel-5.1-1.1.i386.rpm [[email protected] ~]# rpm -Uvh libtermcap-devel-2.0.8-46.1.i386.rpm [[email protected] ~]# rpm -Uvh readline* package readline-5.1-1.1 is already installed [[email protected] ~]# rpm -Uvh readline-devel-5.1-1.1.i386.rpm # RHEL 5 [[email protected] ~]# rpm -ivh readline* libtermcap-devel*
二:安装rlwrap
[[email protected] ~]# tar -zxvf rlwrap-0.30.tar.gz [[email protected] ~]# cd rlwrap-0.30 [[email protected] rlwrap-0.30]# ./configure [[email protected] rlwrap-0.30]# make [[email protected] rlwrap-0.30]# make install
三:方便使用rlwrap
[[email protected] rlwrap-0.30]# vi /home/oracle/.bash_profile 添加 alias sqlplus=‘rlwrap sqlplus‘ alias rman=‘rlwrap rman‘
Linux下的SQL Plus 终于可以像Windows下的那样使用了。
时间: 2024-10-06 18:09:57