linux sqlplus Backspace 乱码 与上下翻看功能设置
2012-03-08 14:55
260 查看
一、 配置 Linux 中Sqlplus 的 Backspace 删除
在linux环境下使用sqlplus,在回删(backspace)时往往会出现 一串的乱码 。若想正常删除,需要一定的配置。
根据shell版本的不同,配置方式略有差异。
1.显示shell版本
[oracle@oradb01 ~]$ echo $0
-bash
2. 编辑.bash_profile 设定环境变量
[oracle@oradb01 ~]$ vi /home/oracle/.bash_profile
bash下:添加 stty erase ^? 到.bash_profile中。
csh下: 添加 stty erase ^H 到.cshrc中
方法二
要使用回删键(backspace)时,同时按住ctrl键
二上下翻看查询历史记录
下载 :http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
1.上传rlwrap-0.37.tar.gz
2.解压rlwrap-0.37.tar.gz
[oracle@oradb01 ~]$ tar zxvf rlwrap-0.37.tar.gz
3.进入到rlwrap-0.37的解压目录
[oracle@oradb01 ~]$ cd rlwrap-0.37
4.执行configure命令
[oracle@oradb01 ~]$./configure
5.执行make命令
[oracle@oradb01 ~]$make
6.切换到root用户
[oracle@oradb01 ~]$ su - root
7.执行make install命令
[root@oradb01 rlwrap-0.37]# make install
8.切换到oracle用户
[root@oradb01 rlwrap-0.37]# su - oracle
9.进入到/home/oralce编辑.bash_profile
vi /home/oracle/.bash_profiel
添加如下内容:
alias sqlplus='rlwrap sqlplus' # oracle sqlpls
alias rman='rlwrap rman' # oracle rman
alias ggsci='rlwrap ggsci' # oracle goldengate
11. 保存退出重新登录 或运行 source .bash_profile使修改生效
在linux环境下使用sqlplus,在回删(backspace)时往往会出现 一串的乱码 。若想正常删除,需要一定的配置。
根据shell版本的不同,配置方式略有差异。
1.显示shell版本
[oracle@oradb01 ~]$ echo $0
-bash
2. 编辑.bash_profile 设定环境变量
[oracle@oradb01 ~]$ vi /home/oracle/.bash_profile
bash下:添加 stty erase ^? 到.bash_profile中。
csh下: 添加 stty erase ^H 到.cshrc中
方法二
要使用回删键(backspace)时,同时按住ctrl键
二上下翻看查询历史记录
下载 :http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
1.上传rlwrap-0.37.tar.gz
2.解压rlwrap-0.37.tar.gz
[oracle@oradb01 ~]$ tar zxvf rlwrap-0.37.tar.gz
3.进入到rlwrap-0.37的解压目录
[oracle@oradb01 ~]$ cd rlwrap-0.37
4.执行configure命令
[oracle@oradb01 ~]$./configure
5.执行make命令
[oracle@oradb01 ~]$make
6.切换到root用户
[oracle@oradb01 ~]$ su - root
7.执行make install命令
[root@oradb01 rlwrap-0.37]# make install
8.切换到oracle用户
[root@oradb01 rlwrap-0.37]# su - oracle
9.进入到/home/oralce编辑.bash_profile
vi /home/oracle/.bash_profiel
添加如下内容:
alias sqlplus='rlwrap sqlplus' # oracle sqlpls
alias rman='rlwrap rman' # oracle rman
alias ggsci='rlwrap ggsci' # oracle goldengate
11. 保存退出重新登录 或运行 source .bash_profile使修改生效
相关文章推荐
- linux sqlplus Backspace 乱码 与上下翻看功能设置
- 解决Linux上sqlplus中的backspace键及上下翻命令问题
- linux--解决oracle sqlplus 中上下左右backspace不能用
- linux环境sqlplus中使用backspace键出现乱码的解决方法
- Linux下增加sqlplus上下键翻动功能
- linux环境sqlplus中使用backspace键出现乱码的解决
- Linux中oracle是如何解决backspace和上下键使用出现乱码
- 关于Oracle for Linux sqlplus 的乱码问题
- 关于Oracle for Linux sqlplus 的乱码问题
- 解决Linux下sqlplus中文乱码问题
- Linux(CentOS)安装Oracle_11g_r2数据库(四)支持sqlplus上下翻页
- [Oracle] 利用Uniread 解决 Linux下的SQL*Plus 命令行历史回调功能
- Linux上实现Windows的SQLPlus保存SQL历史记录功能
- 利用uniread 解决 Linux下的SQL*Plus 命令行历史回调功能
- Linux下,sqlplus中查询结果中文乱码问题的解决 实战
- Linux中oracle 解决backspace和上下键使用出现乱码
- 解决Oracle sqlplus中上下键和Backspace键不好用的方法
- Oracle Sqlplus中上下键出现^[[A乱码问题
- linux下安装完oracle 11g后使用sqlplus出现如下乱码现象
- Linux下Oracle的sqlplus中上下左右退格键无法使用