Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: HOW TO FIGURE OUT SUITABLE INITRANS VALUE FOR A TABLE

Re: HOW TO FIGURE OUT SUITABLE INITRANS VALUE FOR A TABLE

From: Tanel Poder <tanel.poder.003_at_mail.ee>
Date: Thu, 25 Sep 2003 03:34:41 -0800
Message-ID: <F001.005D10AE.20030925033441@fatcity.com>


Hi!

Btw, minimum inittrans is 2 in 9i when block is formatted using conventional insert and it's 3 when a block is formatted using direct path insert, even though data dictionary claims otherwise.

Optimal inittrans for a *block* is the number of concurrent transactions in it. Optimal inittrans for a segment should be set such way that majority of the blocks shouldn't have the need to extend ITL area during transaction activity in them. That means, if 99% of your blocks experience 2 concurrent transactions at a given time, but 1% have 4 transactions, then I'd still set inittrans to 2, but maxtrans to higher value instead.

It is hard to calculate the number of concurrent transactions in a block, since we don't have much control in which blocks our data is stored, nor we don't know which exact rows will be modified in given time that well either. One common pitfall is a recommendation to set inittrans for table as high as many concurrent inserts to it you have -> this may lead into overly large ITLs, because if using multiple freelists and freelist groups, inserts are spread into several blocks anyway.

An easy for smapling optimal inittrans for existing data is to use "alter system dump datafile" command to dump a range of datablocks and grep for "itc:" from the file, this shows you max interested transaction count for evey block.

Tanel.

> Tables have default INITRANS value.
> I want to set this parameter to a suitable value. Because INITRANS is 1 as
default value and I want to avoid from load of dynamic
> But how can I figure out suitable value of this parameter for each table.
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: <A.Bahar_at_billing-components.com
> INET: A.Bahar_at_billing-components.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Tanel Poder
  INET: tanel.poder.003_at_mail.ee

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Sep 25 2003 - 06:34:41 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US