免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 973 | 回复: 0
打印 上一主题 下一主题

linux 的sqlplus命令快速编辑 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-01 14:05 |只看该作者 |倒序浏览

                               
file:///C:/temp/temp/moz-screenshot.jpg
在linux上装完oracle后,老感觉用的很不顺手.特别是sqlplus的命令编辑。
上网查了一下可以用uniread来解决sqlplus等类似程序输入的问题。
uniread - universal readline
- adds full readline support (command editing, history, etc.) to any existing interactive command-line program. Common examples are Oracle's sqlplus or jython. uniread will work on any POSIX platform with Perl.
该工具可以对任何既有的交互命令行程序都可提供完备的readline支持.
在安装该工具之前系统必须安装好Perl, 此外还必须要三个工具包:
GNU readline
http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
Term::ReadLine::Gnu
http://search.cpan.org/dist/Term-ReadLine-Gnu/
IO::Tty
http://search.cpan.org/dist/IO-Tty/
后两个安装方法参考减压缩包内的说明
perl Makefile.PL
make ; make test; make install
[file_/data/private/oracle]uniread sqlplus /nolog
[uniread] Loaded history (0 lines)
SQL*Plus: Release 9.2.0.6.0 - Production on Thu Feb 1 13:24:51 2007
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> conn / as sysdba
Connected.
SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
[uniread] Saved history (2 lines)
大功告成,不再为sqlplus中输错命令的一小部分而只能全部重输入了。
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6408/showart_241443.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP