Installing Rlwrap on Linux

Source: Internet
Author: User
Tags readline sqlplus

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!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.