How does the default editor for Sqlplus under Linux be set to VI (I'm using Oracle Linux 5.4)

Source: Internet
Author: User
Tags sqlplus

This method is a reference to one of the itpub's forums

Make a note, but also to share with you, convenient for later use, hey




Method One:

    • Su-oracle

    • Edit the. Bash_profile under the Oracle user's home directory.

    • Add export Editor=vi to the inside

    • Then save the exit,

    • Then execute the following command

    • source. bash_profile

    • This will be OK.

Method Two:

    • Su-oracle

    • Under the directory of the $oracle_home/sqlplus/admin

    • VI Glogin.sql

    • and put Define_editor=vi

    • Added to the inside is OK.


This article is from the "You Devil" blog, please be sure to keep this source http://599184429.blog.51cto.com/5147223/1441744

How does the default editor for Sqlplus under Linux be set to VI (I'm using Oracle Linux 5.4)

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.