Solve the problem that the back key display ^h, the upper and lower keys are invalid and the ctrl+l cannot clear the screen under the Linux Oracle entering Sqlplus environment "Weber Produce must be a boutique"

Source: Internet
Author: User
Tags readline sqlplus

  1. The people who are accustomed to the key fallback history input in Linux must also hope to achieve the same effect in sqlplus, but unfortunately, Sqlplus does not provide many convenient shortcuts, this time we need to install another plugin to implement this idea.
  2. This plugin is called: rlwrap
  3. Go to Rlwrap's official website to download this plugin: http://utopia.knoware.nl/~hlub/uck/rlwrap/
  4. After downloading, unzip the operation Tar-zxf rlwrap-0.41.tar.gz
  5. Unzip to get rlwrap this folder, into which.
  6. Give configure the right to empower
    # chmod +x Configure
  7. After the empowerment:
    #./configure
  8. This time the configuration is unsuccessful: Hint: Rlwrap installation error You need the GNU readline ...
    Rlwrap The installation of this program, need to rely on two packages, one is: ReadLine one is: Libtermcap-devel Workaround: cd/media/rhel_5.5x86_64 dvd/serverrpm-IVH readline-5.1-3. el5.i386.rpm--nodeps rpm-IVH readline-5.1-3. el5.x86_64.rpm--nodepsrpm-IVH readline-devel-5.1-3. el5.i386.rpm--nodepsrpm-IVH readline-devel-5.1-3. el5.x86_64.rpm--nodepsrpm-IVH libtermcap-2.0.8-46.1. i386.rpm--nodepsrpm-IVH libtermcap-2.0.8-46.1. x86_64.rpm--nodepsrpm-IVH libtermcap-devel-2.0.8-46.1. i386.rpm--nodepsrpm-IVH libtermcap-devel-2.0.8-46.1. x86_64.rpm--Nodeps After the installation is complete, go back to the Rlwrap installation program to install it! 
  9. Execute again./configure
  10. configure:creating./config.statusconfig.status:creating Makefileconfig.status:creating filters/  Makefileconfig.status:creating Doc/Makefileconfig.status:creating src/makefileconfig.status: Creating Doc/is does: Make    (or gmake) to  build Rlwrap    make Check       For instructions what to  test it make    install to     install it
  11. This result occurs, which executes:
  12. # Make && make install
  13. So we can use Rlwrap.
  14. $ rlwrap Sqlplus/as SYSDBA
  15. If you need to input rlwrap every time feel trouble, you can also add to the. Bash_profile, you do not have to enter each time
    VI. Bash_profile writes the following: alias sqlplus='rlwrap sqlplus'alias Rman='  rlwrap rman'

Solve the problem that the back key display ^h, the upper and lower keys are invalid and the ctrl+l cannot clear the screen under the Linux Oracle entering Sqlplus environment "Weber Produce must be a boutique"

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.