由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - editting .sql file problem
相关主题
How to get SQL help in sqlplus?SQL Developer ORA-01017 错误
公司要升级了,问题【已解决】oracle db link
一个奇怪的问题很弱的Oracle Client和SQL Developer的问题
Oracle SQL*Plus 的密码是啥阿?很弱的Oracle问题
how to test the database, or test SQL?How to edit last sql statement in isql
请教一下一个关于SQL SERVER非常基本的问题question about oracle 8i personal edition
How to display chinese characters in Oracle SQL*Plus?a newbie's question about oracle
求救,咋样架起来自己的database?where to find oracle9i personal edition?
相关话题的讨论汇总
话题: sql话题: file话题: edit话题: oracle话题: editor
进入Database版参与讨论
1 (共1页)
l***s
发帖数: 28
1
without having created a .sql file, I say to the command line:
SQL> edit test.sql
I was expecting the system will open the default VI editor and a
new file called test.sql to let me edit. But Oracle did not. It
led me to a blank of nothing. I had a hard time to go back to the
SQL> prompt. Finally got out of that blank line by randomly pushing
the q and return.
Then my question is: How shall I create a .sql file and edit it
in Oracle? What did I do wrong?
Thank you..
m******t
发帖数: 2416
2

Try
SQL> DEFINE _EDITOR=vi
SQL> EDIT test

【在 l***s 的大作中提到】
: without having created a .sql file, I say to the command line:
: SQL> edit test.sql
: I was expecting the system will open the default VI editor and a
: new file called test.sql to let me edit. But Oracle did not. It
: led me to a blank of nothing. I had a hard time to go back to the
: SQL> prompt. Finally got out of that blank line by randomly pushing
: the q and return.
: Then my question is: How shall I create a .sql file and edit it
: in Oracle? What did I do wrong?
: Thank you..

s***m
发帖数: 28
3
You need to define your default editor in sqlplus environment. If you define
default editor as below, it is valid for current session only. You can set it
to default globally in a file called login.sql or glogin.sql belong to Oracle
installation. Add
define _editor=vi
in this file. Next time when you type edit in sqlplus, vi will be your editor.
1 (共1页)
进入Database版参与讨论
相关主题
where to find oracle9i personal edition?how to test the database, or test SQL?
oralce 9i 必须装在professional 的windows 版本上?请教一下一个关于SQL SERVER非常基本的问题
Oracle in WindowsHow to display chinese characters in Oracle SQL*Plus?
有没有这样的Freeware求救,咋样架起来自己的database?
How to get SQL help in sqlplus?SQL Developer ORA-01017 错误
公司要升级了,问题【已解决】oracle db link
一个奇怪的问题很弱的Oracle Client和SQL Developer的问题
Oracle SQL*Plus 的密码是啥阿?很弱的Oracle问题
相关话题的讨论汇总
话题: sql话题: file话题: edit话题: oracle话题: editor