標籤:oracle資料庫
:http://down.51cto.com/data/2277765
Oracle資料庫使用時,因為不能上下翻頁之前的命令,非常不方便。所以安裝“rlwrap”來解決。
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/8C/72/wKiom1hsq5-B4X-RAAAZjtGDNlY159.png-wh_500x0-wm_3-wmp_4-s_3912229572.png" title="oracle_28.png" alt="wKiom1hsq5-B4X-RAAAZjtGDNlY159.png-wh_50" />
安裝命令,注意安裝是要在root使用者下。
# tar -xf rlwrap-0.42.tar.gz # cd rlwrap-0.42# ./configure # make && make install
編譯安裝完成
650) this.width=650;" src="http://s2.51cto.com/wyfs02/M01/8C/6E/wKioL1hsrcfB5tOcAAAebhyIXR0497.png-wh_500x0-wm_3-wmp_4-s_4094503801.png" title="oracle_29.png" alt="wKioL1hsrcfB5tOcAAAebhyIXR0497.png-wh_50" />
在Oracle使用者的變數檔案.bash_profile檔案裡追加下面兩行。
# vi /home/oracle/.bash_profile
alias sqlplus=‘rlwrap sqlplus‘;alias rman=‘rlwrap rman‘;
生效
$ . .bash_profile
參考文章:
***2016/05/1521682.htm
http://www.cnblogs.com/pengineer/p/4351370.html
本文出自 “悟透的雜貨鋪” 部落格,請務必保留此出處http://wutou.blog.51cto.com/615096/1888972
Linux(CentOS)安裝Oracle_11g_r2資料庫(四)支援sqlplus上下翻頁