oracle下sqlplus历史命令的回调功能
来源:互联网 发布:淘宝客服下载 编辑:程序博客网 时间:2024/05/16 10:12
rlwrap 可以用来支持oracle下sqlplus历史命令的回调功能,提高效率。
需要下载两个安装包:readline-6.2.tar.gz与rlwrap-0.37.tar.gz
先装在readline-6.2.tar.gz
# tar -xzvf readline-4.3.tar.gz
进入进入到该目录中编译并安装:
# ./configure
# make
# make install
然后在装rlwrap-0.37.tar.gz;
如果还出现以下情况
configure: error:
You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build
this program!
安装了readline-6.2.tar.gz还是同样的提示,搜索了下发现还需要libtermcap-devel-2.0.8-46.1.i386.rpm和readline-devel-5.1-1.1.i386.rpm,rpm安装之后重新configure->make->make install,完成安装。
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’
- oracle下sqlplus历史命令的回调功能
- 在Linux下使用sqlplus历史回调功能
- 在Linux下使用sqlplus历史回调功能
- 在linux下使SQLPLUS历史回调功能
- 转:linux下sqlplus的历史sql回调功能实现方法
- oracle sqlplus+rlwrap-实现查看历史命令的操作
- oracle的sqlplus命令
- ORACLE linux 下 sqlplus命令
- 在linux系统下让sqlplus支持历史命令调用
- 配置linux下oracle sqlplus/rman等历史记录回调功能
- 配置linux下oracle sqlplus/rman等历史记录回调功能
- 配置linux下oracle sqlplus/rman等历史记录回调功能
- oracle的SQLPLUS命令大全
- oracle命令的使用:SQLPLUS
- 解决SQLPlus中无法使用历史命令的问题
- 解决Linux下Oracle SQL*Plus命令行历史回调功能
- 让AIX下的sqlplus也支持回显功能
- oracle sqlplus autotrace功能
- STL中删除和替换算法 (15 个)
- Linux音频系统分析(一)
- 设置listview中item项的高度
- C# 删除DataTable技巧
- json-lib 出现net.sf.json.JSONException: There is a cycle in the hierarchy异常的解决办法
- oracle下sqlplus历史命令的回调功能
- QT事件
- hadoop map端reduce端调优参数
- 【记录】【总结】搜索功能
- PyUnit单元测试
- 怕晒黑 夏天警惕吃这些食物
- LinkedHashMap 根据PUT顺序排序Map
- 【JS--Jquery】--append() 和appendTo()用法
- Web开发中http请求的url的拼写