在生产库上执行取消直方图的命令:
exec dbms_stats.gather_table_stats('用户', '表',cascade=>false, statname=>'savestats',method_opt=>'for columns 列 size 1'); 然后这个savestats应该存了取消直方图的统计信息吧? 我把savestats中的内容导入到开发库中的相应表,这些表还是有直方图的内容。想问问,如何实现取消直方图。
exec dbms_stats.gather_table_stats('用户', '表',cascade=>false, statname=>'savestats',method_opt=>'for columns 列 size 1'); 然后这个savestats应该存了取消直方图的统计信息吧? 我把savestats中的内容导入到开发库中的相应表,这些表还是有直方图的内容。想问问,如何实现取消直方图。
11g DBMS_STATS.delete_column_stats