a亚洲精品_精品国产91乱码一区二区三区_亚洲精品在线免费观看视频_欧美日韩亚洲国产综合_久久久久久久久久久成人_在线区

首頁 > 數據庫 > Oracle > 正文

Oracle中檢查是否需要重構索引的sql

2024-08-29 13:56:59
字體:
來源:轉載
供稿:網友

復制代碼 代碼如下:


SELECT
height, /*Height of the B-Tree*/
blocks, /* Blocks in the index segment */
name, /*index name */
lf_rows, /* number of leaf rows in the index */
lf_blks, /* number of leaf blocks in the index */
del_lf_rows, /* number of deleted leaf rows in the index */
rows_per_key /* average number of rows per distinct key */
blk_gets_per_access /* consistent mode block reads (gets) */
FROM INDEX_STATS
WHERE;


復制代碼 代碼如下:


ANALYZE index INDEX_NAME VALIDATE STRUCTURE



HEIGHT:
This column refers to the height of the B-tree index, and it's usually at the 1, 2, or 3 level.
If large inserts push the index height beyond a level of 4, it's time to rebuild, which flattens the B-tree.

DEL_LF_ROWS:
This is the number of leaf nodes deleted due to the deletion of rows.
Oracle doesn't rebuild indexes automatically and, consequently, too many deleted leaf rows can lead to an unbalanced B-tree.

BLK_GETS_PER_ACCESS:
You can look at the BLK_GETS_PER_ACCESS column to see how much logical I/O it takes to retrieve data from the index. If this row shows a double-digit number, you should probably start rebuilding the index.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 日韩av高清在线观看 | 一级欧美 | 亚洲激情在线播放 | 一级性大片 | 91成人在线免费视频 | 成人a视频在线观看 | 国产一区二区av | 国产精品中文字幕在线播放 | 久久久国产视频 | av一区二区在线播放 | 国产婷婷综合 | baoyu133. con永久免费视频 | 欧美一级网 | 日本欧美三级 | 欧美黄a | 久久精品99国产精品日本 | 亚洲精选国产 | 欧美成人精品一区二区 | 久在线视频 | 黄色在线观看网站 | 亚洲综合色自拍一区 | 超碰五月| 亚洲毛片在线观看 | 国产精品久久久久久久一区探花 | 精品国产一区二区三区性色av | 中文天堂av | h黄动漫日本www免费视频网站 | 免费看毛片网 | 欧美激情一区二区三区 | 国产九九九| 国产精品视频一区二区三区四区五区 | 草樱av| 91欧美激情一区二区三区成人 | 午夜黄色av| 天天操天天干天天干 | 中文无码日韩欧 | 久久国产99 | 欧美干b | 国产精品一区久久久久 | 四色成人av永久网址 | 97伦理网 |