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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Spool To More than 1 File

Re: Spool To More than 1 File

From: Oracle <all_about_oracle_at_hotpop.com>
Date: Thu, 9 Jun 2005 12:07:34 +0800
Message-ID: <003001c56ca8$c87518f0$0200a8c0@ncs.corp.intads>


You got the answer?

Here is what I going to do

Spool /tmp/hardcoded_file.txt #you can't use variable here select sysdate from dual;
spool off
host /usr/bin/cp /tmp/hardcoded_file.txt /tmp/hardcoded_file2.txt

> One thing I would like to see is the ability to spool output from
> SQL*Plus to more than one file at a time. I am writing a script in which
> I am spooling the results of each command to "foo" and then grepping the
> foo file for the elapsed time and putting it in a log file using "!grep
> ...". The problem with this method is that I can't spool the results of
> the entire script to another file in the event I want to see the detail.
> I could use some "cat" commands to keep moving the results but this
> seems like a pretty easy and perhaps usefull feature.
> --
> http://www.freelists.org/webpage/oracle-l
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 09 2005 - 00:12:06 CDT

Original text of this message

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