转:linux下sqlplus的历史sql回调功能实现方法
来源:互联网 发布:腾讯游戏平台mac 编辑:程序博客网 时间:2024/05/16 01:38
当在Linux Shell中运行SQL*Plus的时候,并不提供浏览历史命令行的功能。相反的,在Windows操作系统上,当在DOS命令窗口中运行SQL*Plus的时候,可以使用向上,向下键来跳回之前已经执行过的SQL语句。你可以 根据需要修改他们,然后按[Enter]重新提交执行。
为了在Linux中达到同样的目的,你可以安装rlwrap,这个程式本身是个Shell,可以运行任何你提供给它的命令包括参数,并添加命令历史浏览功能。 The rlwrap program is under the GPL license。
1:安装
rlwrap-0.28.tar.gz下载地址:http://utopia.knoware.nl/~hlub/uck/rlwrap/
1):解压缩安装文件
[oracle@Channel-MQ3 ~]$gunzip rlwrap-0.28.tar.gz
[oracle@Channel-MQ3 ~]$tar xvf rlwrap-0.28.tar
2):切换到root用户,执行下面的命令
[root@Channel-MQ3 ~]# cd /home/oracle/rlwrap-0.28
[root@Channel-MQ3 rlwrap-0.28]# ls
aclocal.m4 completions configure INSTALL README TODO
AUTHORS config.h configure.ac Makefile src tools
bash30-005.patch config.h.in COPYING Makefile.am stamp-h1
BUGS config.log distribution Makefile.in test
ChangeLog config.status doc NEWS test.log
[root@Channel-MQ3 rlwrap-0.28]#./configure
[root@Channel-MQ3 rlwrap-0.28]#make
[root@Channel-MQ3 rlwrap-0.28]#make install
2:使用
$ rlwrap [-options] <command> <args>
[oracle@Channel-MQ3 ~]$ which rlwrap
/usr/local/bin/rlwrap
[oracle@Channel-MQ3 ~]$ rlwrap sqlplus / as sysdba
为了在Linux中达到同样的目的,你可以安装rlwrap,这个程式本身是个Shell,可以运行任何你提供给它的命令包括参数,并添加命令历史浏览功能。 The rlwrap program is under the GPL license。
1:安装
rlwrap-0.28.tar.gz下载地址:http://utopia.knoware.nl/~hlub/uck/rlwrap/
1):解压缩安装文件
[oracle@Channel-MQ3 ~]$gunzip rlwrap-0.28.tar.gz
[oracle@Channel-MQ3 ~]$tar xvf rlwrap-0.28.tar
2):切换到root用户,执行下面的命令
[root@Channel-MQ3 ~]# cd /home/oracle/rlwrap-0.28
[root@Channel-MQ3 rlwrap-0.28]# ls
aclocal.m4 completions configure INSTALL README TODO
AUTHORS config.h configure.ac Makefile src tools
bash30-005.patch config.h.in COPYING Makefile.am stamp-h1
BUGS config.log distribution Makefile.in test
ChangeLog config.status doc NEWS test.log
[root@Channel-MQ3 rlwrap-0.28]#./configure
[root@Channel-MQ3 rlwrap-0.28]#make
[root@Channel-MQ3 rlwrap-0.28]#make install
2:使用
$ rlwrap [-options] <command> <args>
[oracle@Channel-MQ3 ~]$ which rlwrap
/usr/local/bin/rlwrap
[oracle@Channel-MQ3 ~]$ rlwrap sqlplus / as sysdba
- 转:linux下sqlplus的历史sql回调功能实现方法
- 在Linux下使用sqlplus历史回调功能
- 在Linux下使用sqlplus历史回调功能
- 在linux下使SQLPLUS历史回调功能
- oracle下sqlplus历史命令的回调功能
- 解决Linux下SQL*Plus历史回调功能
- 解决Linux下SQL*Plus命令行历史回调功能
- 利用uniread 解决 Linux下的SQL*Plus 命令行历史回调功能
- 利用uniread 解决 Linux下的SQL*Plus 命令行历史回调功能
- 利用Uniread 解决 Linux下的SQL*Plus 命令行历史回调功能
- 让Linux下的SQL*Plus具有历史回调功能
- 让Linux下的SQL*Plus具有历史回调功能
- 解决Linux下Oracle SQL*Plus命令行历史回调功能
- 利用uniread解决下的SQL*Plus命令行历史回调功能
- Linux环境下Oracle Sqlplus中使用上下键调用SQL语句的方法
- rlwrap解决linux下sqlplus输用上下键无法查看历史消息的问题
- 在Linux下使用sqlplus方向键的使用功能
- linux下sql*plus历史命令回调问题
- 为什么你不应该使用Cairngorm(Steven Webster,Cairngorm的主创人员)
- GB2312编码方式下中英文字符分离问题
- DELPHI转换函数的定义及说明
- 我与专业计算机学院学生的幽默
- fw:我怕但我是班长
- 转:linux下sqlplus的历史sql回调功能实现方法
- 嵌入式开发起步
- How to create MFC applications that do not have a menu bar in Visual C++(MFC单文档和多文档程序中去掉菜单栏)(转)
- 已知进程句柄,如何知道此进程的主窗口句柄
- C++多态技术总结
- ASCII码表完整版
- 地震相关苦笑话!乐观四川人笑中带泪回看地震 自制地动仪
- 韩浩月:我们为什么淡忘了端午节
- 关于键盘输入