1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

SQl plus output to a file

Discussion in 'Software Development' started by surfnschultz, Dec 13, 2005.

Thread Status:
Not open for further replies.
Advertisement
  1. surfnschultz

    surfnschultz Thread Starter

    Joined:
    Nov 17, 2003
    Messages:
    191
    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.
     
  2. surfnschultz

    surfnschultz Thread Starter

    Joined:
    Nov 17, 2003
    Messages:
    191
    Under file select Spol to file assign name and location, run scriupt turn off spool open file in wordpad.

    Done...
     
  3. AGCurry

    AGCurry

    Joined:
    Jun 15, 2005
    Messages:
    431
    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
As Seen On...

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.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/424815