ITAA-OCM 发表于 2012-2-3 14:49:27

Oracle OCP试题解析(28)

As a result of performance analysis, you created an index on the prod_name column of the prod_det table, which contains about ten thousand rows. Later, you updated a product name in the table. How does this change affect the index?A) A leaf will be marked as invalid.B) An update in a leaf row takes place.C) The index will be updated automatically at commit.D) A leaf row in the index will be deleted and inserted.E) The index becomes invalid when you make any updates. Answer: D常用的传统索引称为B*索引,其构造类似与二叉树,但“B”不代表二叉(binary),而代表平衡(balanced)。B*索引并不是一棵二叉树。这个树最底层的块称为叶子节点(leaf node)或叶子块(leaf block),其中分别包含各个索引键以及一个rowid(指向所索引的行)。叶子节点之上的内部块称为分支块(branch block)。这些节点在结构中实现导航。树的顶端称为根块。所有叶子块都应该在树的同一层上。这一层也称为索引的高度(height),这说明所有从索引的根块到叶子块的遍历都会访问同样数目的块。换句话说,索引是高度平衡的,大多数B*树索引的高度都是2或者3,即使索引中有数百万条记录也是如此。对于UPDATE操作,索引先将叶子节点的数据进行删除操作标记,然后增加一条新的记录。所以选D。

rangeover 发表于 2012-2-11 11:42:30

{:6_267:}

865826021 发表于 2012-5-14 21:59:59

谢谢分享

huangtidi 发表于 2012-5-24 11:08:58

{:6_299:}{:6_290:}{:6_299:}

jiazl88 发表于 2012-7-17 16:38:39

{:6_282:}

冰蓝静轩 发表于 2012-8-10 14:00:00

为了学习,努力赚钱。

再辛苦也值得。努力,加油

{:6_267:}

caidaoyiba 发表于 2012-9-20 15:26:16

顶!!!!!!!!!!!!!!!!!!!!!!!!!

ouyangcp 发表于 2012-10-4 12:17:40

感謝您熱心的教學!

523594379 发表于 2013-1-22 17:43:26

{:6_267:}

mahb221 发表于 2013-10-16 16:24:48

{:6_299:}

amazing122 发表于 2013-11-14 09:51:55

{:6_267:}{:6_267:}{:6_267:}

wish_start 发表于 2014-1-20 12:49:56

有道理

﹎注销ㄨ恛憶 发表于 2014-10-21 12:50:44

学学一下,加油

heteam 发表于 2015-6-26 12:39:17

{:6_269:}

xcm000 发表于 2015-7-24 14:46:42

{:6_264:}
页: [1] 2
查看完整版本: Oracle OCP试题解析(28)