SQL Server Developer Center > SQL Server Forums > SQL Service Broker > dependencies for the bulk inserting process
Ask a questionAsk a question
 

Question dependencies for the bulk inserting process

  • Monday, October 26, 2009 9:28 AMrs456 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    HI All

    There are lot of dependencies for the bulk inserting process in oracle like

    Tablespace
    Redo Log Size
    Server size
    PCT FREE
    PCT USED
    Log Switches
    Undo Retention
    Undo Tablespace Size.

    Undo Size = Undo Retention * DB Block Size * Undo Block Per Sec

    undo Block Per Sec
    SELECT MAX(undoblks/((end_time-begin_time)*3600*24))
          "UNDO_BLOCK_PER_SEC"
      FROM v$undostat;
     

    INITIAL 
    INITRANS for the table from 1 to 5.
    PCTINCREASE - 0
    FREELISTS parameter.  You want to have it set to AT LEAST the number of processes that you believe will be CONCURRENTLY inserting into your table.
    multiple database writers (db_writers init.ora parameter),
     
    PCT_USED is most important if records will ever be deleted from this table.  If you don't plan to allow deletes, then set PCT_USED to a high value (like 80 or 90) but the total of PCT_FREE + PCT_USED must be less than or equal to 100.


    Locally Managed / Dictionery Managed.


    can any one suggest me for sql server...?

    please


    Regards
    Yogananda

All Replies