Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: last time a table was modified

Re: last time a table was modified

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 04 Aug 2006 11:51:17 -0700
Message-ID: <1154717478.214341@bubbleator.drizzle.com>


mike7411_at_gmail.com wrote:
> Is there a way to check the last time a table was modified?
>
> Is this a built-in Oracle field for all tables?
>
> Thanks.

The table or the data within the table? There is a difference.

SELECT object_name, last_ddl_time
FROM all_objects;

Will get you one of them. The other requires either adding a column as Sybrand states or, if you are in 10g, building the table with ROWDEPENDENCIES which will add 6 bytes to each row but store the row's SCN in the block. You can then use SCN_TO_TIMESTAMP to identify when a record was last altered.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Aug 04 2006 - 13:51:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US