oracle linux 退格,oracle database for linux 不能使用退格键
方法一:要使用退格键的时候,同时按住ctrl+backspace
方法二:在任意一个启动脚本中添加如下内容
[oracle@night ~]$ tail -1 .bash_profile
stty erase ^H
stty的意思是set tty,主要是用来检查和修改当前注册的终端的通信参数
如上两种方法只是单一的解决了退格键的问题,如果我想回调sqlplus中执行过的命令 还是不行
方法三:可以使用退格键,可以回调sqlplus中执行过的命令
使用第三方工具rlwrap
解压安装完毕之后
[oracle@night u01]$ ls
app install rlwrap
[oracle@night u01]$ cd rlwrap/
[oracle@night rlwrap]$ ls
bin share
[oracle@night rlwrap]$
[oracle@night rlwrap]$ cd bin/
[oracle@night bin]$ ll
总计 168
-rwxr-xr-x 1 oracle oinstall 165717 07-25 23:33 rlwrap
[oracle@night bin]$
添加到PATH中
[oracle@night ~]$ vim .bash_profile
export PATH=$PATH:$ORACLE_BASE:$ORACLE_HOME/bin:/u01/rlwrap/bin
立即生效[oracle@night ~]$ source .bash_profile
[oracle@night ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle:/u01/app/oracle/product/bin:/home/oracle/bin:/u01/app/oracle:/u01/app/oracle/product/bin:/u01/rlwrap/bin
[oracle@night ~]$[oracle@night ~]$ rl
rlatopam rletopnm rlog rlogin rlwrap
[oracle@night ~]$ rl
使用[oracle@night ~]$ rlwrap sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 25 23:37:55 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn sys/ as sysdba
Enter password:
Connected.
SQL>
也可以使用命令别名[oracle@night ~]$ alias sqlplus='rlwrap sqlplus'
[oracle@night ~]$ alias
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias sqlplus='rlwrap sqlplus'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
[oracle@night ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 25 23:39:36 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
如果想下次生效,可添加到启动脚本内
随笔记录
oracle linux 退格,oracle database for linux 不能使用退格键相关推荐
- linux里数据库退格,Oracle Database for Linux 不能使用退格键
方法一:要使用退格键的时候,同时按住ctrl+backspace 方法二:在任意一个启动脚本中添加如下内容 [Oracle@night ~]$ tail -1 .bash_profile stty ...
- linux下安装oracle集群,【Oracle 集群】Linux下Oracle RAC集群搭建之Oracle DataBase安装(八)...
目录 数据库安装 继oracle集群安装之后,接下来也是最重要的数据库安装,整个数据库安装难度不大,用户以oracle用户身份登录RAC1主节点,对解压后的文件安装.主节点下安装后,其他所有结点自动安 ...
- Linux定时备份Oracle Database 翻译
Linux定时备份Oracle Database 翻译 1. 创建备份文件 vi bak.sh #!/bin/bash export ORACLE_BASE=/home/server/app expo ...
- linux运行tdbshutdown,Converting Oracle Database from Linux to Windows using RMAN
1.查出源端linux下DB的v$database.platform_id和v$database.platform_name select platform_id,platform_name from ...
- 指南:在 linux 下的 Oracle Database 11g 中安装 Oracle Enterprise Manager 10g Grid Control 第 5 版
原文地址:http://www.oracle.com/technetwork/cn/articles/revitt-oem-096363-zhs.html 作者:Mike Revitt 逐步详解如何针 ...
- linux下配置oracle 10G EM Database Console
1.启动dbconsole [oracle@devrfel501 ~]$ emctl start dbconsole 如果提示:OC4J Configuration issue. /opt/oracl ...
- oracle enterprise linux 5.7,Red Hat Enterprise Linux 5.7 安装Oracle数据库
环境:Red Hat Enterprise Linux 5.7 数据库:Oracle 11g 1.Linux操作系统安装组建选择: GNOME Desktop Environment Editors ...
- linux下单节点oracle数据库间ogg搭建
环境说明: linux为Linux 2.6.32-573.el6.x86_64 oracle为 11g Enterprise Edition Release 11.2.0.1.0 - 64 ...
- linux下安装oracle客户端,实现远程连接oracle库,导出数据表
工作中用到不安装oracle服务端,只安装客户端. 一:首先要到下载rpm包,使用如下,命令安装 rpm -ivh oracle/oracle-instantclient11.2-basic-11.2 ...
最新文章
- WCF服务端返回:(413) Request Entity Too Large
- VMware下redhat9.0的上网设置
- Win32 汇编要点总结
- 用IStateManager管理状态
- 什么是 AJAX, what is AJAX(一)
- linux能记录日志的终端,Linux上的日志系统
- ECCV18 Oral | CornerNet目标检测开启预测“边界框”到预测“点对”的新思路
- python 描述符的应用
- Linux DMA Engine framework(3)_dma controller驱动
- 巧设IP路由 实现不同网段互通
- 机器视觉——计算视野的小工具
- 传感器的时间同步系统
- 今年中秋云遮月,来年元宵雨打灯
- [渝粤教育] 四川信息职业技术学院 Linux网络管理 参考 资料
- uploadify php 重命名,uploadify与php使用详解
- noi题目答案c语言,NOI2019基础知识题库
- oracle 去除空值函数,Oracle学习笔记:删除数据空格(trim、ltrim、rtrim函数)
- 五险一金 ,即将毕业的每个人都看看吧
- 学计算机必须要掌握的单词,学习计算机技术必须掌握的53个计算机专业英文单词...
- Layaair 不规则碰撞检测 UI