-
which has a better performance Spool file or UTL_File in oracle
Hi All,
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
spool C:\pi_sloc_sap_inv.txt
Select * from emp
/
spool off
set feedback on
set heading on
set termout on
set pagesize 20
==================================================================
Thanks in advance
With Regards
Hitesh Parikh
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|