数据库索引结构与数据访问原理培训.pdfVIP

  • 0
  • 0
  • 约1.09万字
  • 约 12页
  • 2026-01-08 发布于北京
  • 举报

数据库索引结构与数据访问原理培训.pdf

Indexes

Indexstructure

Attheendofthisunityouwillbeabletodescribe:

Whatanindexis

HowanIndexisstructured

Howdataisaccessedusinganindex

R

◼Onceyouhavecompletedthisunit,youwillknow:

Whatanindexis

Howanindexisstructured

Howdataisaccessedusinganindex

HowtheOraclerule-basedoptimizerchoosesanindex

Tablestatistics

____

AUSP____1

R

◼Todeterminewhichaccessstrategyandindexesareused,acostbasedoptimizerusestheinformationfromthe:

Requesteddata

WHEREclause

Selectivityoftheindexedfields

◼Thedatabaseadministratormustensurethatthetablestatisticsfortheselectivitiesofindexedcolumnsandsizes

oftabandindexesareup-to-date.

◼Thedevelopermustdesignthequeriessothattheyaresupportedbytheexistingindexes.

Primaryindex

Secondaryindex

Uniquesecondaryindex

R

Tableblock

Root

blocks

Branch

blocks

Leaf

blocks

R

◼Anindexconsistsofoneormorefieldsofatable.

◼EveryrowinthetableisidentifiedbytheROWID,whichisalsothe

文档评论(0)

1亿VIP精品文档

相关文档