데이터 베이스 MySQL 튜토리얼 Oracle中检查是否需要重构索引

Oracle中检查是否需要重构索引

Jun 07, 2016 pm 05:31 PM
오라클 인덱스 데이터 베이스

Oracle中检查是否需要重构索引 SELECT height, /*Height of the B-Tree*/ blocks, /* Blocks in the index segment */ na

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; 

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;[sql] view plaincopyprint?
ANALYZE index INDEX_NAME VALIDATE STRUCTURE 

ANALYZE index INDEX_NAME VALIDATE STRUCTUREHEIGHT:
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.

linux

본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

뜨거운 기사 태그

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

Go 언어는 데이터베이스의 추가, 삭제, 수정 및 쿼리 작업을 어떻게 구현합니까? Go 언어는 데이터베이스의 추가, 삭제, 수정 및 쿼리 작업을 어떻게 구현합니까? Mar 27, 2024 pm 09:39 PM

Go 언어는 데이터베이스의 추가, 삭제, 수정 및 쿼리 작업을 어떻게 구현합니까?

PHP에서 MySQLi를 사용하여 데이터베이스 연결을 설정하는 방법에 대한 자세한 튜토리얼 PHP에서 MySQLi를 사용하여 데이터베이스 연결을 설정하는 방법에 대한 자세한 튜토리얼 Jun 04, 2024 pm 01:42 PM

PHP에서 MySQLi를 사용하여 데이터베이스 연결을 설정하는 방법에 대한 자세한 튜토리얼

MySQL과 PL/SQL의 유사점과 차이점 비교 MySQL과 PL/SQL의 유사점과 차이점 비교 Mar 16, 2024 am 11:15 AM

MySQL과 PL/SQL의 유사점과 차이점 비교

Hibernate는 어떻게 다형성 매핑을 구현합니까? Hibernate는 어떻게 다형성 매핑을 구현합니까? Apr 17, 2024 pm 12:09 PM

Hibernate는 어떻게 다형성 매핑을 구현합니까?

iOS 18에는 손실되거나 손상된 사진을 검색할 수 있는 새로운 '복구된' 앨범 기능이 추가되었습니다. iOS 18에는 손실되거나 손상된 사진을 검색할 수 있는 새로운 '복구된' 앨범 기능이 추가되었습니다. Jul 18, 2024 am 05:48 AM

iOS 18에는 손실되거나 손상된 사진을 검색할 수 있는 새로운 '복구된' 앨범 기능이 추가되었습니다.

HTML이 데이터베이스를 읽는 방법에 대한 심층 분석 HTML이 데이터베이스를 읽는 방법에 대한 심층 분석 Apr 09, 2024 pm 12:36 PM

HTML이 데이터베이스를 읽는 방법에 대한 심층 분석

MySQL 데이터베이스 관리 시스템의 기본 원리 분석 MySQL 데이터베이스 관리 시스템의 기본 원리 분석 Mar 25, 2024 pm 12:42 PM

MySQL 데이터베이스 관리 시스템의 기본 원리 분석

PHP를 사용하여 데이터베이스에서 중국어 왜곡 문자를 처리하기 위한 팁과 사례 PHP를 사용하여 데이터베이스에서 중국어 왜곡 문자를 처리하기 위한 팁과 사례 Mar 27, 2024 pm 05:21 PM

PHP를 사용하여 데이터베이스에서 중국어 왜곡 문자를 처리하기 위한 팁과 사례

See all articles