Home > Archive > Other Oracle database topics > July 2005 > last modification on row









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author last modification on row
Ike

2005-07-15, 11:23 am

Is there a way to discern when the last modification (update or insert) has
been performed on a row in a table? I have to work with a pre-existing table
structure, and cannot alter it. Thanks, Ike


Dave

2005-07-15, 1:23 pm


"Ike" <rxv@hotmail.com> wrote in message
news:3wRBe.5403$BK1.3879@newsread3.news.pas.earthlink.net...
> Is there a way to discern when the last modification (update or insert)
> has
> been performed on a row in a table? I have to work with a pre-existing
> table
> structure, and cannot alter it. Thanks, Ike
>
>


log miner


DA Morgan

2005-07-16, 3:23 am

Dave wrote:
> "Ike" <rxv@hotmail.com> wrote in message
> news:3wRBe.5403$BK1.3879@newsread3.news.pas.earthlink.net...
>
>
>
> log miner


Or with 10g with an active Flashback area ... a flashback query.
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)
Mark D Powell

2005-07-18, 9:23 am

There is also a function ora_rowscn that can be used to approximate the
scn for a row. Once you have an scn that can be converted to a time
within 3 seconds using SCN_TO_TIMESTAMP.

You also have the option at table creation time to time to append an
scn to every row. This is called row level dependency and is intented
for use with replication but if you take action to save off the scn to
time data you could then use the saved data to perform scn to time
translaction.

If you really want the date/time the last change was made you should
probably either use the builtin audit feature or a DML trigger and a
history/audit table to capture this fact.

HTH -- Mark D Powell --

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com