Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Date / Time a table was updated

2 views
Skip to first unread message

alastai...@googlemail.com

unread,
May 9, 2008, 9:48:48 AM5/9/08
to
Hi

We are running Oracle 9i on unix, is it possible to query the database
to find out the last date and time a named table has some data
updated / inserted

Thanks

Alastair

ora...@msn.com

unread,
May 9, 2008, 10:18:47 AM5/9/08
to

Certainly there is, although if you've not set table monitoring on you
won't find anything. The view in question is DBA_TAB_MODIFICATIONS,
and it's used, in one aspect, by Oracle to determine if statistics on
a given table are STALE or not. You would probably want the following
information:

set linesize 132

select table_owner, table_name, to_char(timestamp, 'DD-MON-YYYY
HH24:MI:SS') chg_time
from dba_tab_modifications;

Again, if your tables aren't altered for monitoring you'll get
absolutely nothing from this view.


David Fitzjarrell

0 new messages