標籤:style http color 使用 os strong ar div
在Linux下面使用sqlplus很不爽,上下鍵,退格鍵都不能用,嚴重降低生產效率。某一天終於發現了這個rlwrap這個好東西,特寫此文記錄。如下:http://utopia.knoware.nl/~hlub/uck/rlwrap/
一、 安裝readline
OS的安裝光碟片裡提供了readline包.
[[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
-->> 注意:安裝readline可以直接yum install readline* -y一條命令即可
二、 安裝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下的那樣使用了。