3

Using SQL*PLUS, I cannot use the backspace button to erase content during a line command.

When I hit backspace, instead of erasing it writes ^H

Is there a way to configure backspace so it works as intended ?

asked Sep 28, 2015 at 13:31
1
  • Ctrl + backspace works okay for me, ;) Commented Dec 15, 2017 at 20:05

2 Answers 2

5

If you're using Linux/Unix, there's a way of making SQL*Plus loads friendlier on the command line - use rlwrap. It adds readline support to SQLPlus, allowing you to use the cursor keys to navigate to previous queries (it retains a history), and edit them when you've made a mistake.

Launch SQL*Plus with rlwrap -i sqlplus or add alias sqlplus="rlwrap -i sqlplus" to your shell dot file (.bashrc/.cshrc/etc).

To install rlwrap on RHEL 5.0 use the following commands:

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5-4.noarch.rpm
yum install rlwrap
rlwrap –i sqlplus 
Paul White
95.4k30 gold badges440 silver badges689 bronze badges
answered Sep 30, 2015 at 11:52
0
4

Use the following command in SQL*PLUS : !stty erase <backspace> but instead of the <backspace> statement, simply press the backspace button and hit return with what it gives you.

answered Sep 28, 2015 at 13:33
1
  • 1
    this works for me! No need to install another package. Commented Mar 13, 2018 at 5:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.