After installing Oracle, I was very excited to enter the Oracle database on the shell interface.
However, when the input command is too successful, the backspace is difficult to use. If you press the backspace key, something like ^] is displayed. The following is a solution.
Oracle
Keywords: SQL * plus history command callback in linux
I recently learned about Oracle in Linux, but found that when I use sqlplus in linux,
By default, the arrow keys do not move the cursor left or right, And the cursor is up or down.
This makes it inconvenient to execute the command that was previously used.
After searching on the internet, we found that we can use the small software rlwrap to help us implement it. First download
Su-root
Wget http://utopia.knoware.nl /~ Hlub/rlwrap/rlwrap-0.30.tar.gz
Decompress the package after the download.
Tar-zxvf rlwrap-0.30.tar.gz
Get the rlwrap-0.30 folder and go
Cd rlwrap-0.30
./Configure
Make
Make install
Su-oracle
Go to the Oracle user home directory and find
. Bash_profile
File, add the following content at the end
Alias sqlplus = "rlwrap sqlplus"
Alias rman = "rlwrap rman"
You can also use
# Echo 'Alias sqlplus = "rlwrap sqlplus" '>/home/oracle/. bash_profile
# Echo 'Alias rman = "rlwrap rman" '>/home/oracle/. bash_profile
Add, and then restart or execute
Sh/home/oracle/. bash_profile
You can.
I don't know if the above URL is invalid. If you want to, please leave a message below. I will send it to your mailbox.
This article is from the "yongpan peak" blog