Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: spool question
hi!
I have a shortcut method for the question.
first you have to make a script file.
this is a sample file
sample.sql :
select * from emp
/
exit
second just run this script with output file redirection at UNIX shell
exam)
% sqlplus -s scott/tiger @sample >! sample.log
bye~
badstreetboy_at_my-dejanews.com wrote:
> When I do a spool to copy the output to the file, the command I enter is also
> copied. eg.
> spool file_name
> select * from t1;
> ...
> ...
> ...
> spool off;
>
> the select statement is also copied to the file. How to get rid of that?
> Thanks.
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Thu Oct 01 1998 - 00:33:44 CDT
![]() |
![]() |