1. root用户安装rlwrap
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y rlwrap
2.配置环境变量
su - oracle
vim .bash_profile
# 添加以下内容
alias sqlplus='rlwrap sqlplus'
alias lsnrctl='rlwrap lsnrctl'
alias rman='rlwrap rman'
# 生效环境变量
source /home/oracle/.bash_profile
参考:https://blog.csdn.net/weixin_40548182/article/details/117128640
标签:epel,翻页,rlwrap,alias,sqlplus,SQL,Oracle,rpm From: https://www.cnblogs.com/happy510/p/16882158.html