关于oracle命令行上下左右键没法使用解决办法

使用rlwrap工具解决:sql


1.下载安装readline和rlwrapvim


//安装readlinebash


[root@oracle opt]#wget ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gzoracle

[root@oracle opt]# tar xvf readline-6.2.tar.gzide

[root@oracle opt]# cd readline-6.2工具

[root@oracle readline-6.2]# ./configure && make && make installget

//安装rlwrapit


[root@oracle opt]# wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gzclass

[root@oracle opt]# tar xvf rlwrap-0.37.tar.gz登录

 [root@oracle opt]# cd rlwrap-0.37

[root@oracle rlwrap-0.37]# ./configure && make && make install

2.更改环境变量增长别名


[root@oracle rlwrap-0.37]# vim /home/oracle/.bash_profile 

alias sqlplus='rlwrap sqlplus'             -----增长这个别名

从新使用oracle用户登陆便可,

相关文章
相关标签/搜索