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

Thread: detecting chained rows without analyzing

  1. #1
    Join Date
    Nov 2001
    Location
    denver
    Posts
    11

    Question

    Is there a way/table to check for chained/migrated rows without running analyze? The database is in rule mode and generating statistics will bring the user application to its knees.
    I have heard the v$sysstat can be used but I am not sure.

  2. #2
    Join Date
    Feb 2001
    Posts
    389
    table fetch continued row , name in v$sysstat shall indicate if there are chained / migrated rows but shall
    not indicate which table.

    But if u run query/DML from ur session at sqlplus , u can fire this after running ur code.

    select STATISTIC#,value from v$mystat
    2 where STATISTIC#=158;

    STATISTIC# VALUE
    ---------- ----------
    158 0

    SQL>

    If this value is > 0 then u should have chained/migrated rows.

    Hope this helps.

  3. #3
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    If you use

    ANALYZE TABLE my_table LIST CHAINED ROWS;

    only chained rows will be listed, while no other statistics used by the optimizer will be gathered, so it will not impact your aplications.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  4. #4
    Join Date
    Jan 2001
    Posts
    3,134

    Lightbulb

    You may have to run the UTLCHAIN.SQL to create the CHAINED_ROWS table first. Just do a DESC on the chained_rows table, if it is not there then run the utlchain.sql.

    MH


  5. #5
    Join Date
    Feb 2000
    Posts
    175
    Hi,

    If the init parameter 'optimiser_mode' is set to rule (optimiser_mode=rule) in the init.ora file then the rule based optimiser will always be used wether there are stats on the tables or not.
    I would suggest setting this (if it's not already) to ensure your application uses the rule based optimiser.

    Cheers
    Moff.

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