Determine hot blocks on interconnect

Hi,
I got the below query from the forum...Re: How to determine hot blocks on interconnect and when i ran in my instance..
its show as
SQL> select /*+ rule */
de.owner, de.segment_name, de.segment_type,
  2    3  ash.event,
  4  sum(ash.time_waited) total_time,
  5  count(*) count,
  6  sum(ash.time_waited)/count(*) Avg_wait
  7  from
  8  V$ACTIVE_SESSION_HISTORY ash,
  9  dba_extents de
10  where
11  ash.event like 'gc%' and
12  ash.P1TEXT='file#' and
13  ash.P2TEXT='block#' and
14  ash.p1=de.file_id and
15  ash.time_waited > 0 and
16  ash.p2 between de.block_id AND (de.block_id+de.blocks-1)
17  group by de.owner, de.segment_name, de.segment_type, ash.event
18  order by 5 desc;
OWNER      SEGMENT_NAME                   SEGMENT_TYPE    EVENT                          TOTAL_TIME      COUNT   AVG_WAIT
APPLSYS    FND_CONCURRENT_REQUESTS        TABLE           gc buffer busy                 1093170590       1647  663734.42
APPLSYS    FND_CONCURRENT_REQUESTS_N2     INDEX           gc buffer busy                  308449809        379 813851.739
APPLSYS    FND_CONCURRENT_QUEUES          TABLE           gc buffer busy                   57052295         82 695759.695
GMI        IC_TRAN_PND                    TABLE           gc buffer busy                   20919444        590 35456.6847
SYS        _SYSSMU194$                    TYPE2 UNDO      gc buffer busy                    4866157          5   973231.4
WSH        WSH_DELIVERY_DETAILS           TABLE           gc cr multi block request         3691260         22 167784.545
APPLSYS    FND_CACHE_VERSIONS_PK1         INDEX           gc buffer busy                    3500004          4     875001
APPLSYS    FND_CONCURRENT_REQUESTS_U1     INDEX           gc buffer busy                    2894350          6 482391.667
APPLSYS    WF_ITEM_ACTIVITY_STATUSES_H    TABLE           gc buffer busy                    2769562         84 32970.9762Is this means these blocks are hot blocks...if so how do i resolve this...
thanks,
baskar.l

Hi,
Thanks rodrigo and all..i followed the URL and could find a fnd table where the size of the table is 1gb but number of blocks*rowlength is 44mb...created a backup table as select * from fnd table to see that the backup table size is 44mb only..
Will rebuilt this table on maintaence window..
thanks,
baskar.l

Similar Messages

  • How to determine hot blocks on interconnect

    Hi,
    I want to identify which queries cause most interconnect activity on 2-node RAC cluster and which object-blocks are sent most through interconnect. If i can identify these, i can tune queries and maybe redistribute sessions in order to lower interconnect traffic. Can you suggest a way to do this?
    By the way, i don't have a problem now. I just want to do some fine tuning and be prepared for a near future production deployment.
    IBM AIX 5.3,
    Oracle 10.2.0.4 2-node RAC
    Regards,
    erkan

    Hello is that the query.. on running these is get a list of tables
    SQL> select /*+ rule */
    de.owner, de.segment_name, de.segment_type,
      2    3  ash.event,
      4  sum(ash.time_waited) total_time,
      5  count(*) count,
      6  sum(ash.time_waited)/count(*) Avg_wait
      7  from
      8  V$ACTIVE_SESSION_HISTORY ash,
      9  dba_extents de
    10  where
    11  ash.event like 'gc%' and
    12  ash.P1TEXT='file#' and
    13  ash.P2TEXT='block#' and
    14  ash.p1=de.file_id and
    15  ash.time_waited > 0 and
    16  ash.p2 between de.block_id AND (de.block_id+de.blocks-1)
    17  group by de.owner, de.segment_name, de.segment_type, ash.event
    18  order by 5 desc;
    OWNER      SEGMENT_NAME                   SEGMENT_TYPE    EVENT                          TOTAL_TIME      COUNT   AVG_WAIT
    APPLSYS    FND_CONCURRENT_REQUESTS        TABLE           gc buffer busy                 1093170590       1647  663734.42
    APPLSYS    FND_CONCURRENT_REQUESTS_N2     INDEX           gc buffer busy                  308449809        379 813851.739
    APPLSYS    FND_CONCURRENT_QUEUES          TABLE           gc buffer busy                   57052295         82 695759.695
    GMI        IC_TRAN_PND                    TABLE           gc buffer busy                   20919444        590 35456.6847
    SYS        _SYSSMU194$                    TYPE2 UNDO      gc buffer busy                    4866157          5   973231.4
    WSH        WSH_DELIVERY_DETAILS           TABLE           gc cr multi block request         3691260         22 167784.545
    APPLSYS    FND_CACHE_VERSIONS_PK1         INDEX           gc buffer busy                    3500004          4     875001
    APPLSYS    FND_CONCURRENT_REQUESTS_U1     INDEX           gc buffer busy                    2894350          6 482391.667thanks,
    baskar.l

  • BUFFER CACHE 내의 HOT BLOCK을 찾기

    제품 : ORACLE SERVER
    작성날짜 : 2004-10-13
    BUFFER CACHE 내의 HOT BLOCK을 찾기
    =============================
    PURPOSE
    ORACLE은 data block을 효율적으로 관리하기 위하여 buffer cache를
    사용하고 있다.
    이 buffer cache는 각각 buffer handle을 가지고 있으며 buffer cache
    chain에 의하여 관리가 되고 있다. oracle은 원하는 block을 빨리 찾기
    위하여 block의 주소를 hash key로 사용하는 hash function을 사용하여
    특정 buffer chain을 찾고 이 list를 scan하여 원하는 block을 찾게
    된다. 따라서 특정 block은 하나의 buffer chain에 의하여 관리된다.
    이 buffer cache chains latch cocntention은 주로 이 buffer chain에
    의하여 관리되는 buffer수가 많거나 hot block(hot buffer)에 의한 경우로
    나누어 볼 수 있다.
    아래에서는 hot block을 찾는 방법에 대하여 설명하고 있다.
    Explanation
    1. v$latch_children에서 contention이 많은 buffer cache chain
    latch들을 찾는다.
    select * from
    (select l.child#, l.addr, l.sleeps, l.sleep1, l.sleep3
    from
    v$latch_children l
    where l.latch#= 66
    order by l.sleeps desc
    where rownum < 11
    이 쿼리를 일정한 간격을 두고 수행하여 현 시점에서 sleeps이 많은
    latch를 선별한다.
    CHILD# ADDR SLEEPS SLEEP1 SLEEP3
    29406 33F84420 301809 242441 4041
    2532 33BEDB68 233945 213363 651
    3642 33C13A70 215950 181390 2330
    3575 33C115CC 198600 102161 14556
    25216 33EF50B8 195763 176779 796
    33288 34008F18 180123 155168 1735
    18475 33E0EA3C 169387 156205 405
    32301 33FE7354 152855 137046 616
    20770 33E5D150 91845 74889 889
    2533 33BEDBF4 78774 74539 110
    10 rows selected.
    CHILD# ADDR SLEEPS SLEEP1 SLEEP3
    29406 33F84420 301809 242441 4041 *
    2532 33BEDB68 234272 213670 651
    3642 33C13A70 216086 181520 2330
    3575 33C115CC 198600 102161 14556 *
    25216 33EF50B8 196068 177069 797
    33288 34008F18 180123 155168 1735 *
    18475 33E0EA3C 169598 156408 405
    32301 33FE7354 152855 137046 616 *
    20770 33E5D150 91845 74889 889 *
    2533 33BEDBF4 78855 74618 110
    10 rows selected.
    현 시점에서 높은 sleeps 변화를 보이는 latch#은 2532, 3642,
    25216, 18475, 2533 latch들이다.
    2. 이제 이들 latch들로 관리되고 있는 buffer들 중에서 hot block들을
    찾는다.
    select b.hladdr, l.sleeps, l.sleep3, b.tch,
    b.dbarfil, b.dbablk, b.state
    from x$bh b, v$latch_children l
    where l.child#
    in
    (2532, 3642, 25216, 18475, 2533)
    and b.hladdr= l.addr
    order by tch
    x$bh의 tch는 touch count를 의미하므로 이 값이 가장 큰
    것부터 hot block들이라고 볼 수 있다.
    HLADDR SLEEPS SLEEP3 TCH DBARFIL DBABLK
    STATE
    33E0EA3C 169818 405 0 192
    102764 1
    33E0EA3C 169818 405 0 70
    97847 1
    33E0EA3C 169818 405 0 106
    38012 1
    33EF50B8 196361 797 1 193
    115327 1
    33C13A70 216224 2330 91 33
    4494 1
    33BEDBF4 78952 110 104 33
    3385 1
    33BEDB68 234617 651 132 33
    3384 1
    33EF50B8 196361 797 146 24
    25614 1
    33E0EA3C 169818 405 164 32
    10107 1
    3. 아래의 쿼리를 수행하여 hot block과 관련된 object를 찾는다.
    select segment_name , segment_type , owner
    from sys.dba_extents
    where file_id = 32
    and 10107 between block_id and (block_id+(blocks-1))
    SEGMENT_NAME SEGMENT_TYPE OWNER
    FRED_TABLE TABLE MARY
    4. hot block이 확인된 object의 header block인지 확인해 본다.
    select header_file, header_block, freelist_groups, freelists
    from dba_segments where
    segment_name = 'FRED_TABLE'
    and owner = 'MARY'
    HEADER_FILE HEADER_BLOCK FREELIST_GROUPS FREELISTS
    32 4769 4 4
    해당 block(10107)이 segment header block ~ segment header
    block(4769) + free list group(4) 사이에 들어가지 않으므로
    data block이다.
    Example
    none
    Reference Documents
    none

  • How to determine Hot Patch Version

    I am running Webaccess on a Windows 2003 server (IIS and Tomcat), connecting back to a Webacess agent on Novell.
    I believe I have 7.0.3 hp 3 installed, but can only see that it's 7.0.3 (by clicking the icon on the webaccess page).
    How do I confirm the hot patch version.
    Thanks for your help
    Dawn

    dawnbarclay,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Can a flag field be used in a procedure to determine prior block success

    I have a below stored procedure that has a IN and OUT parameter. The block
    has structure as below.
    In this procedure there are multiple inner blocks each with an individual
    exception handler. I need to modify this to pass a flag field as a additional parameter
    to this procedure such that should any of the inner block execution were to fail, the next execution should pass the control to the failed block (as in the previous successfully executed INNER blocks should not be re-executed).
    How can I acheive this?
    CREATE OR REPLACE PROCEDURE procname(some_in_variable IN datatype1,
                                                 some_out_variable OUT datatype2)IS   
    var1 datatype;
    var2 datatype;
    cursor cursorname IS
    BEGIN
      IF some_condition then
         RAISE main_exception_encountered
      ELSE
         DECLARE -- BEGIN OF INNER BLOCK 1
         BEGIN
          IF CONDITION THEN
          ELSE
            raise some_excep;
          END IF;
         END;   -- END OF INNER BLOCK 1
         DECLARE  -- BEGIN OF INNER BLOCK 2
         BEGIN
          SELECT statements here
          exec some_procedure_name(param1, param2);
         exception
         END;   -- BEGIN OF INNER BLOCK 2
      EXCEPTION
        when some_excep then.....
    EXCEPTION
      when main_exception_encountered...do something
    END procname;

    steve2312 wrote:
    Ok. I plan on use the below code snippet inside every block prior to an exception being raised. This will set flag value to N when a block fails.
    UPDATE processlogtable           
    SET flagfield = 'N'
    WHERE pk_field = 'somevalue';
    COMMIT;The next time a new block is read it'll check for the flag, if it is Y then the block is executed. However, if the flag is N due to a failed block how can I make the procedure go back to that failed block?Do you really want to COMMIT all DML changes that caused an EXCEPTION?

  • Hot Data Block with concurrent read and write

    Hi,
    This is from ADDM Report.
    FINDING 8: 2% impact (159 seconds)
    A hot data block with concurrent read and write activity was found. The block
    belongs to segment "SIEBEL.S_SRM_REQUEST" and is block 8138 in file 7.
    RECOMMENDATION 1: Application Analysis, 2% benefit (159 seconds)
    ACTION: Investigate application logic to find the cause of high
    concurrent read and write activity to the data present in this block.
    RELEVANT OBJECT: database block with object# 73759, file# 7 and
    block# 8138
    RATIONALE: The SQL statement with SQL_ID "f1dhpm6pnmmzq" spent
    significant time on "buffer busy" waits for the hot block.
    RELEVANT OBJECT: SQL statement with SQL_ID f1dhpm6pnmmzq
    DELETE FROM SIEBEL.S_SRM_REQUEST WHERE ROW_ID = :B1
    RECOMMENDATION 2: Schema, 2% benefit (159 seconds)
    ACTION: Consider rebuilding the TABLE "SIEBEL.S_SRM_REQUEST" with object
    id 73759 using a higher value for PCTFREE.
    RELEVANT OBJECT: database object with id 73759
    SYMPTOMS THAT LED TO THE FINDING:
    SYMPTOM: Wait class "Concurrency" was consuming significant database
    time. (4% impact [322 seconds])
    what does it mean by hot block with concurrent read and write??
    is rebuilding the table solves the problem as per addm report?

    Hi,
    You must suffer from buffer busy waits.
    When a buffer is updated, the buffer will be latched, and other sessions can not read it or write it.
    You must have multiple sessions reading and writing that one block.
    Recommendation 2 results in fewer records per block, so less chance multiple sessions are modifying and reading 1 block. It will also result in a bigger table.
    The recommendation doesn't make sense for tablespaces with segment storage management auto, as for those tablespaces pctfree does not apply.
    Buffer busy waits will also occur if the blocksize of your database is set too high.
    Sybrand Bakker
    Senior Oracle DBA

  • Determine Block Number at Save

    Hi Gurus,
    we'are tryning to determine the block numbers for a specified resource into Tcode /sapapo/res01
    ( Block planning / Create Blocks / Insert Blocks)
    We only found one BADI that could help us : /SAPAPO/MC01_BLK ,  method BLOCK_CHANGES_PUBLISH.
    But this method doesn't allow any Block number change.
    Checking the standard code, we noticed an interesting form :
    in Include /SAPAPO/LMC01_RULF99  , perform propose_blocknr_from_user ,
    its parameters correspond to want we want to modify but its code is empty, it only contains following comments :
    * from here, a block number can be set by from a customer
    * enhancement (modification, by now)
    * In order to activate, above Form propose_blocknr_for_line,
    * set global variable gb_blocknr_active = 'X',
    * and enter customer specific coding in order to determine the
    * block number below.
    * implement customer-specific functionality to determine
    * new block numbers here (as a modification).
    * Write new block number into CC_BLOCKNR.
    * Use LC_RESID as internal ID for ressource,
    * and LC_SIMVERSID as internal ID for planning version,
    * if required.
    * Also, some methods of class /SAPAPO/CL_TMC01TB may
    * be helpful in order to determine new block numbers
    * (like method BLOCKNR_IS_UNIQUE)
    Do we have to modify the standard code in this perform, or is there another method to determine block numbering among project specific rules ?
    Thanks' in advance for responding !

    hi Romain
    Block numbers to be generated automatically. This is not a standard functionality. Based on the customer requirement we  activating the user exit /SAPAPO/LMC01_RULF99.
    for every Location and resource we specified a number range
    for Block ID
    User Exit - /SAPAPO/LMC01_RULF99 is implemented to achieve the  Generation of block number automatically.  It is implemented in the Function Pool  /SAPAPO/MC01_RUL Formulate Rules Using Characterisics, inside the sub program /SAPAPO/LMC01_RULF05.
    Read the table gt_tmc01tr with key component id and Block id.
    In the subroutine propose_blocknr allows automatic determination of a block number for a newly created block by user enhancement. Using the method /sapapo/cl_mc01_vrs=>componentid_unfold get the resource id and version id, because the action to be performed only on a Active version. Now, call the /sapapo/cl_tmc01tb=>blockid_2_blocknr to get the old block numbers, so that it does not get disturbed. Call the method /sapapo/cl_tmc01tb=>blocknr_is_unique
    To have a block number which is unique.
         Now, block number is generated using the following procedure. Initially check if any block number is already exists or not. If not, proceed further by calling the function module MMRP_RESID_2_RESNAME for getting the resource name and id. Split the resource at u2018_u2019 and get the location number. Get the Number range from the block number range table zao_blk_num_ran( custom table which stores location , resource & number range). Check for the location number and Resource exists in the table, if it matches then call the function module: NUMBER_GET_NEXT to generate an unique number for each block.
         Now, to specify the range, ZAO_BLOCK ( custom object)is created in SNUM transaction.
    After generating the number the exit /SAPAPO/LMC01_RULO15 is used to display them.
    In the standard code, a line has been deleted and a new line is added to make the block number in display mode.
    Hope this information helpas you
    please feel free to ask furthur doubt
    regards
    Vaibhav sareen
    Edited by: vaibhav sareen on Jul 3, 2009 2:23 PM

  • GR/IR automatic Blocking & Unblocking

    Hi
    I have a couple of questions regarding the GR/IR automatic Blocking and Unblocking,
    Question 1
    Scenario: Looking for Quantity Variance
    Purchase Order:           Qty: 10Kg & Price: $20       [@ unit price $2/ 1kg]
    Goods Received:          Qty: 6 Kg 
    Invoice Received:         Qty: 10Kg & Price: $20
    When I post the invoice, this invoice gets blocked automatically because GR is 6Kg & IR is for 10Kg.
    How can I unblock the invoice automatically with MRBR?
    I have tried the following to unblock the invoice automatically:
    (1) I have posted another GR for 4Kg against the same PO and checked the blocked Invoice it is still blocked and couldn't unblock automatically
    (2) After posting GR for 4Kg, posted Invoice against the same PO for 4kg, but this invoice is showing as a separate one
    i.e.,      Earlier Invoice is $20.00-   (which is our blocked invoice)
               New Invoice        $ 8.00-    (new invoice for 4Kgs)
    Still I could not unblock the (blocked) invoice automatically with MRBR.
    Please help me with unblocking the invoice automatically.
    Question 2
    How can we set the tolerance limit for quantity difference between GR & IR as ZERO.
    In other words, Qty in GR = Qty in IR else the invoice should be blocked for payment. How do we set this tolerance?
    All the thoughts/ replys / suggestions are appreciated by rewarding points!
    Thanks!

    1. Materials Management>>Logistics Invoice Verification>>Invoice Block>>Determine Payment Block
    2. Materials Management>>Logistics Invoice Verification>>Invoice Block>>Set Tolerance Limits
    3. Materials Management>>Logistics Invoice Verification>>Invoice Block>>Item Amount Check
    Configure these nodes properly and your problem will be solved
    Rgds,
    Harmees

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • Column p3 (id#/block#) in v$session_wait/v$active_session_history

    The environment is 10.2.0.3 in AIX 5.3.0.0 in a two node cluster.
    In v$session_wait/v$active_session_history, the column p3 is reffered as
    For gc buffer busy waits - id#
    and
    For buffer busy waits - Class#
    (1)Could somebody please explain what exactly these values mean id#/class# and how can we associate them with other statitistics availble to troublshoot the issue?
    In my system when I made a query in v$active_session_history it is found that file#(p1) with block# (p2) 287724 is having high count of "gc buffer waits" with tow different values in id# (p3) (pls find below result) The file 16 with block 287724 is having most number of counts for gc buffer busy (with two different id#(??))
    EVENT P1 P2 P3 COUNT(*)
    gc buffer busy 18 1091724 65537 2
    gc buffer busy 16 287724 131073 58
    gc buffer busy 7 575153 65537 2
    gc buffer busy 13 1528666 65537 1
    gc buffer busy 14 843396 65537 2
    gc buffer busy 12 1157771 65537 1
    gc buffer busy 16 287724 65537 86
    gc buffer busy 12 12231 65537 1
    gc buffer busy 18 1091732 65537 1
    gc buffer busy 11 1642482 65537 2
    gc buffer busy 10 1527484 65537 2
    EVENT P1 P2 P3 COUNT(*)
    gc buffer busy 11 1642497 65537 1
    gc buffer busy 14 843396 131073 1
    And I found that this is a primary key index with the segment_statistics as follows (from V$SEGMENT_STATISTICS)
    OBJECT_NAME STATISTIC_NAME VALUE
    PROCESS_LOCK_PK logical reads 18176
    PROCESS_LOCK_PK buffer busy waits 33
    PROCESS_LOCK_PK gc buffer busy 776
    PROCESS_LOCK_PK db block changes 6624
    PROCESS_LOCK_PK physical reads 2
    PROCESS_LOCK_PK physical writes 64
    PROCESS_LOCK_PK physical reads direct 0
    PROCESS_LOCK_PK physical writes direct 0
    PROCESS_LOCK_PK gc cr blocks received 1991
    PROCESS_LOCK_PK gc current blocks receive 2771
    PROCESS_LOCK_PK ITL waits 0
    OBJECT_NAME STATISTIC_NAME VALUE
    PROCESS_LOCK_PK row lock waits 0
    PROCESS_LOCK_PK space used 0
    PROCESS_LOCK_PK space allocated 0
    PROCESS_LOCK_PK segment scans 0
    with these available informations how can I solve this problem of "gc buffer busy" waits.
    I am not able to find from anywhere what exactly this "id#" is and how can we use it to solve this problem.
    Any help will be highly appreciated.
    Thanks
    N. Sethi
    Message was edited by:
    user623256

    Hi,
    gc buffer busy
    This wait event, also known as global cache buffer busy prior to Oracle 10g, specifies the time the remote instance locally spends accessing the requested data block. This wait event is very similar to the buffer busy waits wait event in a single-instance database and are often the result of:
    Hot Blocks - multiple sessions may be requesting a block that is either not in buffer cache or is in an incompatible mode. Deleting some of the hot rows and re-inserting them back into the table may alleviate the problem. Most of the time the rows will be placed into a different block and reduce contention on the block. The DBA may also need to adjust the pctfree and/or pctused parameters for the table to ensure the rows are placed into a different block.
    Inefficient Queries ? as with the gc cr request wait event, the more blocks requested from the buffer cache the more likelihood of a session having to wait for other sessions. Tuning queries to access fewer blocks will often result in less contention for the same block.
    Please find the below link.. I hope it will help out for you..Since I did not have much idea on RAC ..
    http://www.ardentperf.com/2007/09/12/gc-buffer-busy-waits-in-rac-finding-hot-blocks/
    Thanks
    Pavan Kumar N

  • Question on BLOCK in BPM

    Hi, everybody.
    I have a question when develop a BPM.
    In my BPM scenario, I have a RECEIVE, a RECEIVER DETERMINATION, a BLOCK, and in the BLOCK I have a SEND.(all of these are configure as this sequence)
    I configurate it, and have test. The BPM log show that the process stop at BLOCK, no send action occur.
    The last log of BPM is 'Block item (local Workflow) created'.
    I use a 'ForEach' mode for BLOCK, multiline element is the Receivers container from the RECEIVER DETERMINATION.
    Can anyone help me to make clear where the problem probably in?
    And by the way, as using RECEIVER DETERMINATION in BPM, should I do some special setting in receiver determination of ID(integration directory) too?
    Any suggestion and reply is welcome,  thanks a lot

    Hi, Christophe DUMONT 
    As you say, the container of receiver determination is empty. 
    Now I think the problem is in RECEIVER DETERMINATION step, not the BLOCK.
    the online help say
    'In the receiver determination step, specify the send context and the multiline container element for the receiver list. The send context is an arbitrary string. You query this context in a condition in the receiver determination in the Integration Directory.'
    I don't set the SEND CONTEXT of it, and don't know how to set it. Does anyone know about it?
    I think the point of problem is clear now, we only need support from someone who is familiar with setting RECEIVER DETERMINATION step.
    thanks a lot

  • Re:LIV payment block  ( MIRO)

    Hi All
    In our SAP environment , Invoice are getting blocked automatically by a manual block which is not R block ( Invoice verfication block)...My question is Is there any way to block the invoice automatically other than R block.....If we can do it using user exits ..then what user exits do we use to put the code in for MIRO tcode

    Hai
    Invoice you can block by following way of functions:
    Determine Payment Block
    Set Tolerance Limits
    Item Amount Check
    Stochastic Block
    1. payment blocks used to block invoices for automatic payment. Payment blocks apply to all company codes. When entering an invoice, the user can enter a payment block; the invoice is then only paid once the payment block has been deleted.
    2.set tolerence limits
    AN: Amount for item without order reference,AP: Amount for item with order reference
    PP: Price variance
    VP: Moving average price variance
    BD: Form small differences automatically
    these are the payment relevant tolerence level block
    refer: spromminvoice verification--invoice block
    3. Activate item amount check in your company code
    You set the limit above which items are blocked as the "absolute upper limit" for AN and AP.
    4. Stochastic block
    The degree of probability depends on the invoice value; if it is the same or larger than the threshold value, the degree of probability is the same as the percentage. If the invoice value is smaller, the degree of probability is calculated in proportion to the threshold value.
    Example
    Threshold value: 3000 percentage: 60
    Invoice value Degree of probability of a block
    3000 60 %
    5000 60 %
    1500 30 % (= 60 * 1500/3000)
    100 2 % (= 60 *  100/3000)
    In via user exits you can block:
    MM08R002 Tolerance checks
    other than user exits ( customer exists used in invoice)
    MM08R001 ERS (conventional Invoice Verification)
    MM08R002 Tolerance checks
    LMR1M001 Transfer of document header and item data,
    account assignment proposal for invoices for blanket POs
    LMR1M002 Account grouping for GR/IR account determination
    LMR1M003 Number assignment in Logistics Invoice Verification
    LMR1M004 Item text in follow-on documents
    LMR1M005 Change criteria for releasing parked documents for posting
    LMR1M006 Change XML data for BAPI call CreateFromData
    RMVKON00 Consignment/pipeline settlement
    MRMH0001 ERS (Logistics Invoice Verification)
    MRMH0002 EDI invoice receipt (Logistics Invoice Verification)
    MRMH0003 Revaluation (Logistics Invoice Verification)
    MRMN0001 Message output for Invoice Verification*
    Hope it's useful for you

  • Invoice blocking at header level

    Dear team,
    Could you kindly provide your inputs for the following issue;
    While posting invoice with MIRO with a different ( higher) price than PO price, price blocking is happening only at the item level. But user wants to know  why it is  not blocking at header level why it was happened only for Item level.
    At what circumstances, header level will be blocked.
    Thanks in advance.
    Regards
    Madhav

    Hi Madhav,
    In your case, the system can determine that blocking is required only when the price in entered on MIRO. The system compares the price with PO price. So blocking will always be at line level, since price is entered at line level.
    Header blocking means blocking the PO completely( by checking Final Invoice check) or by blocking the Vendor in master data from posting. Both these options are not suitable for your case. The blocking can only be handled at line level.
    Hope this helps,
    Thanks.
    Uma

  • Available blocks in buffer cache

    Hi.
    I need to find available blocks in buffer cache. I can not query x$bh as not sysdba user. Anyone that has an idea how to get this information. I tried query the v$bh view but I can not get it right.
    Anyone with a good idea?
    Rgds
    Kjell OVe

    No,
    When you have a 100m buffer cache, it means you can buffer 100m/8k blocks of your database in cache, and you don't need to read them from disk.
    When the cache gets full Oracle will use a modified Least Recently Used algorithm to determine which blocks can be flushed.
    If the block is unmodified (not dirty) it will simply be removed, if it is modified it will be written to disk.
    When you insert a record (you seem to be really obsessed by this)
    - Oracle will look for free space in the current segment.
    When it finds a block and it is not in cache, it will retrieve this in cache.
    - if there is no space, Oracle will allocate a new extent.
    It will retrieve blocks from the new extent in cache. Simply: each block in the cache has a RBA (relative block address). The RBA points to a block on disk.
    - When it can't allocate an extent, Oracle will try to extend the tablespace (actually the datafile)
    If this doesn't succeed Oracle will raise an error, and send the error number and error text to the client program.
    The failing statement will be rolled back automatically.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • One block appears 54K times as cr in v$bh.

    I did a test about 90 concurrent sessions, each session inserted 100 rows into the following table with row length of 80K
    create table test_flist (a long raw) storage (freelists 59 FREELIST GROUPS 1);I saw lots of catch buffer chain and find the hot block is the segment header
    SQL> select status,count(*) from v$bh where file#=192 and block#=499209 group by status;
    cr           54307
    free           489
    xcur             1My question is: why oracle created so many cr blocks in memory? In memory, some guru said oracle only creates xcur for segment header(only current get for segment header, there will be no consistent get for segment header), but here I saw so many cr blocks.
    dump that hot block as following
    *** SERVICE NAME:(SYS$USERS) 2009-07-31 06:32:02.860
    *** SESSION ID:(19893.356) 2009-07-31 06:32:02.860
    Start dump data blocks tsn: 14 file#: 192 minblk 499209 maxblk 499209
    buffer tsn: 14 rdba: 0x30079e09 (192/499209)
    scn: 0x032a.0fb75327 seq: 0x0d flg: 0x04 tail: 0x5327100d
    frmt: 0x02 chkval: 0x2a5c type: 0x10=DATA SEGMENT HEADER - UNLIMITED
    Hex dump of block: st=0, typ_found=1
    Dump of memory from 0x0000000106748000 to 0x000000010674A000
    106748000 10020000 30079E09 0FB75327 032A0D04  [....0.....S'.*..]
    106748010 2A5C0000 00000000 00000000 00000000  [*\..............]
    106748020 00000000 00000018 0004AFFF 10200000  [............. ..]
    106748030 0000000F 00002044 00003200 0389B24D  [...... D..2....M]
    106748040 00000000 0000000F 0001877A 00030E43  [...........z...C]
    106748050 00000000 00000000 00000000 00000018  [................]
    106748060 00000000 00013DFA 40000000 30079E0A  [[email protected]...]
    106748070 000031FF 3087D009 00003200 30C80209  [..1.0.....2.0...]
    106748080 00003200 3186D609 00003200 3347D009  [..2.1.....2.3G..]
    106748090 00003200 3487D009 00003200 69880209  [..2.4.....2.i...]
    1067480A0 00003200 7E099209 00003200 830A8C09  [..2.~.....2.....]
    1067480B0 00003200 83928E09 00003200 844ABE09  [..2.......2..J..]
    1067480C0 00003200 854A8C09 00003200 874A2809  [..2..J....2..J(.]
    1067480D0 00003200 010A8C09 00003200 028B2209  [..2.......2...".]
    1067480E0 00003200 03899209 00003200 048A8C09  [..2.......2.....]
    1067480F0 00003200 0509C409 00003200 060A2809  [..2.......2...(.]
    106748100 00003200 06CA5A09 00003200 084A8C09  [..2...Z...2..J..]
    106748110 00003200 0949F609 00003200 0A09F609  [..2..I....2.....]
    106748120 00003200 0A492E09 00003200 00000000  [..2..I....2.....]
    106748130 00000000 00000000 00000000 00000000  [................]
            Repeat 239 times
    106749030 00000000 0002003B 00010100 00010000  [.......;........]
    106749040 00000000 00009C60 7E09BAFD 30079E13  [.......`~...0...]
    106749050 00010000 00000000 00000000 7E09BE0A  [............~...]
    106749060 7E09BDF2 00010000 00000000 00000000  [~...............]
    106749070 830A9918 830A9916 00010000 00000000  [................]
    106749080 00000000 830A8D97 830A8D94 00010000  [................]
    106749090 00000000 00000000 7E09BFBE 7E09BFAC  [........~...~...]
    1067490A0 00010000 00000000 00000000 830A91EC  [................]
    1067490B0 830A916C 00010000 00000000 00000000  [...l............]
    1067490C0 830A94A6 830A95A6 00010000 00000000  [................]
    1067490D0 00000000 830A8C80 830A8C7D 00010000  [...........}....]
    1067490E0 00000000 00000000 830A9298 830A92ED  [................]
    1067490F0 00010000 00000000 00000000 830A8E25  [...............%]
    106749100 830A8DDC 00010000 00000000 00000000  [................]
    106749110 7E09BCD1 7E09BD1F 00010000 00000000  [~...~...........]
    106749120 00000000 7E09BD08 7E09BD3A 00010000  [....~...~..:....]
    106749130 00000000 00000000 7E09BC6B 7E09BC2C  [........~..k~..,]
    106749140 00010000 00000000 00000000 7E09BDB6  [............~...]
    106749150 7E09BD95 00010000 00000000 00000000  [~...............]
    106749160 830A8D6B 830A8E21 00010000 00000000  [...k...!........]
    106749170 00000000 830A8C13 7E09C3D9 00010000  [........~.......]
    106749180 00000000 00000000 830A9491 830A948E  [................]
    106749190 00010000 00000000 00000000 830AA4C9  [................]
    1067491A0 830AA390 00010000 00000000 00000000  [................]
    1067491B0 830AA58A 830AA806 00010000 00000000  [................]
    1067491C0 00000000 7E09BB98 7E09BB95 00010000  [....~...~.......]
    1067491D0 00000000 00000000 7E09C08E 7E09C0B6  [........~...~...]
    1067491E0 00010000 00000000 00000000 830A9073  [...............s]
    1067491F0 830A9025 00010000 00000000 00000000  [...%............]
    106749200 7E09BDD7 7E09BE12 00010000 00000000  [~...~...........]
    106749210 00000000 7E09BBAD 7E09BBA0 00010000  [....~...~.......]
    106749220 00000000 00000000 830A9B2F 830A9B2C  [.........../...,]
    106749230 00010000 00000000 00000000 7E09BC21  [............~..!]
    106749240 7E09BC33 00010000 00000000 00000000  [~..3............]
    106749250 7E09BD5F 7E09BDC8 00010000 00000000  [~.._~...........]
    106749260 00000000 7E09C1A2 7E09C1D2 00010000  [....~...~.......]
    106749270 00000000 00000000 7E09BD53 7E09BD2D  [........~..S~..-]
    106749280 00010000 00000000 00000000 7E09BBD3  [............~...]
    106749290 7E09BBD0 00010000 00000000 00000000  [~...............]
    1067492A0 7E09BB37 7E09BB33 00010000 00000000  [~..7~..3........]
    1067492B0 00000000 7E09BC2A 7E09BC3C 00010000  [....~..*~..<....]
    1067492C0 00000000 00000000 7E09BB3B 7E09BB38  [........~..;~..8]
    1067492D0 00010000 00000000 00000000 830A9419  [................]
    1067492E0 830A9416 00010000 00000000 00000000  [................]
    1067492F0 830A8EA7 830A8EDA 00010000 00000000  [................]
    106749300 00000000 830AA21C 830AA101 00010000  [................]
    106749310 00000000 00000000 830A9932 830A9A8C  [...........2....]
    106749320 00010000 00000000 00000000 7E09C11B  [............~...]
    106749330 7E09C13A 00010000 00000000 00000000  [~..:............]
    106749340 7E09C36C 7E09C369 00010000 00000000  [~..l~..i........]
    106749350 00000000 830A9820 830A9765 00010000  [....... ...e....]
    106749360 00000000 00000000 830A90C5 830A9072  [...............r]
    106749370 00010000 00000000 00000000 830A8C5D  [...............]]
    106749380 830A8C5A 00010000 00000000 00000000  [...Z............]
    106749390 830A9150 830A9102 00010000 00000000  [...P............]
    1067493A0 00000000 830A8CA9 830A8CEC 00010000  [................]
    1067493B0 00000000 00000000 830AA333 830AA218  [...........3....]
    1067493C0 00010000 00000000 00000000 7E09BAEF  [............~...]
    1067493D0 7E09BAF2 00010000 00000000 00000000  [~...............]
    1067493E0 830A9760 830A98A9 00010000 00000000  [...`............]
    1067493F0 00000000 7E09BBCF 7E09BBCC 00010000  [....~...~.......]
    106749400 00000000 00000000 830A8F7D 830A8F7A  [...........}...z]
    106749410 00010000 00000000 00000000 7E09BD33  [............~..3]
    106749420 7E09BD55 00010000 00000000 00000000  [~..U............]
    106749430 7E09C2C9 7E09C2E5 00010000 00000000  [~...~...........]
    106749440 00000000 830AA2A7 830AA18C 00010000  [................]
    106749450 00000000 00000000 830A8EE3 830A8E95  [................]
    106749460 00010000 00000000 00000000 830A976E  [...............n]
    106749470 830A96D0 00010000 00000000 00000000  [................]
    106749480 830A9A5F 830A99A3 00010000 00000000  [..._............]
    106749490 00000000 7E09BE79 7E09BE58 00010000  [....~..y~..X....]
    1067494A0 00000000 00000000 830A95B9 830A9534  [...............4]
    1067494B0 00010000 00000000 00000000 830A8C62  [...............b]
    1067494C0 830A8C5F 00010000 00000000 00000000  [..._............]
    1067494D0 830A9459 830A94CC 00010000 00000000  [...Y............]
    1067494E0 00000000 830A98B4 830A98B1 00000000  [................]
    1067494F0 00000000 00000000 00000000 00000000  [................]
            Repeat 175 times
    106749FF0 00000000 00000000 00000000 5327100D  [............S'..]
      Extent Control Header
      Extent Header:: spare1: 0      spare2: 0      #extents: 24     #blocks: 307199
                      last map  0x00000000  #maps: 0      offset: 4128 
          Highwater::  0x0389b24d  ext#: 15     blk#: 8260   ext size: 12800
      #blocks in seg. hdr's freelists: 100218
      #blocks below: 200259
      mapblk  0x00000000  offset: 15   
                       Unlocked
         Map Header:: next  0x00000000  #extents: 24   obj#: 81402  flag: 0x40000000
      Extent Map
       0x30079e0a  length: 12799
       0x3087d009  length: 12800
       0x30c80209  length: 12800
       0x3186d609  length: 12800
       0x3347d009  length: 12800
       0x3487d009  length: 12800
       0x69880209  length: 12800
       0x7e099209  length: 12800
       0x830a8c09  length: 12800
       0x83928e09  length: 12800
       0x844abe09  length: 12800
       0x854a8c09  length: 12800
       0x874a2809  length: 12800
       0x010a8c09  length: 12800
       0x028b2209  length: 12800
       0x03899209  length: 12800
       0x048a8c09  length: 12800
       0x0509c409  length: 12800
       0x060a2809  length: 12800
       0x06ca5a09  length: 12800
       0x084a8c09  length: 12800
       0x0949f609  length: 12800
       0x0a09f609  length: 12800
       0x0a492e09  length: 12800
      nfl = 59, nfb = 1 typ = 1 nxf = 2 ccnt = 40032
      SEG LST:: flg: USED   lhd: 0x7e09bafd ltl: 0x30079e13
      SEG LST:: flg: USED   lhd: 0x7e09be0a ltl: 0x7e09bdf2
      SEG LST:: flg: USED   lhd: 0x830a9918 ltl: 0x830a9916
      SEG LST:: flg: USED   lhd: 0x830a8d97 ltl: 0x830a8d94
      SEG LST:: flg: USED   lhd: 0x7e09bfbe ltl: 0x7e09bfac
      SEG LST:: flg: USED   lhd: 0x830a91ec ltl: 0x830a916c
      SEG LST:: flg: USED   lhd: 0x830a94a6 ltl: 0x830a95a6
      SEG LST:: flg: USED   lhd: 0x830a8c80 ltl: 0x830a8c7d
      SEG LST:: flg: USED   lhd: 0x830a9298 ltl: 0x830a92ed
      SEG LST:: flg: USED   lhd: 0x830a8e25 ltl: 0x830a8ddc
      SEG LST:: flg: USED   lhd: 0x7e09bcd1 ltl: 0x7e09bd1f
      SEG LST:: flg: USED   lhd: 0x7e09bd08 ltl: 0x7e09bd3a
      SEG LST:: flg: USED   lhd: 0x7e09bc6b ltl: 0x7e09bc2c
      SEG LST:: flg: USED   lhd: 0x7e09bdb6 ltl: 0x7e09bd95
      SEG LST:: flg: USED   lhd: 0x830a8d6b ltl: 0x830a8e21
      SEG LST:: flg: USED   lhd: 0x830a8c13 ltl: 0x7e09c3d9
      SEG LST:: flg: USED   lhd: 0x830a9491 ltl: 0x830a948e
      SEG LST:: flg: USED   lhd: 0x830aa4c9 ltl: 0x830aa390
      SEG LST:: flg: USED   lhd: 0x830aa58a ltl: 0x830aa806
      SEG LST:: flg: USED   lhd: 0x7e09bb98 ltl: 0x7e09bb95
      SEG LST:: flg: USED   lhd: 0x7e09c08e ltl: 0x7e09c0b6
      SEG LST:: flg: USED   lhd: 0x830a9073 ltl: 0x830a9025
      SEG LST:: flg: USED   lhd: 0x7e09bdd7 ltl: 0x7e09be12
      SEG LST:: flg: USED   lhd: 0x7e09bbad ltl: 0x7e09bba0
      SEG LST:: flg: USED   lhd: 0x830a9b2f ltl: 0x830a9b2c
      SEG LST:: flg: USED   lhd: 0x7e09bc21 ltl: 0x7e09bc33
      SEG LST:: flg: USED   lhd: 0x7e09bd5f ltl: 0x7e09bdc8
      SEG LST:: flg: USED   lhd: 0x7e09c1a2 ltl: 0x7e09c1d2
      SEG LST:: flg: USED   lhd: 0x7e09bd53 ltl: 0x7e09bd2d
      SEG LST:: flg: USED   lhd: 0x7e09bbd3 ltl: 0x7e09bbd0
      SEG LST:: flg: USED   lhd: 0x7e09bb37 ltl: 0x7e09bb33
      SEG LST:: flg: USED   lhd: 0x7e09bc2a ltl: 0x7e09bc3c
      SEG LST:: flg: USED   lhd: 0x7e09bb3b ltl: 0x7e09bb38
      SEG LST:: flg: USED   lhd: 0x830a9419 ltl: 0x830a9416
      SEG LST:: flg: USED   lhd: 0x830a8ea7 ltl: 0x830a8eda
      SEG LST:: flg: USED   lhd: 0x830aa21c ltl: 0x830aa101
      SEG LST:: flg: USED   lhd: 0x830a9932 ltl: 0x830a9a8c
      SEG LST:: flg: USED   lhd: 0x7e09c11b ltl: 0x7e09c13a
      SEG LST:: flg: USED   lhd: 0x7e09c36c ltl: 0x7e09c369
      SEG LST:: flg: USED   lhd: 0x830a9820 ltl: 0x830a9765
      SEG LST:: flg: USED   lhd: 0x830a90c5 ltl: 0x830a9072
      SEG LST:: flg: USED   lhd: 0x830a8c5d ltl: 0x830a8c5a
      SEG LST:: flg: USED   lhd: 0x830a9150 ltl: 0x830a9102
      SEG LST:: flg: USED   lhd: 0x830a8ca9 ltl: 0x830a8cec
      SEG LST:: flg: USED   lhd: 0x830aa333 ltl: 0x830aa218
      SEG LST:: flg: USED   lhd: 0x7e09baef ltl: 0x7e09baf2
      SEG LST:: flg: USED   lhd: 0x830a9760 ltl: 0x830a98a9
      SEG LST:: flg: USED   lhd: 0x7e09bbcf ltl: 0x7e09bbcc
      SEG LST:: flg: USED   lhd: 0x830a8f7d ltl: 0x830a8f7a
      SEG LST:: flg: USED   lhd: 0x7e09bd33 ltl: 0x7e09bd55
      SEG LST:: flg: USED   lhd: 0x7e09c2c9 ltl: 0x7e09c2e5
      SEG LST:: flg: USED   lhd: 0x830aa2a7 ltl: 0x830aa18c
      SEG LST:: flg: USED   lhd: 0x830a8ee3 ltl: 0x830a8e95
      SEG LST:: flg: USED   lhd: 0x830a976e ltl: 0x830a96d0
      SEG LST:: flg: USED   lhd: 0x830a9a5f ltl: 0x830a99a3
      SEG LST:: flg: USED   lhd: 0x7e09be79 ltl: 0x7e09be58
      SEG LST:: flg: USED   lhd: 0x830a95b9 ltl: 0x830a9534
      SEG LST:: flg: USED   lhd: 0x830a8c62 ltl: 0x830a8c5f
      SEG LST:: flg: USED   lhd: 0x830a9459 ltl: 0x830a94cc
      SEG LST:: flg: USED   lhd: 0x830a98b4 ltl: 0x830a98b1
      XCT LST:: flg: UNUSED lhd: 0x00000000 ltl: 0x00000000 xid: 0x0000.000.00000000
      XCT LST:: flg: UNUSED lhd: 0x00000000 ltl: 0x00000000 xid: 0x0000.000.00000000
    End dump data blocks tsn: 14 file#: 192 minblk 499209 maxblk 499209
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    user646745 wrote:
    I did a test about 90 concurrent sessions, each session inserted 100 rows into the following table with row length of 80K
    create table test_flist (a long raw) storage (freelists 59 FREELIST GROUPS 1);I saw lots of catch buffer chain and find the hot block is the segment header
    SQL> select status,count(*) from v$bh where file#=192 and block#=499209 group by status;
    cr           54307
    free           489
    xcur             1My question is: why oracle created so many cr blocks in memory? In memory, some guru said oracle only creates xcur for segment header(only current get for segment header, there will be no consistent get for segment header), but here I saw so many cr blocks.Some interesting reading related to your question:
    http://jonathanlewis.wordpress.com/2009/06/09/quiz-night/
    http://jonathanlewis.wordpress.com/2009/06/12/consistent-gets-2/
    The author of the above articles also wrote the book "Practical Oracle 8i", which I finally managed to read a couple months ago. That book very nicely explained why there may be multiple consistent read versions of a block in the buffer cache when multiple sessions attempt to read the data from the tables to which those blocks belong - the consistent read versions need to be rolled back to a specific SCN to provide the session with a view of the block which contains committed data and/or a view of the block as of a specific SCN if the session is querying the table while other sessions are altering the contents of the blocks.
    As an experiment, I set up a test case in Oracle 10.2.0.4 to see what happens when 10 sessions work with a table located in an ASSM auto tablespace. For the setup:
    CREATE TABLE T1 (C1 VARCHAR2(100));
    SELECT
      FILE_ID,
      BLOCK_ID,
      BLOCKS
    FROM
      DBA_EXTENTS
    WHERE
      OWNER=USER
      AND SEGMENT_NAME='T1';
       FILE_ID   BLOCK_ID     BLOCKS
             7    1288353          8
    ALTER SYSTEM FLUSH BUFFER_CACHE;In the above, there is a single extent in file 7 which starts at block 1288353 and continues for 7 more blocks.
    Next, a script is created on a Windows client (a Unix/Linux client will work also, just trying to simplify things) named C:\CR_TEST.sql:
    INSERT INTO
      T1
    VALUES
      (DBMS_RANDOM.STRING('A',15));
    SELECT
    FROM
      T1;
    EXEC DBMS_LOCK.SLEEP(180);
    SELECT
    FROM
      T1;
    EXEC DBMS_LOCK.SLEEP(240);
    COMMIT;
    EXEC DBMS_LOCK.SLEEP(45);
    SELECT
    FROM
      T1;From a Windows command prompt, the script is executed from 10 sessions using the following:
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sql
    START sqlplus MyUser/MyUserPassword@or10 @C:\CR_TEST.sqlIn another SQL*Plus session, once all 10 of the sessions have started waiting on the DBMS_LOCK call, the number of consistent read blocks belonging to the table T1 is checked (with an ASSM auto tablespace, the results may be different on each test run):
    SELECT
      COUNT(*) CNT
    FROM
      V$BH
    WHERE
      STATUS='cr'
      AND FILE#=7
      AND BLOCK#=1288355;
           CNT
             14
    SELECT
      FILE_ID,
      BLOCK_ID,
      BLOCKS
    FROM
      DBA_EXTENTS
    WHERE
      OWNER=USER
      AND SEGMENT_NAME='T1';
       FILE_ID   BLOCK_ID     BLOCKS
             7    1288353          8
             7    1288361          8
             7    1288369          8
             7    1288377          8
             7    1288385          8
             7    1288393          8
             7    1288401          8
             7    1288409          8
             7    1288417          8
             7    1288425          8
    SELECT
      COUNT(*) CNT
    FROM
      V$BH
    WHERE
      STATUS='cr'
      AND FILE#=7
      AND BLOCK#=1288361;
           CNT
             0
    SELECT
      BLOCK#,
      COUNT(*) CNT
    FROM
      V$BH
    WHERE
      STATUS='cr'
      AND FILE#=7
      AND BLOCK# BETWEEN 1288353 AND 1288425+7
    GROUP BY
      BLOCK#
    ORDER BY
      BLOCK#;
        BLOCK#        CNT
       1288355         14
       1288356          5
       1288362          5
       1288365          5
       1288367          5
       1288388          4
       1288389          5
       1288392          5
       1288394          5
       1288402          4
    (Waiting for the sessions to finish the first DBMS_LOCK.SLEEP call)
    SELECT
      BLOCK#,
      COUNT(*) CNT
    FROM
      V$BH
    WHERE
      STATUS='cr'
      AND FILE#=7
      AND BLOCK# BETWEEN 1288353 AND 1288425+7
    GROUP BY
      BLOCK#
    ORDER BY
      BLOCK#;
        BLOCK#        CNT
       1288355         14
       1288356          9
       1288362          5
       1288365          5
       1288367          4
       1288371          2
       1288388          4
       1288389          4
       1288392          4
       1288394          4
       1288402          4
    (Waiting for the sessions to finish the COMMIT and two the DBMS_LOCK.SLEEP calls)
    SELECT
      BLOCK#,
      COUNT(*) CNT
    FROM
      V$BH
    WHERE
      STATUS='cr'
      AND FILE#=7
      AND BLOCK# BETWEEN 1288353 AND 1288425+7
    GROUP BY
      BLOCK#
    ORDER BY
      BLOCK#;
        BLOCK#        CNT
       1288355         14
       1288356          4
       1288362          4
       1288365          4
       1288367          4
       1288371          2
       1288388          4
       1288389          4
       1288392          4
       1288394          4
       1288402          4
    SELECT
      BLOCK#,
      STATUS,
      COUNT(*) CNT
    FROM
      V$BH
    WHERE
      FILE#=7
      AND BLOCK# BETWEEN 1288353 AND 1288425+7
    GROUP BY
      BLOCK#,
      STATUS
    ORDER BY
      BLOCK#,
      STATUS;
        BLOCK# STATUS         CNT
       1288353 xcur             1
       1288354 free             1
       1288354 xcur             1
       1288355 cr              14
       1288355 xcur             1
       1288356 cr               4
       1288356 xcur             1
       1288357 xcur             1
       1288358 xcur             1
       1288359 xcur             1
       1288360 xcur             1
       1288361 xcur             1
       1288362 cr               4
       1288362 xcur             1
       1288363 xcur             1
       1288364 xcur             1
       1288365 cr               4
       1288365 xcur             1
       1288366 xcur             1
       1288367 cr               4
       1288367 xcur             1
       1288368 xcur             1
       1288369 xcur             1
       1288370 xcur             1
       1288371 cr               2
       1288371 xcur             1
       1288372 xcur             1
       1288373 xcur             1
       1288374 xcur             1
       1288375 xcur             1
       1288376 xcur             1
       1288385 xcur             1
       1288386 xcur             1
       1288387 xcur             1
       1288388 cr               4
       1288388 xcur             1
       1288389 cr               4
       1288389 xcur             1
       1288390 xcur             1
       1288391 xcur             1
       1288392 cr               4
       1288392 xcur             1
       1288393 xcur             1
       1288394 cr               4
       1288394 xcur             1
       1288395 xcur             1
       1288396 xcur             1
       1288397 xcur             1
       1288398 xcur             1
       1288399 xcur             1
       1288400 xcur             1
       1288401 xcur             1
       1288402 cr               4
       1288402 xcur             1
       1288403 xcur             1
       1288404 xcur             1
       1288405 xcur             1
       1288406 xcur             1
       1288407 xcur             1
       1288408 xcur             1
       1288417 xcur             1user646745, in reviewing the above, what do you think is happening? Why are the number of cr versions of the blocks changing after each call to DBMS_LOCK.SLEEP and COMMIT from the sessions?
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

Maybe you are looking for