securecrt 方向键乱码解决

1 下载安装包rlwrap: rlwrap-0.30.tar.gz
    http://utopia.knoware.nl/~hlub/uck/rlwrap/
sql

 
2  install rlwrap:
   # tar -xzvf rlwrap-0.30.tar.gz
   # cd rlwrap-0.30
   # ./configure 
   # make
   # make check
   # make install
 (若是提示You need the GNU readline library (ftp://ftp.gnu.org/gnu/readline/ ) to build this program 说明须要安装readline, readline-devel和  libtermcap-devel)
3 使用
   切换到oracle用户,编辑.bash_profile文件,
   #su - oracle
   #vi .bash_profile
   在后边加上以下内容:
       alias sqlplus='rlwrap sqlplus'
      alias rman='rlwrap rman'
      stty erase ^h
相关文章
相关标签/搜索