Linux中sqlplus退格顯示“^H” 的解決

煙花丶易冷發表於2016-04-14

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部落格 ” ,連結:http://blog.itpub.net/29618264/viewspace-2080989/,如需轉載,請註明出處,否則將追究法律責任。

相關文章