Unlike windows writing the command
ED "name.sql"
editor is not opened here.
Like in windows writing the command ED "name.sql"
, notepad opens. How can I do it in Ubuntu?I have installed SQL* plus in ubuntu.
you would have a vim/vi
editor in ubuntu. Enter the below line in your SQL* plus session.
define _editor='vim'
Now, when you do
ED name.sql
It will launch the vim
editor.
To save the editor settings permanently, edit the file $ORACLE_HOME/sqlplus/admin/glogin.sql
and add the line
define _editor='vim'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.