ORACLE 在linux等系统中利用rlwrap实现windows上下左右代码功能

来源:互联网 发布:中英文域名注册 编辑:程序博客网 时间:2024/06/04 18:50

1.下载安装readline和rlwrap

//安装readline

[root@oracle opt]#wget ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz[root@oracle opt]# tar xvf readline-6.2.tar.gz[root@oracle opt]# cd readline-6.2[root@oracle readline-6.2]# ./configure && make && make install

//安装rlwrap

[root@oracle opt]# wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz[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'             -----增加这个别名

补充:再加上这行:alias rman='rlwrap rman'

===========================

重新使用oracle用户登录即可。

转载于:https://my.oschina.net/loverGDH/blog/214796


============================

找的时候发现一个不错的网站:

http://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/

0 0
原创粉丝点击