Set Edit mode in sqlplus

Source: Internet
Author: User

Edit the SQL statement in the current SQLPLUS Buffer

For example, ed is short for editing the SQL statements in the buffer zone using the editor specified by our environment variables. Of course, it is the buffer zone of SQLPLUS. We can prove that, when we have no connected database, we can also use EDIT to EDIT it. If you want to modify the Default Editor, for example, change to vi

SQL> define _ EDITOR

DEFINE _ EDITOR = "ed" (CHAR)

SQL> define _ EDITOR = 'vi'

SQL> define _ EDITOR

DEFINE _ EDITOR = "vi" (CHAR)

Define _ EDITOR = 'vi' can be written in the sqlplus STARTUP configuration script. The STARTUP script is Oracle_home/sqlplus/admin/glogin. SQL. This script is automatically called when SQLPLUS is started, instead of when connecting to the database. After this script is run, the database will run the oracle_home/dbs/login. SQL script again. Therefore, if both scripts have the same description, login. SQL is the main one.

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.