oracle sql plus spool
Posted
by CC
on Stack Overflow
See other posts from Stack Overflow
or by CC
Published on 2010-04-01T12:50:29Z
Indexed on
2010/04/01
12:53 UTC
Read the original article
Hit count: 523
Hi.
I'm using sql plus to execute a query (a select) and dump the result into a file, using spool option. I have about 14 millions lines, and it takes about 12 minutes to do the dump. I was wondering if there is something to make the dump faster?
Here below my sql plus options:
whenever sqlerror exit sql.sqlcode
set pagesize 0
set linesize 410
SET trimspool ON
set heading on
set feedback off
set echo off
set termout off
spool file_to_dump_into.txt
select * from mytable;
Thanks.
© Stack Overflow or respective owner