国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數(shù)據(jù)庫技術|

服務器之家 - 數(shù)據(jù)庫 - Oracle - Oracle中檢查是否需要重構索引的sql

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

2019-11-29 17:43Oracle教程網(wǎng) Oracle

經(jīng)常需要在Oracle中檢查是否需要重構索引,在此寫了個示例語句,有此需求的朋友可以參考下,希望對大家有所幫助

代碼如下:


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 NAME='INDEX_NAME'; 

 

復制代碼代碼如下:


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 | 国产最好的精华液网站 | 国产一区二区免费 | 伊人久久综合精品一区二区三区 | 国产在线视频一区 | 亚洲综合色网 | 中文字幕亚洲综合久久久软件 | 亚洲精品国产a久久久久久 中文字幕在线第一页 | 精品香蕉一区二区三区 | 国产一区网站 | 在线精品一区 | 欧美一区二区三 | 日韩高清在线一区 | 国产一区二区三区免费播放 | 在线观看亚洲 | 日韩中文字幕视频在线 | www.av在线播放 | 精品视频久久久 | 国产欧美精品一区二区三区四区 | 欧美成人久久久免费播放 | 来个毛片 | 羞羞视频免费观看网站 | 国产精品99久久久久久动医院 | 久久久亚洲精品一区二区三区 | 狠狠操狠狠干 | 可以免费看黄的网站 | 91精品国产综合久久久久久 | 欧美在线网站 | 自拍亚洲 | 午夜精品影院 | 亚洲一区视频 | 久久精品黄色 | 性做久久久| 在线午夜 | 亚洲欧美国产精品专区久久 | 国产精品一区二区不卡 | 日韩三级观看 | 午夜成人免费视频 |