1.安装翻页工具rlwrap
下载rlwrap压缩包
链接:https://pan.baidu.com/s/1fjtaIMcCohlMXHHoeTtYqw
提取码:mkck
[root@oracle ~]# yum -y install readline* //安装前提软件
[root@oracle 桌面]# tar zxf rlwrap-0.37.tar.gz //解压并安装翻页工具rlwrap
[root@oracle 桌面]# cd rlwrap-0.37/
[root@oracle rlwrap-0.37]# ./configure && make && make install
2.切换到Oracle,修改别名
[root@oracle ~]# su oracle
[oracle@oracle ~]$ vim /home/oracle/.bashrc //末尾添加即可
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias asmcmd='rlwrap asmcmd'
[oracle@oracle ~]$ source /home/oracle/.bashrc //刷新变量