温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

oracle的环境配置-实现oracle sqlplus的上下翻页

发布时间:2020-07-22 01:58:48 来源:网络 阅读:279 作者:forest冯宋林 栏目:关系型数据库

安装rlwrap-0.37.tar.gz工具--实现SQLPLUS中记忆和上下翻页功能

在rpm10g32这个路径中

1、解压缩

[root@oracle3 ~]# cd /u01/rpm10g32
[root@oracle3 rpm10g32]# tar -zxvf rlwrap-0.37.tar.gz

2、安装
[root@oracle3 rpm10g32]# cd  rlwrap-0.37  --root下安装,安装的时候可能会缺包,read-line、readline-devel包,需要用linux的iso文件创建yum源补包
[root@oracle3 rlwrap-0.37]# ./configure

.....

Now do:
    make (or gmake)  to build rlwrap
    make check       for instructions how to test it
    make install     to install it

[root@oracle3 rlwrap-0.37]# make
[root@oracle3 rlwrap-0.37]# make install

3、修改Oracle的环境变量

[oracle@oracle3 ~]$ vi .bash_profile


在.bash_profile文件中添加这个包内容到命令行工具中

alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias lsnrctl='rlwrap lsnrctl'

[oracle@oracle3 ~]$ source .bash_profile  --生效

4、测试


---------------------------------------------------------------------------------

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI