ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux中sqlplus退格显示“^H” 的解决

Linux中sqlplus退格显示“^H” 的解决

原创 Linux操作系统 作者:qinwen740 时间:2010-03-05 14:29:22 0 删除 编辑

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> select * form^H^H^H

"from"输入成"form"想用退格修改,总是出现^H,删除不了前面的字符

处理方法:

设定环境变量:

1)在bash下,把 stty erase ^H 添加到.bash_profile中

2)在csh下,把 stty erase ^H 添加到.cshrc中

下面是我今天的实现方法(在bash下)

[root@testdb ~]# su - oracle   进入oracle主目录,里面有 .bash_profile
[root@testdb ~]# vi .bash_profile 添加一行

stty erase ^H

:wq 保存退出

重新用oracle登录则可。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15688952/viewspace-628704/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-06-11

  • 博文量
    47
  • 访问量
    138274