標籤:oracle
安裝rlwrap-0.37.tar.gz工具--實現SQLPLUS中記憶和上下翻頁功能
在rpm10g32這個路徑中
1、解壓縮
[[email protected] ~]# cd /u01/rpm10g32
[[email protected] rpm10g32]# tar -zxvf rlwrap-0.37.tar.gz
2、安裝
[[email protected] rpm10g32]# cd rlwrap-0.37 --root下安裝,安裝的時候可能會缺包,read-line、readline-devel包,需要用linux的iso檔案建立yum源補包
[[email protected] rlwrap-0.37]# ./configure
.....
Now do:
make (or gmake) to build rlwrap
make check for instructions how to test it
make install to install it
[[email protected] rlwrap-0.37]# make
[[email protected] rlwrap-0.37]# make install
3、修改Oracle的環境變數
[[email protected] ~]$ vi .bash_profile
在.bash_profile檔案中添加這個包內容到命令列工具中
alias sqlplus=‘rlwrap sqlplus‘
alias rman=‘rlwrap rman‘
alias lsnrctl=‘rlwrap lsnrctl‘
[[email protected] ~]$ source .bash_profile --生效
4、測試
---------------------------------------------------------------------------------
oracle的環境配置-實現oracle sqlplus的上下翻頁