1.上传rlwrap-0.37.tar.gz到/stage
cd /stage/
解压tar xzvf rlwrap-0.37.tar.gz
cd rlwrap-0.37
./configure
make
make install
2.
su - oracle
环境变量加上以下语句
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias lsnrctl='rlwrap lsnrctl'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
alias dgmgrl='rlwrap dgmgrl'