Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Re: Date / Time...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 16535 of 17248
Post > Topic >>

Re: Date / Time a table was updated

by "fitzjarrell@[EMAIL PROTECTED] " <oratune@[EMAIL PROTECTED] > May 9, 2008 at 07:18 AM

On May 9, 8:48=A0am, alastair.coo...@[EMAIL PROTECTED]
 wrote:
> 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

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
 




 2 Posts in Topic:
Date / Time a table was updated
alastair.coombs@[EMAIL PR  2008-05-09 06:48:48 
Re: Date / Time a table was updated
"fitzjarrell@[EMAIL   2008-05-09 07:18:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 1:20:58 CDT 2008.