解决Linux下使用sqlplus不能使用上下键,退格键
2016-06-12 10:59
495 查看
解决上下键调用历史记录功能:
第一步:安装readlinecentos的安装光盘里提供了readline包,找到所有的readline开头的包并安装
解决退格键使用问题:
在oracle用户文件夹下编辑bash_profile文件[oracle@linux245 ~]$ vi .bash_profile加入下面代码stty erase ^h保存退出使改动生效 [oracle@linux245 ~]$ source ./.bash_profile
附件:http://down.51cto.com/data/2367806
第一步:安装readlinecentos的安装光盘里提供了readline包,找到所有的readline开头的包并安装
[root@oracle11g ~]# rpm -ivh readline*第二步:安装rlwrap(在这个地址下载http://utopia.knoware.nl/~hlub/uck/rlwrap/#rlwrap)
[root@oracle11g ~]# tar -zxvf rlwrap-0.37.tar.gz [root@oracle11g ~]# cd rlwrap-0.37 [root@oracle11g rlwrap-0.37]# ./configure [root@oracle11g rlwrap-0.37]# make [root@oracle11g rlwrap-0.37]# make install第三步:运行sqlplus时使用rlwrap
[root@oracle11g rlwrap-0.37]# vi /home/oracle/.bash_profile 添加 alias sqlplus='rlwrap sqlplus' 使改动生效 [root@oracle11g rlwrap-0.37]# source ./.bash_profile
解决退格键使用问题:
在oracle用户文件夹下编辑bash_profile文件[oracle@linux245 ~]$ vi .bash_profile加入下面代码stty erase ^h保存退出使改动生效 [oracle@linux245 ~]$ source ./.bash_profile
附件:http://down.51cto.com/data/2367806
相关文章推荐
- Linux socket 初步
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程