需要下载插件
1 安装readline
yum -y install readline*
2 安装 rlwrap
[root@oracle oracle]# wget http://files.cnblogs.com/files/killkill/rlwrap-0.30.tar.gz.zip
下载目录自己定,一般是在oracle目录下,找个文件夹或者创建个文件夹
[root@oracle oracle]# tar -xf rlwrap-0.30.tar.gz.zip
[root@oracle oracle]# cd rlwrap-0.30
[root@oracle oracle]# ./configure
[root@oracle oracle]# make
[root@oracle oracle]# make install
设置环境变量
添加两行
[root@oracle oracle]# vim /home/oracle/.bash_profile
每个人的路径可能不太一样
alias sqlplus=‘rlwrap sqlplus’
alias rman=‘rlwrap rman’
生效
source /home/oracle/.bash_profile