安裝完rlwrap軟件包之后,修改sqlplus命令的別名
藤縣ssl適用于網(wǎng)站、小程序/APP、API接口等需要進行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18980820575(備注:SSL證書合作)期待與您的合作!
[oracle@up ~]$ vim .bashrc
alias sqlplus='rlwrap sqlplus'
alias sql='rlwrap sqlplus'
alias lsnrctl='rlwrap lsnrctl'
alias rman='rlwrap rman'
登錄數(shù)據(jù)庫無法登錄
[oracle@up ~]$ sqlplus / as sysdba
rlwrap: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
沒有找到libreadline.so.5庫,需安裝libreadline.so.5
安裝庫文件
[root@up Packages]# yum install compat-readline5 -y
安裝之后再登錄數(shù)據(jù)庫
[oracle@up ~]$ sqlplus / as sysdba
rlwrap: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
缺少libtermcap.so.2庫,安裝compat-libtermcap包:
[root@up Packages]# yum install compat-libtermcap -y
安裝完之后,再次登錄
[root@up Packages]# su - oracle
[oracle@up ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 1 15:39:54 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
登錄成功