DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003

    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

  2. #2
    Join Date
    Nov 2002
    Geneva Switzerland
    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.

  3. #3
    Join Date
    Aug 2002
    Colorado Springs
    You might try increasing your arraysize -- see if it speeds things up.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.