温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Redhat enterprise linux下怎么安装rlwrap实用工具

发布时间:2021-10-21 18:06:10 来源:亿速云 阅读:153 作者:柒染 栏目:云计算

这篇文章将为大家详细讲解有关Redhat enterprise linux下怎么安装rlwrap实用工具,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。

rlwrap 可以用来支持oracle下sqlplus历史命令的回调功能,提高效率。 

1、  下载

从http://utopia.knoware.nl/~hlub/uck/rlwrap/下载rlwrap-0.37.tar.gz,然后上传到

/tmp 目录下。

2、  解压缩安装

[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、  验证安装结果

[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、安装报错

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

   解决办法:

      在oracle下的.bash_profile中$PATH路径中增加/usr/local/bin路径

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

5、 编辑oracle用户下的.bash_profile

增加

alias sqlplus=’rlwrap sqlplus’

alias rman=’rlwrap rman’

关于Redhat enterprise linux下怎么安装rlwrap实用工具就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI