1.使用系统管理员用户刷新统计
exec DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO;
2.在owner用户下查询已经存在记录,执行这些记录并清空
select 'exec dbms_stats.gather_table_stats(ownname => '||''''||''''||',tabname => '||''''||TABLE_NAME||''''||' ,cascade=>true,estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=> '||''''|| 'for all columns size 1' ||''''||' );' from user_tab_modifications t where t.table_name not like '%MLOG$_%'
3.手动在页面上执行操作
4.使用系统管理员用户刷新统计
exec DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO;
5.查询更新了哪些操作
select TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP from user_tab_modifications t where t.table_name not like '%MLOG$_%'
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21605631/viewspace-2129094/
,如需转载,请注明出处,否则将追究法律责任。