|
这个问题自己找到答案了,
From Ask Tom:
clobs and blobs will never be reported as chained rows UNLESS
o they are created with enable storage in row
o they are less then 4,000 bytes
o the sum of the other pieces of the row + its length exceeds the block size
因此如果要根本上避免chained rows产生,考虑把所有clob字段都单独存放(disable storage in row),
需要注意的是,这样对于性能来说不一定更好,对于大部分大字段实际存放长度不超过4000字节的case来说,enable storage 可能更好(比如我的例子),
结论,实际当中还是根据性能需要来确定使用disable 还是enable,如果确实导致很明显的性能问题的话,需要作相应的调整,不必只关注chained rows有多少。
手工移动表来消除chained rows的话,使用下面的方法即可,
1. alter table line move ;
2. select 'alter index '|| index_name || ' rebuild ;' from user_indexes where table_name = 'LINE' ;
3. alter index ... rebuild ; |
|