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

Home -> Community -> Usenet -> c.d.o.server -> Re: Unload table into filesystem

Re: Unload table into filesystem

From: Jerry Gitomer <jgitomer_at_ictgroup.com>
Date: Tue, 19 Jan 1999 20:24:36 GMT
Message-ID: <8S5p2.536$5W2.110409@client.news.psi.net>


Yes,

Just do the following from either the SQL*Plus prompt or from a script file:

   SET PAGES 0                                        -- Eliminate page
breaks in output file
   SET COLSEP '|'                                   -- Set column separator
character to the pipe symbol
   SPOOL <output file>                           --  Give Oracle the name of
the output file
   SET FEEDBACK OFF                         --  Kill the terminal output
   SET TERMOUT OFF
   SELECT * FROM <tablename>;       --  Build it
   SPOOL OFF                                          --  Close the spool
file so you can access it
   SET COLSEP ' '                                    --  Change column
separator back to space
   SET PAGES 24                                     -- Set the page size to
24 lines
   SET FEEDBACK ON                            -- Restore feedback
   SET TERMOUT ON                              -- Turn terminal output back
on

regards

Jerry

wkuhn_at_inforatio.de wrote in message <36a44607.1299380_at_news.idnet.de>...
>Is there a possibility to unload one or more Oracle-tables to the
>filesystem, in an 'Informix-like' manner, that is convert all binary
>fileds into ascii ?
>
>Regards
>
>Wolfgang Kuhn
>Inforatio GmbH
>www.inforatio.de
Received on Tue Jan 19 1999 - 14:24:36 CST

Original text of this message

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