SQL command in SSH to press backspace key garbled problem resolved

Source: Internet
Author: User
Tags delete key sqlplus

With SSH call sqlplus input SQL statement, press BACKSPACE (BACKSPACE) appear ^h garbled as follows:

[Email protected] ~]$ Sqlplus/as SYSDBA

Sql*plus:release 10.2.0.1.0-production on Fri June 6 00:09:23 2014

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-production
With the partitioning, Oracle Label Security, OLAP and Data Mining options

Sql> fafafafafafaf^h^h^h^h

^h is not the meaning of H-key, but backspace. You need to set it up when you have a problem with your terminal backspace.

In the Linux environment to use Sqlplus, in the back (BACKSPACE) often appear garbled. Garbled is the result of Oracle's Sqlplus not using the GNU ReadLine Library.

There are two ways to resolve this:

1. To use the back Delete key (BACKSPACE), hold down the CTRL key while

2. Setting environment variables will stty erase ^h or stty erase ^? To add to. bash_profile, set the profile of the Oracle user as follows:

[Email protected] ~]$ Vi./.bash_profile
#. 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
Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/product/10.2.0/db_1
Export path= $ORACLE _home/bin: $PATH
Export ORACLE_SID=OMR
Export Oms_home= $ORACLE _base/product/10.2.0/oms10g/oms10g
Export Agent_home= $ORACLE _base/product/10.2.0/oms10g/agent10g
Stty Erase ^h

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.