rlwrap 可以用来支持Oracle下sqlplus历史命令的回调功能,提高效率。安装rlwrap时,提示需要安装readline就用yum install readline 就可以了1、 下载
免费下载地址在 http://linux.linuxidc.com/
用户名与密码都是www.linuxidc.com
具体下载目录在 /pub/2011/07/04/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 install3、 验证安装结果[root@localhost rlwrap-0.37]#su – oracle[oracle@localhost ~]$ rlwrapUsage: 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 2010Copyright (c) 1982, 2004, Oracle. All rights reserved.Connected to:Oracle Database 10g EnterpriseEdition Release 10.1.0.3.0 - ProductionWith the Partitioning, OLAP and DataMining optionsSQL> select status fromv$instance;STATUS------------OPEN4、安装报错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 PATH5、 编辑oracle用户下的.bash_profile增加
alias sqlplus=’rlwrap sqlplus’alias rman=’rlwrap rman’配置Xmanager3连接Redhat Enterprise Linux 5Ubuntu 10.10+Win7 双系统重装 Win7 后恢复 Ubuntu 引导方法相关资讯 rlwrap
- rlwrap 0.4.1 发布,readline 封装 (05/19/2014 08:15:59)
- Linux 下如何 sql*plus 实现上下键 (01/21/2014 14:03:29)
- 在 Linux中Oracle中如何使用rlwrap (03/17/2013 15:59:29)
| - rlwrap 0.40 发布,浏览 sqlplus (05/10/2014 07:31:23)
- rlwrap - 解决Linux下sqlplus退格 (07/26/2013 10:22:31)
- 在Linux上使用rlwrap实现像dos功能 (09/19/2010 06:13:52)
|
本文评论 查看全部评论 (0)