After installing Oracle in Linux, go to the arrow key and return key to modify

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.