which has a better performance Spool file or UTL_File in oracle
Can you share your views on, which has a better performance Spool file or UTL_File utility.
Since i am not having access right on server, i have to use Spool command but for 50000 records it takes 20 mins.
So can you suggest me any performace enhancement tip using spool file command.
Database Version is 8.1.7
my sql file is
set echo off
set feedback off
set heading off
set pagesize 0
set linesize 167
set termout off
Select * from emp
set feedback on
set heading on
set termout on
set pagesize 20
Thanks in advance
Spool will be slower since the data has to go across the network.
Don't: select *
Select ONLY the columns you need. Reducing the amount of data sent over the network will speed it up.
You might try increasing your arraysize -- see if it speeds things up.
Click Here to Expand Forum to Full Width