1. The original intention of installing rlwrap;
2. Installation of Rlwrap tools and problems encountered;
3. Using the Rlwrap tool;
1. The original intention of installing Rlwrap:
In Windows use Sqlplus are can use up and down around the direction of the key to move around, each command can be modified forward or backward, but Linux is not, has been to use sqlplus, do some uncomfortable, online query under, you can use Rlwrap Solve this problem, the installation encountered some problems recorded as follows, convenient for later inspection;
2. Install the Rlwrap tool and the problems encountered:
2.1 to Rlwrap official website (http://utopia.knoware.nl/~hlub/uck/rlwrap) Download the Rlwrap tool, the current version is 0.4.1;
2.2 Unpacking the Rlwrap Toolkit:
[[Email protected] ~] #cd rlwrap-0.41
If you are finally prompted need the GNU ReadLine Library (ftp://ftp.gnu.org/gnu/readline/) to build this program!
You will also need to install: ReadLine
[Email protected] rlwrap-0.41]# yum-y install readline*
Association package:
Ncurses-devel-5.7-3.20090208.el6.x86_64
Readline-devel-6.0-4.el6.x86_64
Readline-static-6.0-4.el6.x86_64
Readline-static-6.0-4.el6.x86_64
Readline-devel-6.0-4.el6.x86_64
Ncurses-devel-5.7-3.20090208.el6.x86_64
If these packages fail to install, you can find these packages on the official website. Download the standalone installation, after installing it correctly, in one attempt:
Without any errors after make
[[email protected] rlwrap-0.41]# make
[[email protected] rlwrap-0.41]# make install
This rlwrap tool installs successfully, can see the corresponding prompt after typing rlwrap;
3. Use the Rlwrap tool:
Input Rlwrap followed by Sqlplus,sqlplus after the parameters and the usual, not the same place is more prefixes, more than a companion;
[Email protected] rlwrap-0.41]$ Rlwrap sqlplus/
Sql*plus:release 11.2.0.1.0 Production on Fri June 13 22:32:30 2014
Copyright (c) 1982, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production
With the partitioning, OLAP, Data Mining and Real application testing options
[Email protected]>
From this direction key constraints completely liberated, no longer worry about the wrong and can not find the previous orders, study it well!!!