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。{:6_267:} 谢谢分享 {:6_299:}{:6_290:}{:6_299:} {:6_282:} 为了学习,努力赚钱。
再辛苦也值得。努力,加油
{:6_267:} 顶!!!!!!!!!!!!!!!!!!!!!!!!! 感謝您熱心的教學! {:6_267:} {:6_299:} {:6_267:}{:6_267:}{:6_267:} 有道理 学学一下,加油 {:6_269:} {:6_264:}
页:
[1]
2