Add Rlwrap to Sqlplus and Rman under CentOS

Source: Internet
Author: User
Tags readline

In Linux Sqlplus and Rman are unable to use the arrow keys and BACKSPACE to wake up some changes to the statement as we do in the shell.

This is really a very distressing thing. But there are rlwrap to Sqlplus and Rman to do some expansion, so that my operation is not so hard to force. Here's how to install Rlwarp in CENTOS6. 1. Installing Readline-develShell>su-rootShell>yum Install Readline-devel 2. Download RlwrapFind the latest Rlwrap source package in http://utopia.knoware.nl/~hlub/uck/rlwrap/Shell> wgethttp://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.41.tar.gz3. Unzip the build installationshell> tar zxvfRlwrap-0.41.tar.gzshell>./configureShell>make & make install
 4. If the above steps are not error-free, we can add rlwrap support for Sqlplus, the following example for Oracle users Shell>su-oracle
    Shell>vim ~/.bash_profile    For Sqlplus andRman adds Rlwrap support and adds the following in Bash_profile    Alias sqlp= ' Rlwrap sqlplus ' Alias rman= ' Rlwrap Rman ' 5. Re-login with Oracle This user, or we apply. Bash_profile, use SQLP and Rman again to find out which direction to use     Keys and BACKSPACE keys. Two ways to apply. Bash_profile Shell>./.bash_profileShell>source. Bash_profile

Add Rlwrap to Sqlplus and Rman under CentOS

Related Article

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.