In the Linux system once inside bash into the sqlplus or Rman after the next key will appear garbled, not like the window command line to press the left and right keys can be arbitrarily adjusted code, press the up and down keys can directly select the command has been executed. A good solution is to install the Rlwrap package to implement the functionality that was not originally available. Here is the installation process.
1. First download the Rlwrap installation package
Http://utopia.knoware.nl/~hlub/uck/rlwrap/
2. Unzip
$ tar-zxvf rlwrap-0.37.tar.gz
3. Installation Prerequisites
Install ReadLine package is Rlwrap can use the premise, the following with the root user using Yum installation ReadLine
Search first to ReadLine package
# Yum Search ReadLine
Then put the ReadLine andreadline-devel package installed (Redhat inside with ReadLine package, may only need readline-devel pack)
# yum Install readline.x86_64
# yum Install readline-devel.x86_64
3. Installation
# cd rlwrap-0.37
#./configure
# make
# make Install
So the installation is complete. The following adds the Sqlplus and Rman aliases in the configuration file so that you can call Rlwrap directly when you use Sqlplus or Rman directly.
Switch to Oracle user, add twolines in. Bash_profile and. BASHRC
$ VI. bash_profile
Alias sqlplus= ' Rlwrap sqlplus '
Alias rman= ' rlwrap rman'
$ VI. BASHRC
Alias sqlplus= ' Rlwrap sqlplUS '
Alias rman= ' Rlwrap Rman '
Save and exit. This allows you to use Slqplus and Rman directly after logging off and logging back in. Give it a try!
This article from "Trikker" blog, declined reprint!
Install Rlwrap on Redhat Linux 6.0 to solve sqlplus garbled problems