Sqlplus can not use the backspace bar problem processing

Source: Internet
Author: User
Tags readline sqlplus

may have used sqlplus people know that in the Sqlplus connection Oracle after the session interface is unable to use the arrow keys and backspace, this is a more troublesome point, often have a SQL write wrong, can not be modified to start again very troublesome, People who have used MySQL must not get used to it, but fortunately there are 2 useful tools available under Linux to solve this problem, they are rlwrap and ReadLine, Through the two tools to start sqlplus can solve the problem of editing in the session and add a system-like history of the features, of course, the installation is recommended to configure the Yum source, remember to configure the source of Epel, configured directly through Yum installation, Then in the modified under the Oracle User environment configuration file, to Sqlplus and Rlwrap alias, so that the next time the province to repeat the input instructions, the operation is very simple, as follows:

[Email protected] ~]# yum-y install readline rlwrap[[email protected] ~]# su-oracle[[email protected] ~]$ vim. BASH_PR Ofile ... A little ... alias sqlplus= ' Rlwrap sqlplus ' Alias rman= ' Rlwrap rman ' [[email protected] ~]$ source. bash_profile

This allows you to use the same sqlplus session as you would in the MySQL session.

This article from the "Technical essay" blog, reproduced please contact the author!

Sqlplus can not use the backspace bar problem processing

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.