无法在SQL * plus中使用SPOOL运行脚本

时间:2019-07-10 06:29:06

标签: sql oracle sqlplus

我正在通过sql * plus在toad中执行一个plsql脚本,在这里我已使用spool命令将日志另存为文本文件。但是每当要运行脚本时,都会出现如下异常:

spool off;
   *
ERROR at line 329:
ORA-06550: line 329, column 4:
PLS-00103: Encountered the symbol "SPOOL"

我的脚本就像:

set serveroutput on;
spool C:\Users\usatapat\Desktop\v22_revisedw.sql;

set timing on;

declare
-----
----
Begin
-----lots of code---
-----

end;
spool off;

   /

任何人都可以告诉我为什么会出现此异常。

0 个答案:

没有答案