OCP-043 monitor index use

56. You have many users complaining about slow inserts into a large table. While investigating the reason,
you find that the number of indexes on the table is high. You want to find out which indexes are not being
used.
Which method would you follow to achieve this?
A.enable index monitoring and query the DBA_OBJECTS view
B.enable index monitoring and query the DBA_INDEXES view
C.enable index monitoring and query the V$OBJECT_USAGE view
D.enable index monitoring and view the DBA_INDEXTYPE_COMMENTS view
Answer: C


MONITORING USAGE | NOMONITORING USAGE

Use this clause to determine whether Oracle Database should monitor index use.

  • Specify MONITORING USAGE to begin monitoring the index. Oracle Database first clears existing information on index use, and then monitors the index for use until a subsequent ALTER INDEX ... NOMONITORING USAGE statement is executed.

  • To terminate monitoring of the index, specify NOMONITORING USAGE.


To see whether the index has been used since this ALTER INDEX ... NOMONITORING USAGE statement was issued, query the USED column of the V$OBJECT_USAGEdynamic performance view.


V$OBJECT_USAGE

You can use this view to monitor index usage. The view displays statistics about index usage gathered from the database. All indexes that have been used at least once can be monitored and displayed in this view.

ColumnDatatypeDescription
INDEX_NAMEVARCHAR2(30)Index name in sys.obj$.name
TABLE_NAMEVARCHAR2(30)Table name in sys.obj$.name
MONITORINGVARCHAR2(3)YESNO
USEDVARCHAR2(3)YESNO
START_MONITORINGVARCHAR2(19)Start monitoring time in sys.object_stats.start_monitoring
END_MONITORINGVARCHAR2(19)End monitoring time in sys.object_stats.end_monitoring


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值