How to find if a table has row chaining?

Using ANALYZE TABLE owner.table_name COMPUTE STATISTICS one can find if the table has chained rows.


— analyze again
SQL> analyze table scott.chain_table COMPUTE STATISTICS;

Table analyzed.

— shows row chaining occurred when existing rows were updated and percent of rows
SQL> SELECT chain_cnt,
round(chain_cnt/num_rows*100,2) pct_chained
FROM user_tables
WHERE table_name = 'CHAINED_ROW';

———- ———– ———– ———- ———-
76824 58.61 16 10 40


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.