设为首页 加入收藏

TOP

OracleSqlplus中上下键出现^[[A乱码问题(三)
2015-07-24 10:33:07 来源: 作者: 【 】 浏览:6
Tags:OracleSqlplus 上下 出现 乱码 问题
od a+x /usr/local/share/rlwrap/filters/* make[3]: Leaving directory `/opt/rlwrap-0.37' make[2]: Leaving directory `/opt/rlwrap-0.37' make[1]: Leaving directory `/opt/rlwrap-0.37' [root@rtest rlwrap-0.37]#

[root@rtest rlwrap-0.37]# vi /home/oracle/.bash_profile # .bash_profile
# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi
# User specific environment and startup programs
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 export ORACLE_SID=TEST0422 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export PATH=$ORACLE_HOME/bin:$PATH
PATH=$PATH:$HOME/bin
export PATH
stty erase ^H
alias sqlplus='rlwrap sqlplus' alias rman='rlwrap rman'
~ ~ ~ "/home/oracle/.bash_profile" 25L, 455C written
保存退出,使文件立即生效。
[root@rtest rlwrap-0.37]# su - oracle
[oracle@rtest ~]$ . .bash_profile
3.使用rlwrap [oracle@rtest ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Tue May 6 10:31:02 2014
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options
SYS@TEST0422>select * from scott.emp;
即现在就可以使用上下键来调用命令了。 #################################################################################################################

首页 上一页 1 2 3 4 5 6 7 下一页 尾页 3/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇oracle截取日期类型的时分 下一篇MYSQL表中汉字写入或字段赋值时乱..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·求navicat for mysql (2025-12-26 13:21:33)
·有哪位大哥推荐一下m (2025-12-26 13:21:30)
·MySQL下载与安装教程 (2025-12-26 13:21:26)
·Linux_百度百科 (2025-12-26 12:51:52)
·Shell 流程控制 | 菜 (2025-12-26 12:51:49)