sql中输入ed进入编辑状态,若想退出,输入 .- 进入命令模式 输入q 退出ed编辑器
最好在$ORACLE_HOME/sqlplus/admin目录下的glogin.sql里做好配置define _editor=vim,以后再输入ed就像vi 文件一样操作了。