Professional Documents
Culture Documents
Table Last Modified in Oracle
Table Last Modified in Oracle
in oracle
29242 views Less than a minute 4
If you want to find, when a table was last modified like insert,update ,delete, then use the
dictionary table dba_tab_modifications.
SCENARIO:
1 row created.
SQL[SCOTT@TDB01]SQL>>]commit;
Commit complete.
2. Check dba_tab_modification:
SQL[SYS@TCRMDB01]SQL>>]select INSERTS,UPDATES,DELETES,TRUNCATED,TIMESTAMP
from dba_tab_modifications where TABLE_NAME='TEST' and TABLE_OWNER='SCOTT';
no rows selected
As you can see, the dba_tab_modification is not showing any rows. Now you need to flush
the info , to update the dba_tab_modification table.
SQL[SYS@TCB01]SQL>>]exec DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO;
DBA_REGISTRY_HISTORY vs DBA_REGISTRY_SQLPATCH.