analyze 后CBO 模式下选技的行数据比例过大(10%)优化器采取全表扫描
analyze table tab_name compute statistics for table for all indexed columns for all indexes
alter sesion set optimizer_mode=choose
alter session set create_stored_outlines=demo
alter session set use_stored_outlines=demo
analyze table tab_name for delete statistics
analyze table tab_name compute statistics
create or replace outline oul for categoly demo on select * from table_name
注:函数索引必须使用基于成本优化器,而基于规则的优化器将被忽略
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10687260/viewspace-588653/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10687260/viewspace-588653/
1276

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



