Row Migration and Row Chaining(行遷移和行連結)
Row Migration and Row Chaining(行遷移和行連結)
Row Migration(行遷移)
當記錄被更新時,原資料塊無法容納新的資料時,新的更新資料將遷移到別的資料塊中,而原資料塊的記錄保留並指向被遷移的資料塊。
Row Chaining(行連結)
(1)當行記錄大於資料塊的大小時,一個資料塊將無法容納,這時候,將加入新的資料塊直到能容納全部資料,資料塊之間就有連結關係。
(2)當表的定義超過255個欄位時,將產生塊內部的連結。
v$sysstat and v$sesstat
The idea is to check the statistic that gives the number of fetches that read more than one row piece (including intra-block chained rows), namely, [table fetch continued row].
this statistic could also be compared with [table scan rows gotten] and [table fetch by rowid].
select avg_row_len from dba_tables
ANALYZE TABLE
select * from chained_rows;
Row Migration解決方法:
1. 防止產生Row Migration:
增大pctfree
2. 清除Row Migration:
ALTER TABLE MOVE
或
將行遷移的資料匯入臨時表,然後再匯入
Row Chaining解決方法:
1. 對於塊內部的連結,減少表的欄位,或將很少使用的欄位放到後面;
2. 對於塊外部的連結,重新設計表,或增大資料塊的塊大小(Block size 2K, 4K, 8K, 16K, 32K)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13605188/viewspace-620328/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【轉載】行遷移和行連結(row chaining or row migration)AI
- 行連結(Row chaining)和行遷移(Row Migration)的讀書筆記AI筆記
- Row Migration和row chainedAI
- 實驗:行遷移與分析語句 row migration and analyze statements
- 選出有行連線(row chain)或者是行遷移(row migeration)的表AI
- Oracle資料表預設值列新增與行遷移(Row Migration)Oracle
- 行遷移和行連結
- oracle實驗記錄 (ROW 壓縮,遷移,連結)Oracle
- 清除行遷移和行連結
- Row Chaining and MigratingAI
- 如何消除行連結和行遷移
- oracle效能診斷例項-row migration and row chainOracleAI
- 【效能優化】消除行遷移 table fetch continued row優化
- PCTFREE, PCTUSED, and Row Chaining(七)AI
- Row Chaining and Migrating(六)AI
- 關於行連結和行遷移和消除
- 模擬Oracle行遷移和行連結Oracle
- 行遷移和行連結的檢測
- 【效能最佳化】消除行遷移 table fetch continued row
- 排除表中的行連結和行遷移
- 行遷移_行連結的介紹
- pctused, pctfree, pctincrease , 行遷移 & 行連結
- 【效能優化】消除行連結和行遷移的思路和方法優化
- 【備份恢復】行遷移與行連結
- 【效能最佳化】消除行連結和行遷移的思路和方法
- 【概念】行連結和行遷移的概念、模擬及甄別
- 【轉】【效能最佳化】消除行連結和行遷移的思路和方法
- Oracle 行遷移 & 行連結的檢測與消除Oracle
- Oracle中行遷移和行連結的清除及檢測Oracle
- Oracle資料庫中資料行遷移與行連結Oracle資料庫
- 關於enq: TX - row lock contention行鎖的總結ENQ
- [20160726]行連結行遷移與ITL槽.txt
- 執行計劃中Row 數量為0
- [20160729]行連結行遷移與ITL槽4.txt
- [20160727]行連結行遷移與ITL槽2.txt
- [20160728]]行連結行遷移與ITL槽3.txt
- 行連結與行遷移, LOB欄位的儲存及效能影響
- 基於 Tile 連線 Row-Store 和 Column-Store