Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install rlwrap Utility under Redhat enterprise linux

Shulou Source: shulou.com Published: 2022-06-01 06:31:51 09月30日 Update

This article will explain in detail how to install rlwrap utility under Redhat enterprise linux. The content of the article is of high quality, so Xiaobian shares it with you as a reference. I hope you have a certain understanding of relevant knowledge after reading this article.

Rlwrap can be used to support the callback function of sqlplus history command under oracle to improve efficiency.

1. Download

Download rlwrap-0.37.tar.gz from http://utopia.knoware.nl/<$hlub/uck/rlwrap/and upload to

/tmp directory.

2. Decompress and install

[root@localhosttmp]# tar -zxvf rlwrap-0.37.tar.gz

[root@localhosttmp]# cd rlwrap-0.37

[root@localhostrlwrap-0.37]# ls

[root@localhostrlwrap-0.37]# ./ configure

[root@localhostrlwrap-0.37]#make

[root@localhostrlwrap-0.37]#make install

3. Verify installation results

[root@localhost rlwrap-0.37]#su - oracle

[oracle@localhost ~]$ rlwrap

Usage: rlwrap [options] command ...

Options:

-a[password:] --always-readline[=password:]

-A --ansi-colour-aware

[oracle@localhost ~]$ rlwrap sqlplus / as sysdba;

SQL*Plus: Release 10.1.0.3.0 -Production on ??Υ 9? 3 12:49:42 2010

Copyright (c) 1982, 2004, Oracle. All rights reserved.

Connected to:

Oracle Database 10g EnterpriseEdition Release 10.1.0.3.0 - Production

With the Partitioning, OLAP and DataMining options

SQL> select status fromv$instance;

STATUS

------------

OPEN

4. Installation error

rlwrap: error while loadingshared libraries: libreadline.so.5: cannot open shared object file: No suchfile or directory

Solution:

Add/usr/local/bin path to $PATH path in.bash_profile under oracle

PATH=/usr/local/bin:$PATH;export PATH

5. Edit.bash_profile under oracle user

increase

alias sqlplus='rlwrap sqlplus'

alias rman='rlwrap rman'

How to install rlwrap utility under Redhat enterprise linux is shared here. I hope the above content can help you and learn more. If you think the article is good, you can share it so that more people can see it.

Tags: Utility utility tool content article more knowledge article path good method function history command efficiency user directory result quality reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux MariaDB vpn Docker