--
gather table stats
exec dbms_stats.
gather_table_stats(ownname =>'your schema name',
tabname =>'your table name',
estimate_percent=>100,
method_opt =>'FOR TABLE',
cascade =>TRUE);
--gather index stats
exec dbms_stats.gather_index_stats(ownname =>'
your schema name

本文探讨如何使用DBMS_STATS包来有效地收集索引和模式统计信息,以提升数据库查询性能。
最低0.47元/天 解锁文章
2197

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



