安裝rlwrap(解決Sqlplus 方向鍵出現亂碼)
1. 進入 http://utopia.knoware.nl/~hlub/rlwrap/ 下載安裝檔案
2. 解壓檔案 tar zxvf rlwrap-0.37.tar.gz
3. 安裝rlwrap依賴的兩個包
[root@localhost ~]# yum search readline
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: repo.umbeehosting.com
* base: repo.umbeehosting.com
* extras: mirror.krystal.co.uk
* updates: mirror.simwood.com
============================================================= Matched: readline =============================================================
compat-readline43.i386 : The readline 4.3 library for compatibility with older software.
lftp.i386 : A sophisticated file transfer program
php-readline.i386 : Standard PHP module provides readline library support
readline.i386 : A library for editing typed command lines.
readline-devel.i386 : Files needed to develop programs which use the readline library.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: repo.umbeehosting.com
* base: repo.umbeehosting.com
* extras: mirror.krystal.co.uk
* updates: mirror.simwood.com
============================================================= Matched: readline =============================================================
compat-readline43.i386 : The readline 4.3 library for compatibility with older software.
lftp.i386 : A sophisticated file transfer program
php-readline.i386 : Standard PHP module provides readline library support
readline.i386 : A library for editing typed command lines.
readline-devel.i386 : Files needed to develop programs which use the readline library.
[root@localhost ~]# yum install compat-readline43.i386
[root@localhost ~]# yum install readline-devel.i386
4. 安裝rlwrap
[oracle@localhost rlwrap-0.41]$ pwd
/data/software/rlwrap-0.41
[oracle@localhost rlwrap-0.41]$ ./configure && make && make install
/data/software/rlwrap-0.41
[oracle@localhost rlwrap-0.41]$ ./configure && make && make install
5. 驗證安裝是否成功
[oracle@localhost rlwrap-0.41]$ which rlwrap
/usr/local/bin/rlwrap
[oracle@localhost rlwrap-0.41]$ rlwrap
Usage: rlwrap [options] command ...
Options:
-a[password prompt] --always-readline[=password prompt]
-A --ansi-colour-aware
-b --break-chars=
-c --complete-filenames
-C --command-name=
-D <0|1|2> --history-no-dupes=<0|1|2>
-e --extra-char-after-completion=
-f --file=
-g --forget-matching=
-h --help
-H --history-filename=
-i --case-insensitive
-I --pass-sigint-as-sigterm
-l --logfile=
-n --no-warnings
-N --no-children
-o --one-shot
-O --only-cook=
-p[colour] --prompt-colour[=colour]
-P --pre-given=
-q --quote-characters=
-m[newline substitute] --multi-line[=newline substitute]
-M <.ext> --multi-line-ext=<.ext>
-r --remember
-R --renice
-v --version
-s --histsize= (negative: readonly)
-S --substitute-prompt=
-t --set-term-name=
-w --wait-before-prompt= (msec, <0 : patient mode)
-W --polling
-z --filter= (-z listing lists installed filters)
bug reports, suggestions, updates:
6 修改oracle使用者初始化引數檔案
[oracle@localhost ~]$ vi .bash_profile
新增
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias rman='rlwrap rman'
使引數檔案立即生效
source .bash_profile
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28719055/viewspace-1249968/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rlwrap安裝
- Oracle:sqlplus查詢出的中文是亂碼問題的解決(轉)OracleSQL
- windows sqlplus亂碼WindowsSQL
- Linux下使用Vi時方向鍵變亂碼、刪除鍵不能使用的解決方法Linux
- LoadRunner中文出現亂碼的解決辦法
- win10安裝軟體出現亂碼怎麼辦?win10系統新裝軟體顯示亂碼的解決方法Win10
- [20190108]rlwrap sqlplus tee相關問題.txtSQL
- vscode中文亂碼怎麼解決 vscode輸出亂碼怎麼解決VSCode
- win10系統中文軟體顯示亂碼怎麼回事_win10安裝中文軟體出現亂碼解決教程Win10
- linux 安裝字型解決JAVA圖形中文亂碼問題LinuxJava
- tomcat啟動 ssm專案出現亂碼的解決TomcatSSM
- cat 輸出亂碼問題解決
- centos7系統vim出現亂碼怎麼解決?CentOS
- idea中文註釋出現亂碼,我靠自己解決了Idea
- [20190110]rlwrap sqlplus tee相關問題3.txtSQL
- [20200309]rlwrap: error: Cannot execute sqlplus: Too many levels of symbolic linErrorSQLSymbol
- Excel開啟CSV檔案出現亂碼怎麼辦?Excel開啟csv檔案出現亂碼的解決方法Excel
- C++ cout列印輸出 (解決輸出亂碼)C++
- Excel開啟csv檔案出現亂碼的解決辦法Excel
- Eclipse Java類編輯器裡出現亂碼的解決方案EclipseJava
- 用CMD執行時Java,出現亂碼的解決辦法Java
- Confluence亂碼解決
- Win10玩戰地3時出現亂碼如何解決_win10執行戰地3遊戲出現亂碼解決教程Win10遊戲
- 安裝win10 2004出現藍屏如何解決_安裝win10 2004出現藍屏解決教程Win10
- IDEA控制檯輸出中文亂碼解決方法Idea
- Testng results報告出現中文亂碼和更新maven出現報錯現象實戰解決Maven
- 使用Kettle抽取資料時,出現中文亂碼問題解決方案
- 解決Charles手機抓包出現unknown和亂碼的問題
- MySql中表單輸入資料出現中文亂碼的解決方法MySql
- win10系統下Open ssh登入裝置後出現中文亂碼怎麼解決Win10
- sqlplus和sqlldr工具安裝SQL
- Python: 安裝 sklearn 包出現錯誤的解決方法Python
- 安裝CentOS7出現dracut:/#……time解決辦法CentOS
- MySQL解決中文亂碼MySql
- win10新裝軟體亂碼怎麼解決_win10新裝軟體顯示亂碼的解決方案Win10
- Jmeter json格式 unicode亂碼現象解決方法JMeterJSONUnicode
- win10系統安裝或解除安裝itunes出現錯誤程式碼2502/2503怎麼解決Win10
- win10系統開啟coreldraw出現字型亂碼怎麼辦_win10開啟coreldraw出現字型亂碼怎麼解決Win10
- 乾貨:blob匯出檔案亂碼解決方案