41. You have recently collected statistics on certain objects of a schema in your database. But you
observe suboptimal execution plans for the queries on these objects after two days of statistics collection.
The optimizer statistics retention period is set to its default value.
Which action would help to use the previous set of statistics on the objects?
A.Restore statistics from statistics history.
B.Reduce the optimizer statistics retention period by 2 days.
C.Set the OPTIMIZER_PENDING_STATISTICS parameter to TRUE.
D.Reduce the Automatic Workload Repository (AWR) retention period by 2 days.
Answer: ARESTORE_TABLE_STATS Procedure
This procedure restores statistics of a table as of a specified timestamp (as_of_timestamp). The procedure will restore statistics of associated indexes and columns as well. If the table statistics were locked at the specified timestamp the procedure will lock the statistics. The procedure will not restore user defined statistics.
恢复过期的数据库统计信息

本文介绍了一种解决数据库查询计划次优的方法,即通过从统计历史中恢复先前的统计信息来改善查询性能。文章详细解释了如何使用DBMS_STATS.RESTORE_TABLE_STATS过程来实现这一目标。
1万+

被折叠的 条评论
为什么被折叠?



