In Linux, the problem of invalid Del key and return of sqlplus in Oracle is solved.
A good solution. The problem has been solved.
Solution Using rlwrap
1. Install the rlwrap and readline Libraries
You can use the yum source of EPEL to directly install CentOS. The steps are as follows:
(1) install EPEL6 yum source in RHEL/CentOS/SL Linux 6.x:
32-bit System Selection: |
# Rpm-ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm |
64-bit System Selection: |
# Rpm-ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm |
Import key: |
# Rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 |
By default, the epel. repo and epel-testing.repo profiles are created under/etc/yum. repos. d.
(2) install rlwrap and readline:
# |
Yum install rlwrap readline-devel |
Readline does not need to be downloaded if it is available in the system.
# |
Tar zxvf readline-6.2.tar.gz |
# |
Cd readline-6.2/ |
# |
./Configure |
# |
Make |
# |
Make install |
Http://files.cnblogs.com/killkill/rlwrap-0.30.tar.gz.zip of rlwrap
# |
Tar zxvf rlwrap-0.37.tar.gz |
# |
Cd rlwrap-0.37/ |
# |
./Configure |
# |
Make |
# |
Make install |
(3) set the system alias of sqlplus:
# |
Vim/home/oracle/. bash_profile |
|
Add: Alias sqlplus = 'maid sqlplus' Alias rman = 'rlwrap rman' |
# |
Source/home/oracle/. bash_profile |
Log out of oracle and log on again.