Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: spool command: echo not work
You can't test the spool that way. Make a file of commands containing the following
set echo off
set hea off
spool test.sql
select sysdate from dual;
spool off
exit
Now go into sqlplus and connect then execute the script by issuing the following command. This assumes that the above commands were placed into the file test.sql
@test.sql;
Your problem is that when the spool command is issued, everything including what you type in will be placed into the file.
>>> gfaktor_at_ecal.com 04/25/01 11:15AM >>>
Thanks all for replay.
I knew echo should work, but for some reason it does not.
SQL> set echo off SQL> set hea off SQL> spool test.sql SQL> select sysdate from dual;
25-APR-01
SQL> spool off SQL> !more test.sql SQL> select sysdate from dual;
25-APR-01 SQL> spool off
Any ideas?
Thanks.
Greg.
> -----Original Message-----
> From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Peter
> Hazelton
> Sent: Tuesday, April 24, 2001 5:29 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Re: spool command
>
>
> SET ECHO OFF
>
>
> ----Original Message Follows----
> Reply-To: ORACLE-L_at_fatcity.com
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Date: Tue, 24 Apr 2001 12:12:16 -0800
>
> This is a multi-part message in MIME format.
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Peter Hazelton
> INET: peterhazelton_at_hotmail.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Gregory Faktor INET: gfaktor_at_ecal.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: William Beilstein INET: BeilstWH_at_obg.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Apr 25 2001 - 15:42:20 CDT
![]() |
![]() |