Error "Invalid at the top level of the document" when opening a script
说明
Opened a script in the editor and the following error message was displayed:
"'Invalid at the top level of the document'"
Running the script (F5) results in the same error.
Sample script:
set verify on
set feedback on
set termout on
set echo off
prompt #####
prompt ##### Set Generic Variables #####
prompt #####
set echo on
break on user on instance_name on v_day on v_date on v_time
set sqlprompt '&&v_user._&&v_sid.>'
set termout on
spool c:\test
spool
spool off
原因
'SPOOL' command in script is not supported by the parser, or for execution. Only SPOOL <filename> or SPOOL OFF is supported in the editor.
解决办法
Remove 'SPOOL' from the script
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.