解决oracle中sqlplus工具输错字符乱码,空格乱码的-古蔺大橙子建站
RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
解决oracle中sqlplus工具输错字符乱码,空格乱码的

这里用到的工具就是rlwrap

创新互联是一家专业提供龙门企业网站建设,专注与成都网站建设、做网站html5、小程序制作等业务。10年已为龙门众多企业、政府机构等服务。创新互联专业的建站公司优惠进行中。

可以在此链接进行了解http://utopia.knoware.nl/~hlub/uck/rlwrap/

wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.42.tar.gz

yum install -y readline readline-devel  这是所依赖的

tar xf rlwrap-0.42.tar.gz

cd rlwrap-0.42

当然在编译之前可以查看一下readme和install

./configure && make && make install

然后切换到oracle用户

su - oracle

[oracle@oracle alert]$ rlwrap sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 18 09:13:15 2016

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>  show user;

USER is "SYS"

SQL> exit

为了更好的结合使用,去掉rlwrap,直接使用sqlplus / as sysdba

于是在家目录做个别名就行

echo "alias sqlplus='rlwrap sqlplus'" >> /home/oracle/.bash_profile

source /home/oracle/.bash_profile

至此大功告成


网页名称:解决oracle中sqlplus工具输错字符乱码,空格乱码的
网页路径:http://scgulin.cn/article/pcedoj.html