这里用到的工具就是rlwrap
可以在此链接进行了解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
至此大功告成
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
标题名称:解决oracle中sqlplus工具输错字符乱码,空格乱码的-创新互联
新闻来源:https://www.cdcxhl.com/article44/ddedee.html
成都网站建设公司_创新互联,为您提供网站制作、动态网站、网站内链、做网站、电子商务、标签优化
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联