Everybody who works in Oracle Database knows how it's powerful but it also has its limitations.By installing the readline wrapper utility (rlwrap) we can able to use the "up arrow" and "down arrow" keys to display the command line history for all SQL*Plus commands and also it has the ability to edit the SQL*Plus commands.
To install the rlwrap in the Centos Environment.
Install rlwrap as a root user. Use the below commands to install rlwrap
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh epel-release-latest-7.noarch
yum install rlwrap
HOW TO USE IT FOR SQL*Plus
rlwrap sqlplus / as sysdba
Also, we can use rlwrap for other commands too