Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Software Development Software Development
Search Search
Search for:
Tech Support Guy > > >

SQl plus output to a file


(!)

surfnschultz's Avatar
surfnschultz surfnschultz is offline
Member with 191 posts.
THREAD STARTER
 
Join Date: Nov 2003
13-Dec-2005, 12:17 PM #1
Talking SQl plus output to a file
Oracle 8i on NT server when I am in SQL plus and run a script, how can I capture the output to a file? The script runs and has the output I am interested in, but how to re-direct the output to a file?

Thanks in advance for any help on this one. Thanks.
surfnschultz's Avatar
surfnschultz surfnschultz is offline
Member with 191 posts.
THREAD STARTER
 
Join Date: Nov 2003
13-Dec-2005, 12:28 PM #2
Solved SQl plus to a file
Under file select Spol to file assign name and location, run scriupt turn off spool open file in wordpad.

Done...
AGCurry's Avatar
AGCurry AGCurry is offline
Senior Member with 431 posts.
 
Join Date: Jun 2005
Location: Kansas City area
Experience: advanced but learning
13-Dec-2005, 01:43 PM #3
Quote:
Originally Posted by surfnschultz
Under file select Spol to file assign name and location, run scriupt turn off spool open file in wordpad.

Done...
Right answer, bad spelling...

In your sql*plus script,

spool output-file-name;

when you are done writing the file,

spool off
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑