In default settings, when you mistype a key in sqlplus and you try to delete them, you encounter "^H" problem. That is something like below
SQL*Plus: Release 11.2.0.4.0 Production on Mon Jan 5 11:47:04 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * instasada^H^H^H^H
It means that when you mistype instance and try to correct it by deleting the wrong characters, you end up with "^H" strings all over.
The reason why was explained by Erman Arslan in his following post.
Erman Arslan's Oracle Blog: Linux -- SQLPLUS backspace (^H) problem & fix - vt100,vt220
Before, we were solving it with ctrl+backspace key combination. However if you dont want to deal with you just apply the solution below.
I just wanted to share it because I know that many people experience this problem.
The solution is to add this to " stty erase ^H " the .bash_profile which is found in the user directory (e.g. /home/applmgr/.)
# .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 PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
stty erase ^H
Like the example above , we added the stty string to bash profile and then we were able to delete the wrong characters with ease.
References:
1- Erman Arslan's Blog :
http://ermanarslan.blogspot.com.tr/2015/01/linux-sqlplus-backspace-h-problem-fix.html?utm_source=feedburner&utm_medium=email&utm_campaign=Feed:+ErmanArslansOracleBlog+(Erman+Arslan%27s+Oracle+Blog)
Hiç yorum yok:
Yorum Gönder