ITeye博客

user_tab_modifications

edwards0307 · 2011-11-15 10:40 · oracle · 数据库 · Markdown

USER_TAB_MODIFICATIONS describes modifications to all tables owned by the current user that have been modified since the last time statistics were gathered on the tables

1.SQL> select * from user_tab_modifications;

no rows selected

2.SQL> insert into t values(1);

3.commit;

4.SQL> select * from user_tab_modifications;

no rows selected

why? because you need to wait for a moment,or you have'd executed the procedure dbms_stats.flush_database_monitoring_info().

5.exec dbms_stats.flush_database_monitoring_info()

6.

SQL> select * from user_tab_modifications;

you will get the expected result.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。