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

Home -> Community -> Usenet -> c.d.o.server -> Re: why cant I spool <filename> with a variable?

Re: why cant I spool <filename> with a variable?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Tue, 05 Apr 2005 00:17:51 +0200
Message-ID: <66f351947eitc38bkr5e70co9acr7ktfp4@4ax.com>


On Mon, 04 Apr 2005 21:49:39 GMT, GS <spam_at_spam.com> wrote:

>spool &TS.log;
>@@temp_usage.sql;
>spool off;
>====================================================
>
>I keep getting the "SP2-0332 cannot create spool" file error, not a
>matter of permissions etc as I can spool to a file fine without the
>variable (this is a windows machine as well)
>

Add an extra dot. Your current dot is treated as delimiter now because of the variable.
For test purposes, you could precede the spool command with a define ts command, to check it's contents.

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon Apr 04 2005 - 17:17:51 CDT

Original text of this message

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