Home > Article > Operation and Maintenance > Example tutorial using rlwrap tool
1. Install the rlwrap and readline libraries
CentOS can be installed directly using the yum source of EPEL. The steps are as follows:
(1) Install EPEL6 yum source under RHEL/CentOS/SL Linux 6.x:
##32-bit system selection : | # rpm -ivh |
# rpm -ivh | |
# rpm --import /etc/pki/rpm -gpg/RPM-GPG-KEY-EPEL-6 |
epel-testing.repo.
(2) Install rlwrap and readline:
#yum install | rlwrap readline readline-devel
|
tar zxvf readline-6.2.tar.gz |
|
cd readline-6.2 / |
|
./configure |
|
#make |
|
make install |
rlwrap download address:
tar zxvf rlwrap-0.37.tar.gz |
|
#cd rlwrap-0.37/ |
|
## ./configure | |
#make | |
make install |
#vim /home/oracle/.bash_profile |
|
##at Add at the head or tail: alias sqlplus='rlwrap sqlplus' alias rman='rlwrap rman' |
|
|
#source /home/oracle/.bash_profile |
##Exit the oracle user and try again Login is ok.
The above is the detailed content of Example tutorial using rlwrap tool. For more information, please follow other related articles on the PHP Chinese website!