简体   繁体   English

在Ubuntu的Oracle Sql中,如何打开编辑器来编写PL / SQL?

[英]In Oracle Sql in ubuntu How Can I open editor to write PL/SQL?

Unlike windows writing the command 与Windows编写命令不同

ED "name.sql"

editor is not opened here. 编辑器未在此处打开。

Like in windows writing the command ED "name.sql" , notepad opens. 就像在Windows中编写命令ED "name.sql" ,记事本ED "name.sql"打开。 How can I do it in Ubuntu?I have installed SQL* plus in ubuntu. 我如何在Ubuntu中进行安装?我已经在ubuntu中安装了SQL * plus。

you would have a vim/vi editor in ubuntu. 您将在ubuntu中使用vim/vi编辑器。 Enter the below line in your SQL* plus session. 在您的SQL * plus会话中输入以下行。

define _editor='vim'

Now, when you do 现在,当你做

ED name.sql

It will launch the vim editor. 它将启动vim编辑器。

To save the editor settings permanently, edit the file $ORACLE_HOME/sqlplus/admin/glogin.sql and add the line 要永久保存编辑器设置,请编辑文件$ORACLE_HOME/sqlplus/admin/glogin.sql并添加以下行

define _editor='vim'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM