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 //刷新變量