修改sqlplus的ed编辑器
时间:2010-11-23 来源:stonejia
Windows 安装完以后,默认输入SQL> ed 则调出记事本,原因如下_EDITOR = "Notepad"
SQL> define
DEFINE _DATE = "23-11月-10" (CHAR)
DEFINE _CONNECT_IDENTIFIER = "win" (CHAR)
DEFINE _USER = "SYS" (CHAR)
DEFINE _PRIVILEGE = "AS SYSDBA" (CHAR)
DEFINE _SQLPLUS_RELEASE = "1002000100" (CHAR)
DEFINE _EDITOR = "Notepad" (CHAR)
DEFINE _O_VERSION = "Oracle Database 10g Enterprise Edition Release 10.2.0.
1.0 - Production
With the Partitioning, OLAP and Data Mining options" (CHAR)
DEFINE _O_RELEASE = "1002000100" (CHAR)
DEFINE _RC = "1" (CHAR) 而在Linux下默认则为 _EDITOR = "ed" (CHAR),下面我们把默认的编辑器设置为vi或vim [oracle@rhel5 admin]$ vi $ORACLE_HOME/sqlplus/admin/glogin.sql
在文件的末尾添加
DEFINE _EDITOR = "vi"
或
DEFINE _EDITOR = "vim" 这样我们在使用sqlplus的ed命令时就可以调用vi或vim编辑器了。
DEFINE _DATE = "23-11月-10" (CHAR)
DEFINE _CONNECT_IDENTIFIER = "win" (CHAR)
DEFINE _USER = "SYS" (CHAR)
DEFINE _PRIVILEGE = "AS SYSDBA" (CHAR)
DEFINE _SQLPLUS_RELEASE = "1002000100" (CHAR)
DEFINE _EDITOR = "Notepad" (CHAR)
DEFINE _O_VERSION = "Oracle Database 10g Enterprise Edition Release 10.2.0.
1.0 - Production
With the Partitioning, OLAP and Data Mining options" (CHAR)
DEFINE _O_RELEASE = "1002000100" (CHAR)
DEFINE _RC = "1" (CHAR) 而在Linux下默认则为 _EDITOR = "ed" (CHAR),下面我们把默认的编辑器设置为vi或vim [oracle@rhel5 admin]$ vi $ORACLE_HOME/sqlplus/admin/glogin.sql
在文件的末尾添加
DEFINE _EDITOR = "vi"
或
DEFINE _EDITOR = "vim" 这样我们在使用sqlplus的ed命令时就可以调用vi或vim编辑器了。
相关阅读 更多 +