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: Spool Question

Re: Spool Question

From: Lisa Ashley Rafter <lisaashleyrafter_at_yahoo.com>
Date: 11 Dec 2006 09:26:43 -0800
Message-ID: <1165858003.371783.206380@79g2000cws.googlegroups.com>


Try this...

SQL> set pages 0
SQL> set heading off
SQL> set feedback off
SQL> spool yourfilename.txt
SQL> select * from your_table_here;
SQL> spool off
SQL> set feedback on
SQL> set heading on



CriticalJ_at_gmail.com wrote:
> I have been asked to export some oracle tables to text files. The main
> problem I am having is the resulting file.
>
> The sql for the requested fields is stuck at the top of the file and
> spool off is at the bottom.
>
> I have used Set ECHO OFF at the top of the command as well as several
> other set commands but nothing seems to stop this.
>
> The solution is probably easy but I am not a regular Oracle user so it
> is eluding me. If anyone could direct me to a solution, I would
> appreciate it greatly.
>
> Thank you.
Received on Mon Dec 11 2006 - 11:26:43 CST

Original text of this message

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