Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sql script to spool to file on unix box

701029May 12 2009 — edited May 13 2009
Hi,

I have a script which executes a stored procedure from my oracle database and spools the results to a file. Now I want to spool the files to a unix file path. I'm executing the script using TOAD. How do I specify the unix file path? Or is there an alternative way to do this?

Here is the script:

set linesize 512
set colsep ""
set pagesize 0
set newpage none
set feedback off
set termout off
set recsep off
set sqlprompt ""
set heading off
set echo off
set serveroutput on
set trimspool on
exec DBMS_OUTPUT.enable(10000);

spool /u02/TEST/test.LST

exec generate_test;

spool off
quit
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2009
Added on May 12 2009
5 comments
5,315 views