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: Spooling output of a select statement to a file through stored procedure

Re: Spooling output of a select statement to a file through stored procedure

From: Jared Still <jkstill_at_cybcon.com>
Date: Wed, 29 Aug 2001 07:54:04 -0700
Message-ID: <F001.0037B078.20010829065053@fatcity.com>

I *think* you can do this on the client from Forms with UTL_FILE.

But you're not using forms, which means you can't do what you want in PL/SQL. Anything file creation done from PL/SQL in the database, will write to the filesytem of the database server.

You can't write to the client with server side code, at least not stored procedures. EJB's et al may be a different story; I haven't used them.

Jared

On Wednesday 29 August 2001 04:00, Ranganath K wrote:
> Dear DBA Gurus,
>
> How do I spool output of a select statement to a file through stored
> procedure. The stored procedure should take the directory and path of the
> file to be spooled to on the client machine. I know we can do this using
> UTL_FILE package. But I don't want to write to a file in Oracle Database
> server machine rather I want to write the output to a file in client
> machine. Please note that I want to do this through a Pl/Sql procedure or
> a pl/sql program so that the procedure can be called from the front end
> which is Java/C++. How do I do this? Any help in this regard will be
> duly appreciated.
>
> Thanks and Regards,
>
> Ranganath
>
>
> DISCLAIMER: This correspondence is confidential and intended for the named
> recipient(s) only. If you are not the named recipient and receive this
> correspondence in error, you must not copy, distribute or take any action
> in reliance on it and you should delete it from your system and notify the
> sender immediately. Unless otherwise stated, any views or opinions
> expressed are solely those of the author and do not represent those of
> Subex Systems Limited.
>
> www.subexgroup.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jared Still
  INET: jkstill_at_cybcon.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 29 2001 - 09:54:04 CDT

Original text of this message

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