Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL*Plus and spool command

Re: SQL*Plus and spool command

From: Daniel A. Morgan <damorgan_at_exesolutions.com>
Date: Sun, 10 Feb 2002 00:27:12 +0000
Message-ID: <3C65BE60.D92C0824@exesolutions.com>


Some things can be done in the editor ... somethings can only be done at the SQL> command line.

Daniel Morgan

Mikael Horseman wrote:

> With apologies in advance if this is a repeat question (I haven't been able
> to track down the solution elsewhere).
> Environment: Windows 2000 SP2, Oracle 8i.
>
> If I log in to SQL*Plus and write:
>
> SQL> SPOOL myfile.txt;
>
> ...then any subsequent operations are mirrored out to 'myfile.txt'.
> If I invoke the Editor (I'm using Notepad) and write:
>
> SPOOL myfile.txt;
> SELECT *
> FROM mytable;
> SPOOL OFF;
>
> ...and then use '/' when returned to the command line I get a message:
>
> "ERROR at line 1:
> ORA-00900: invalid SQL statement"
>
> I've browsed various newsgroup messages that mention Spooling issues (with
> different people suggesting the removal or a different orientation of
> semi-colons), and I've tried several variations on that basis - but I get
> the same error message every time. I suspect that the problem might be a
> product of some fundamental misunderstanding I'm having about SQL*Plus here,
> but I can't work out what it might be. Any help appreciated
>
> Kind regards
>
> Mikael Horseman
Received on Sat Feb 09 2002 - 18:27:12 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US