Write PL/SQL query results to a file
From: robert <shhmoo_at_excite.com>
Date: 18 Jun 2003 08:16:31 -0700
Message-ID: <114e40a3.0306180716.5aa0b4b8_at_posting.google.com>
Date: 18 Jun 2003 08:16:31 -0700
Message-ID: <114e40a3.0306180716.5aa0b4b8_at_posting.google.com>
I'm trying to write the results of my PL/SQL query to a file. I have
came across a number of possible* solutions such as DBMS_PIPE and
UTL_FILE. Basically, I am running a batch file on an NT box and would
like to obtain the results from the DB server running Oracle
8.1.7.4.0.
So far I have been able to get export a file to my local machine by
doing:
I would like to have this file be the output of my query instead. Any
exp 'usr/passwd _at_db' full=no file=%ORACLE_SID%.dmp %ORACLE_SID%.log