在linux的终端上运行sqlplus时,没有回显功能,也就是上下方向键不能用。
解决该问题的方法为:采用第三方插件,这里推荐rlwrap,下载地址:http://download.chinaunix.net/download/0010000/9017.shtml
安装该软件也是三步:./configure make make install
可能在./configure时遇到缺少readline的库文件,需要先安装这个readline软件,下载地址:ftp://ftp.gnu.org/gnu/readline/
当然也是三步安装完成,然后在安装rlwrap就没问题了。之后在.bashrc中设置个别名:alias sqlplus="rlwrap sqlplus"
这样在使用sqlplus时,就是在使用rlwrap sqlplus了,该回显插件就能工作了!
到此,问题解决。good luck!
在 .bash_profile 中添加:
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap $ORACLE_HOME/bin/rman"
alias asmcmd="rlwrap asmcmd"
come from:http://hi.baidu.com/zzh_my/blog/item/09c8f1a1fd990e814610643f.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/90618/viewspace-671212/
,如需转载,请注明出处,否则将追究法律责任。