天天看點

在sqlplus中實作指令的上翻下翻功能

這是一個“readline wrapper”工具,可以使用左右箭頭在一行中左右移動光标,還可以用上下箭頭來上翻和下翻回調指令,甚是好用。

tar -zxvf rlwrap-0.37.tar.gz 

cd rlwrap

./configure

make

make install

su oracle

cd ~

vim .basr_profile

alias sqlplus="rlwrap sqlplus"

alias rman="rlwrap rman"

儲存,并生效

source   .bash_profile

OK~

      本文轉自crazy_charles 51CTO部落格,原文連結:http://blog.51cto.com/douya/1426342,如需轉載請自行聯系原作者