rlwrap 安裝使用
rlwrap 安裝使用
轉自:http://linux.chinaunix.net/techdoc/system/2008/07/29/1021764.shtml
在Windows作業系統上,當在DOS命令視窗中執行SQL*Plus的時候,可以使用向上,向下鍵來跳回之前已經執行過的SQL語句.你可以根據需要修改他們,然後按Enter鍵重新提交執行.
然而,當在Linux Shell中執行SQL*Plus的時候,並不提供瀏覽歷史命令列的功能.
為了在Linux中達到同樣的目的,你可以安裝rlwrap,這個程式本身是個Shell,可以執行任何你提供給它的命令包括引數,並新增命令歷史瀏覽功能.The rlwrap program is under the GPL license.
1.安裝
Download:
http://utopia.knoware.nl/~hlub/uck/rlwrap/
# tar -zxvf rlwrap-0.30.tar.gz
# cd rlwrap-0.30
# ./configure
# make
# make install
# rlwrap
Usage: rlwrap [options] command ...
Options:
-a[password:] --always-readline[=password:]
-A --ansi-colour-aware
-b --break-chars=
... 以下省略,表示安裝成功
2. 配置使用
# vi /home/oracle/.bash_profile
新增
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
# source /home/oracle/.bash_profile #使修改立即生效
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28859270/viewspace-765692/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rlwrap安裝
- cocoapods安裝/解除安裝/使用
- JupyterLab安裝使用
- Nginx 安裝使用Nginx
- docker安裝使用Docker
- Anaconda 安裝、使用
- 安裝使用VUEVue
- kibana安裝使用
- tomcat安裝使用Tomcat
- jupyter安裝使用
- ElasticSearch的安裝和使用,Postman的安裝,Kibana的安裝,EShead外掛的安裝ElasticsearchPostman
- 安裝及使用RSSHub
- hydra 安裝和使用
- 3.13 truffle 安裝使用
- Docker安裝及使用Docker
- nvm 安裝及使用
- KubernetesNginxIngress安裝與使用Nginx
- Windows安裝使用OpensslWindows
- curl 安裝與使用
- Centos安裝使用ChromedriverCentOSChrome
- 使用kubeadm安裝kubernetes
- MITMF安裝與使用MIT
- ActiveMq安裝和使用MQ
- Supervisor 安裝與使用
- Samba安裝與使用Samba
- 使用docker安裝nginxDockerNginx
- Mac 安裝使用 NgrokMac
- nacos安裝與使用
- kafka 安裝到使用Kafka
- 安裝python並使用Python
- Mysql安裝使用教程MySql
- GitBook的安裝使用Git
- docker安裝和使用Docker
- Presto安裝與使用REST
- Kylin安裝與使用
- windows安裝使用mysqlWindowsMySql
- Nginx安裝與使用Nginx
- sysbench的安裝使用
- Elasticsearch 安裝和使用Elasticsearch