[Oracle] 为oracle-sqlplus安装rlwrap


本文总阅读量

1、安装rlwrap-0.42-1.1.x86_64.rpm方式

下载rlwrap-0.42-1.1.x86_64.rpm

1
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home%3A/Ledest%3A/misc/CentOS_7/src/rlwrap-0.42-1.1.x86_64.rpm

2、安装rlwarp

1
yum localinstall rlwrap-0.42-1.1.x86_64.rpm

3、修改环境变量文件

grep ‘rlwrap’ ~/.bash_profile
alias sql=’rlwrap sqlplus “/ as sysdba”‘
alias rman=’rlwrap rman’

4、如果找不到x86_64类型的文件,下载 rlwrap-0.42-1.1.src.rpm

1
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home%3A/Ledest%3A/misc/CentOS_7/src/rlwrap-0.42-1.1.src.rpm

5、安装依赖

1
2
yum install rpm-build -y
yum install readline* libtermcap-devel* -y

6、安装rlwarp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
shell > rpm -i rlwrap-0.42-1.1.src.rpm 
warning: rlwrap-0.42-1.1.src.rpm: Header V3 RSA/SHA1 Signature, key ID 93680782: NOKEY

shell > cd rpmbuild/SOURCES
shell > tar -zxvf rlwrap-0.42.tar.gz
shell > cd rlwrap-0.42
shell > ls
aclocal.m4 BUGS completions configure COPYING filters Makefile.am NEWS README test tools
AUTHORS ChangeLog config.h.in configure.ac doc INSTALL Makefile.in PLEA src TODO

shell > ./configure
shell > make && make install

#### 7、之后修改环境变量

grep ‘rlwrap’ ~/.bash_profile
alias sql=’rlwrap sqlplus “/ as sysdba”‘
alias rman=’rlwrap rman’
```

目录
  1. 1. 1、安装rlwrap-0.42-1.1.x86_64.rpm方式
  2. 2. 2、安装rlwarp
  3. 3. 3、修改环境变量文件
  4. 4. 4、如果找不到x86_64类型的文件,下载 rlwrap-0.42-1.1.src.rpm
  5. 5. 5、安装依赖
  6. 6. 6、安装rlwarp

Proudly powered by Hexo and Theme by Lap
本站访客数人次
© 2020 zeven0707's blog