Redhat enterprise linux下安装rlwrap工具
2012-11-07 15:41
465 查看
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’
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工具 解决Sqlplus 在Linux 下光标乱码的问题
- Redhat enterprise linux下安装rlwrap工具
- Redhat enterprise linux下安装rlwrap实用工具
- Vmware Workstation 8.0.6&Redhat Enterprise Linux 6.4下安装yum工具及g++ 4.4.7
- RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management
- DataStage在RedHat Linux Enterprise 3上安装详细步骤(三)
- 在RedHat Enterprise Linux 5下安装JDK
- Git在Red Hat Enterprise Linux Server release 5.1上的安装(android源码下载必备工具)
- RedHat Enterprise Linux 7下安装 Oracle 12C
- 在RedHat Enterprise Linux 5下安装JDK
- Redhat Enterprise linux 上安装Oracle10g
- RedHat Enterprise Linux 5下Oracle11g安装并升级到11.2.0.3
- 硬盘安装RedHat Enterprise Linux 6
- RedHat Enterprise Linux 5.4(RHEL5.4)版本上安装GCC
- Redhat系列linux系统安装,并使用xshell工具进行远程连接
- Redhat Enterprise linux 5 的安装
- Redhat Enterprise Linux 5 实战系列(三)为RHEL5安装JDK和配置tomcat
- U盘安装Redhat Enterprise Linux Server 5.5
- redhat enterprise Linux 5.0如何识别网卡和安装驱动r8169!
- DataStage在RedHat Linux Enterprise 3上安装详细步骤(四)