Use sqlplus return output & quot; ^ H & quot; in X-manager to solve the problem. x-managersqlplus

Source: Internet
Author: User

Use sqlplus return output "^ H" in X-manager to solve the problem. x-managersqlplus

Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost them. Otherwise, the copyright will be held legally responsible.

Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/45875793

 

After using xmanager to remotely connect to the linux system, sqlplus finds that the deletion key is garbled as follows:

Solution:

Method 1:

[Root @ bjbank ~] # Vi. bash_profile

-- Add stty erase ^ H

#. Bash_profile

# Get the aliases and functions

If [-f ~ /. Bashrc]; then

.~ /. Bashrc

Fi

# User specific environment and startup programs

PATH = $ PATH: $ HOME/bin

Export PATH

Unset USERNAME

Stty erase ^ H

[Root @ bjbank ~] # Source. bash_profile

Modify the instruction sent by the delete key, which corresponds to the preceding modification and uses ^ H as the clear command.

Of course, you can temporarily execute stty erase ^ H in the middle end without adding environment variables.

This is because the GNU readline library cannot be used in sqlplus.

For more information about the GNU readline library, see the link:

Http://blog.csdn.net/huangyanlong/article/details/45875661

Next, you need to change the send keys of delete and backspace in xmanage against the environment variables as follows:

The following figure shows the effect:

Make some garbled characters in sqlplus, as follows:

Try the delete key, as shown below:

The settings are complete.

 

Method 2:

Another temporary method is to manually add the ctrl key when using the delete key (backspace) to manually implement the delete function.

 

Summary:

Solve the garbled problem in sqlplus:

1. Add stty erase ^ H to. bash_profile;

2. Temporary method: press CTRL + Backspace or # stty erase ^ H

 

Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost them. Otherwise, the copyright will be held legally responsible.

Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/45875793

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.