Home  >  Article  >  Operation and Maintenance  >  Example tutorial using rlwrap tool

Example tutorial using rlwrap tool

零下一度
零下一度Original
2017-07-21 13:35:112266browse

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:

##64-bit system selection: # rpm -ivhImport key: # rpm --import /etc/pki/rpm -gpg/RPM-GPG-KEY-EPEL-6
##32-bit system selection :

# rpm -ivh

will be created under /etc/yum.repos.d/ by default
There are two configuration files, epel.repo and

epel-testing.repo.

(2) Install rlwrap and readline:

#yum install

There is no need to download readline if it is already in the system

rlwrap readline readline-devel

tar zxvf readline-6.2.tar.gz

cd readline-6.2 /

./configure

#make

make install

rlwrap download address:

(3) Set the system alias of sqlplus:

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Basic introduction to ssh and SSH service (including tunnel content)Next article:Basic introduction to ssh and SSH service (including tunnel content)

Related articles

See more