OCP-1Z0-052-V8.02-3题

3. While observing the index statistics, you find that an index is highly fragmented, thereby resulting in

poor database performance. Which option would you use to reduce fragmentation without affecting the

users who are currently using the index?

A.Validate the index structure using the ANALYZE...INDEX command.

B.Rebuild the index using the ALTER INDEX..REBUILD ONLINE command.

C.Change the block space utilization parameters using the ALTER INDEX command.

D.Deallocate the unused space in the index using the ALTER INDEX..DEALLOCATE UNUSED command.

Answer: B
答案解析:
通过重建不可用索引来重算指针,可使不可用索引变为有效。重建不可用索引会在新位置重新创建索引,然后会删除不可用索引。如使用一下语句来重建索引
ALTER INDEX HR.emp_empid_pk REBUILD ONLINE;
使用REBUILD ONLINE子句,用户可以在重建时继续更新索引表。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值