Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install rlwrap Utility under Redhat enterprise linux

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report