sqlplus无法使用命令退格删除和历史记录的解决方法(使用rlwrap)

 

1. 系统:RedHat Enterprise Linux 5.11

rlwrap 下载地址::https://pan.baidu.com/s/1WafT5-gwXbEtrM4LLOJK6w  密码:ga4z

2.上传文件到 Linux服务器/tmp 目录下

3、  解压缩安装

[root@localhosttmp]# tar -xvf rlwrap-0.37.tar

[root@localhosttmp]# cd rlwrap-0.37

[root@localhostrlwrap-0.37]# ls

[root@localhostrlwrap-0.37]# ./configure

[root@localhostrlwrap-0.37]#make

[root@localhostrlwrap-0.37]#make install

4、  验证安装结果

[root@localhost rlwrap-0.37]#su – oracle

[oracle@localhost ~]$ rlwrap

Usage: rlwrap [options] command ...

Options:

-a[password:]              --always-readline[=password:]

-A                         --ansi-colour-aware

 

[oracle@localhost ~]$ rlwrap sqlplus / as sysdba;

SQL*Plus: Release 10.1.0.3.0 -Production on ??Υ 9? 3 12:49:42 2010

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g EnterpriseEdition Release 10.1.0.3.0 - Production

With the Partitioning, OLAP and DataMining options

SQL> select status fromv$instance;

STATUS

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

OPEN

5、安装报错

rlwrap: error while loadingshared libraries: libreadline.so.5: cannot open shared object file: No suchfile or directory

解决办法:

在oracle下的.bash_profile中$PATH路径中增加/usr/local/bin路径

PATH=/usr/local/bin:$PATH;export PATH

6、 编辑oracle用户下的.bash_profile

增加

alias sqlplus=’rlwrap sqlplus’

alias rman=’rlwrap rman’


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值