SQL * Plus direction keys cannot be used in Linux

Source: Internet
Author: User
In the Linux operating system, it is troublesome to use the SQL * Plus tool of Oracle: after entering the SQL * Plus console through the SQL Plus Command, we have learned in Bash

In the Linux operating system, it is troublesome to use the SQL * Plus tool of Oracle: after entering the SQL * Plus console through the SQL Plus Command, we have learned in Bash

In a Linux operating system, it is troublesome to use the SQL * Plus tool of Oracle: After you use the SQL Plus command to log on to the SQL * Plus console, in Bash, the used up and down keys suddenly become ^ [[A ^ [[B ^ [D ^ [[C "garbled ". If you are familiar with ksh, you must say that this is a big fuss. However, for general users who transfer data from the Windows platform, If you accidentally press the wrong button, it will be four wrong characters, in addition, historical commands cannot be easily retrieved, which is indeed depressing.

Don't worry. If your Linux is Debian or Ubuntu/Kubuntu, run sudo apt-get install rlwrap to install this small readline extension, then you can use rlwrap sqlplus to enter the SQL * Plus of the direction key "normal. Of course, if you think it's hard to repeat rlwrap each time, you can try/etc/profile or your own ~ /. Add alias sqlplus = 'rlwrap sqlplus 'to bashrc '. For other releases, you can select the rpm package or compile the package from the source code.

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.