DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: which has a better performance Spool file or UTL_File in oracle

  1. #1
    Join Date
    Jul 2003
    Location
    India
    Posts
    12

    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
    Location
    Geneva Switzerland
    Posts
    3,142
    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
    Location
    Colorado Springs
    Posts
    5,253
    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