Install Rlwrap on Redhat Linux 6.0 to solve sqlplus garbled problems

Source: Internet
Author: User
Tags readline sqlplus

In the Linux system once inside bash into the sqlplus or Rman after the next key will appear garbled, not like the window command line to press the left and right keys can be arbitrarily adjusted code, press the up and down keys can directly select the command has been executed. A good solution is to install the Rlwrap package to implement the functionality that was not originally available. Here is the installation process.

1. First download the Rlwrap installation package

Http://utopia.knoware.nl/~hlub/uck/rlwrap/

2. Unzip

$ tar-zxvf rlwrap-0.37.tar.gz

3. Installation Prerequisites

Install ReadLine package is Rlwrap can use the premise, the following with the root user using Yum installation ReadLine

Search first to ReadLine package

# Yum Search ReadLine

Then put the ReadLine andreadline-devel package installed (Redhat inside with ReadLine package, may only need readline-devel pack)

# yum Install readline.x86_64

# yum Install readline-devel.x86_64

3. Installation

# cd rlwrap-0.37

#./configure

# make

# make Install

So the installation is complete. The following adds the Sqlplus and Rman aliases in the configuration file so that you can call Rlwrap directly when you use Sqlplus or Rman directly.

Switch to Oracle user, add twolines in. Bash_profile and. BASHRC

$ VI. bash_profile

Alias sqlplus= ' Rlwrap sqlplus '

Alias rman= ' rlwrap rman'

$ VI. BASHRC

Alias sqlplus= ' Rlwrap sqlplUS '

Alias rman= ' Rlwrap Rman '

Save and exit. This allows you to use Slqplus and Rman directly after logging off and logging back in. Give it a try!






This article from "Trikker" blog, declined reprint!

Install Rlwrap on Redhat Linux 6.0 to solve sqlplus garbled problems

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.