1.使当前会话生效

define_editor=vi
SQL> select * from dual;

D
-
X

SQL> edit
Wrote file afiedt.buf
21

  1* select * from dual
(这一步如果不能退出,使用ctrl+D) SQL> set _EDITOR=vi SP2-0158: unknown SET option "_EDITOR=vi" SQL> define_editor=vi SQL> ed Wrote file afiedt.buf 1* select * from dual SQL> ed Wrote file afiedt.buf 1* select 1 from dual SQL> / 1 ---------- 1 SQL>

2.默认生效

打开$ORACLE_HOME/sqlplus/admin/glogin.sql文件,在末尾添加一行:
define_editor=vi

 

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-12-31
  • 2022-12-23
猜你喜欢
  • 2021-05-26
  • 2022-01-29
  • 2022-01-02
  • 2021-12-05
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案