1.下载安装包

http://rpmfind.net/linux/rpm2html/search.php?query=rlwrap


2.安装依赖包

readline.x86_64
readline-devel.x86_64


3.安装

rpm -ivh rlwrap-0.42-1.el7.x86_64.rpm


4.修改环境变量

$ vim .bash_profile

添加

alias sqlplus='rlwrap sqlplus'

生效

source .bash_profile