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: spooling statement problem

Re: spooling statement problem

From: Phineas T. Barnham <a_at_a>
Date: Thu, 10 May 2001 22:50:45 +0100
Message-ID: <989528124.2744.0.nnrp-10.9e985e86@news.demon.co.uk>

"Kirk W. Conrad" <kwconrad_at_mdanderson.org> wrote in message news:9detfq$i99$1_at_oac2.hsc.uth.tmc.edu...
> I'm spooling derived statements to a file that I want to execute in
 sqlplus.
> The problem is that the statement I'm using is spooling to the file also
> along with the spool off statement. I get the following in the spooled
> file. All I want is the analyze statements. Is there some sqlplus
 variable
> I can use to prevent this?
>
> SQL> select 'analyze table ' || owner || '.' || table_name || ' list
> chained rows;'
> 2 from dba_tables
> 3 where chain_cnt <> 0 and (chain_cnt/num_rows) > .1
> 4 and owner not in ('SYS','SYSTEM');
> analyze table xxx.yyyyyy list chained rows;
> analyze table ggg.wwww list chained rows;
>
> SQL> spool off
>
> Thanks.
> Kirk
>

try:-

set feedback off;
set pagesize 0;
set line 255;
set trimspool on;
set termout off;
spool ... Received on Thu May 10 2001 - 16:50:45 CDT

Original text of this message

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