First, as the root user, install rlwrap. It should be a simple download, untar, then
configure; make install;
as root.Once rlwrap is installed and working, create
sqlplus.sh
as the user who is going to be running sqlplus (change ~/ to whatever path you deem appropriate for the script):
#!/bin/bash
stty erase ^H
rlwrap sqlplus $@
stty erase ^?
Make the script executable:
chmod 0755 ~/sqlplus.sh
And in ~/.bashrc, add
alias sqlplus=’~/sqlplus.sh’
VoilĂ ! Your Linux sqlplus prompt should now be a bit more friendly.