- 论坛徽章:
- 0
|
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 |
|