Which two statements are true about a bitmapindex? (Choose two.) A) It isrecommended for the columns that have unique values. B) It canbe converted to a B-tree index by using the ALTER INDEX command. C) It hasa bitmap segment for each distinct value in the key column, containing a stringof bits in which each bit represents the presence or absence of a key columnvalue. D) Updatingthe key column locks the whole bitmap segment that contains the bit for the keyvalue to be updated.
Answer: C,D 位图索引以位值标示索引行数据,它主要用于DSS(Decision Support System)系统中执行数据的统计、数据汇总等操作。位图索引建立在重复值很多、不同值相对固定的列上,Oracle会基于每个不同的键值建立一个位图,因此节省空间,显著降低IO,但对于DML操作,会有很高的锁代价,因为它会将全部相同的键值都锁上。
|