[root@localhost ~]
# yum -y install readline rlwrap
[root@localhost ~]
# su - oracle
[oracle@localhost ~]$ vim .bash_profile
…略…
alias
sqlplus=
'rlwrap sqlplus'
alias
rman=
'rlwrap rman'
[oracle@localhost ~]$
source
.bash_profile
这样在sqlplus的session中就可以想在MySQL的session中一样的使用了