can't use backspace in shell

I have several oracle database servers on which I cannot use "backspace" key to modify the shell commands. I have to press control + "c" to terminate the current command to start again. here I am attaching the .profile for your check.

Thanks.


export PATH LIBPATH ORACLE_HOME
PS1='[$LOGNAME@$PWD]'
if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.

set history 100

if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.
if [ -z "$REMOTEHOST" ]
then
DISPLAY=`hostname`:2.0; export DISPLAY
else
DISPLAY="$REMOTEHOST":0.0; export DISPLAY
fi
export CRS_HOME=/usr/orasw12c/crs/
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:$ORACLE_HOME/network/lib:$ORACLE_HOME/jdbc/lib:
export LD_LIBRARY_PATH
PATH=/usr/bin:/bin:/usr/ccs/bin:/usr/ucb:/usr/local/bin:/usr/X11R6/bin:/usr/bin/X11:$HOME/bin:/usr/orasw/crs102/bin:/usr/java/j2sdk1.4.2_06/bin:/lib.
export PATH
export TERM=vt100
. /home/oracle/.db102
alias l='ls -atl | more'
alias h=history
alias greenwin='xterm -sb -bg aquamarine&'
alias bluewin='xterm -sb -bg lightblue&'
alias print_small='qprt -z1 -s lineprinter -p17 -P5SI_OPS_1'
stty erase ^?
set -o vi
umask 022
export ORACLE_TERM=xterm
PATH=$PATH:$HOME/bin

HISTSIZE=100 ; export HISTSIZE

Open in new window

Jason YuAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
stty erase=<hit backspace> <hit enter>

It also depends on your ssh client and the settings within. When you hit backspace, you see ^H?
Using the stty you alter the making of erase to backspace.
You can double check the ssh client configuration and change the terminal to accommodate your functionality, I.e. Instead of ANSI, use VT100 if preferred.
Control mapping to have backspace send erase.
....

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason YuAuthor Commented:
should I add this line to me .profile?

"stty erase=<hit backspace> <hit enter>"

Please advise.
arnoldCommented:
yes.

stty -a will report your session settings.
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

Depending on what ssh client you are using, or how you are opening the terminal, some things you can set within the client.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.