Redhat enterprise linux下安裝rlwrap工具
rlwrap 可以用來支援oracle下sqlplus歷史命令的回撥功能,提高效率。
1、 下載
從下載,然後上傳到
/tmp 目錄下。
2、 解壓縮安裝
[root@localhosttmp]# tar -zxvf rlwrap-0.37.tar.gz
[root@localhosttmp]# cd rlwrap-0.37
[root@localhostrlwrap-0.37]# ls
[root@localhostrlwrap-0.37]# ./configure
[root@localhostrlwrap-0.37]#make
[root@localhostrlwrap-0.37]#make install
3、 驗證安裝結果
[root@localhost rlwrap-0.37]#su – oracle
[oracle@localhost ~]$ rlwrap
Usage: rlwrap [options] command ...
Options:
-a[password:] --always-readline[=password:]
-A --ansi-colour-aware
[oracle@localhost ~]$ rlwrap sqlplus / as sysdba;
SQL*Plus: Release 10.1.0.3.0 -Production on ??Υ 9? 3 12:49:42 2010
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g EnterpriseEdition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and DataMining options
SQL> select status fromv$instance;
STATUS
------------
OPEN
4、安裝報錯
rlwrap: error while loadingshared libraries: libreadline.so.5: cannot open shared object file: No suchfile or directory
解決辦法:
在oracle下的.bash_profile中$PATH路徑中增加/usr/local/bin路徑
PATH=/usr/local/bin:$PATH;export PATH
5、 編輯oracle使用者下的.bash_profile
增加
alias sqlplus=’rlwrap sqlplus’
alias rman=’rlwrap rman’
----->>轉載於:http://www.cnblogs.com/lukeqinll/archive/2010/09/14/1826262.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29119536/viewspace-1255932/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rlwrap安裝
- Linux(01):RedHat 7.6 安裝LinuxRedhat
- linux下安裝snap安裝工具Linux
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql
- redhat enterprise linux中vsftp開機自啟動RedhatLinuxFTP
- Red Hat Enterprise Linux Server 7.4 安裝LinuxServer
- Redhat 7 下安裝達夢7Redhat
- redhat 5.4下安裝MYSQL全過程RedhatMySql
- redhat安裝dockerRedhatDocker
- Centos7或RedHat7下安裝MysqlCentOSRedhatMySql
- redhat7.4下離線安裝MHA0.58Redhat
- centOS(同redhat)安裝 dockerCentOSRedhatDocker
- Mac VirtualBox 7.0 下安裝Redhat 8.5虛擬機器MacRedhat虛擬機
- RedHat FC5安裝xmmsRedhat
- PostgreSQL:Redhat 8.5 + PostgreSQL 14.5 安裝SQLRedhat
- Linux下安裝pymysqlLinuxMySql
- Linux下安裝jiebaLinuxJieba
- Linux下安裝GensimLinux
- Linux下SuperLU安裝Linux
- Linux下安裝GitLinuxGit
- linux下安裝pythonLinuxPython
- Linux 下安裝 ComposerLinux
- Linux下expect安裝Linux
- Linux下安裝RedisLinuxRedis
- InfluxDB Linux 下安裝Linux
- mysql linux下安裝MySqlLinux
- linux下安裝dockerLinuxDocker
- linux 下安裝 jdkLinuxJDK
- linux下nginx安裝LinuxNginx
- Linux下安裝OpenCVLinuxOpenCV
- Linux下安裝nginxLinuxNginx
- Linux 下安裝 RedisLinuxRedis
- linux下安裝elasticsearchLinuxElasticsearch
- Linux下安裝RabbitMQLinuxMQ
- G005-OS-INS-02 Red Hat Enterprise Linux V8.2 安裝Linux
- RedHat 7.6作業系統安裝Redhat作業系統
- Vmware linux redhat6.4 安裝11g(11.2.0.1) 雙節點RACLinuxRedhat
- [重慶思莊每日技術分享]-Redhat Linux 6.5安裝ORACLE ASMLIBRedhatLinuxOracleASM