dbTalk Databases Forums  

Date / Time a table changed

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Date / Time a table changed in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Date / Time a table changed - 05-10-2008 , 09:00 AM






On May 9, 8:37*pm, "Ana C. Dent" <anaced... (AT) hotmail (DOT) com> wrote:
Quote:
alastair.coo... (AT) googlemail (DOT) com wrote in news:dfbfde07-fcb3-4250-bbe0-
cfe258a9a... (AT) m36g2000hse (DOT) googlegroups.com:

Hi.

We are connecting to an Oracle 9i Database, is it possible to query a
table to find out the last date / time a row was updated / inserted.

LOGMINER can provide the details.
Ana is correct in that LOGMINER can be used but in my opinion it is
impractical for routine use unless you have an idea of when to look
or you have the time to review potentially weeks of archived redo logs
in your attempt to find the data. But you might need to use Log Miner
if it is truely important to find this out on a one time basis but if
you have an application where all connections use one Oracle username
then the result is probably not going to help unless when the change
is made is all you need to know.

Another possibility when an undo tablespace is available and when the
change is very recent is you can use flashback query.

But if you need a permanent record or reliable means of checking when
a specific row was last updated then storing the data on the row is
the only truely effective method available potentially in conjuction
with a history (audit) table. With system level auditing the audit
data is likely to have to be purge at some point though this data
could be archived.

IMHO -- Mark D Powell --



Reply With Quote
  #12  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Date / Time a table changed - 05-10-2008 , 09:00 AM






On May 9, 8:37*pm, "Ana C. Dent" <anaced... (AT) hotmail (DOT) com> wrote:
Quote:
alastair.coo... (AT) googlemail (DOT) com wrote in news:dfbfde07-fcb3-4250-bbe0-
cfe258a9a... (AT) m36g2000hse (DOT) googlegroups.com:

Hi.

We are connecting to an Oracle 9i Database, is it possible to query a
table to find out the last date / time a row was updated / inserted.

LOGMINER can provide the details.
Ana is correct in that LOGMINER can be used but in my opinion it is
impractical for routine use unless you have an idea of when to look
or you have the time to review potentially weeks of archived redo logs
in your attempt to find the data. But you might need to use Log Miner
if it is truely important to find this out on a one time basis but if
you have an application where all connections use one Oracle username
then the result is probably not going to help unless when the change
is made is all you need to know.

Another possibility when an undo tablespace is available and when the
change is very recent is you can use flashback query.

But if you need a permanent record or reliable means of checking when
a specific row was last updated then storing the data on the row is
the only truely effective method available potentially in conjuction
with a history (audit) table. With system level auditing the audit
data is likely to have to be purge at some point though this data
could be archived.

IMHO -- Mark D Powell --



Reply With Quote
  #13  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Date / Time a table changed - 05-10-2008 , 09:00 AM



On May 9, 8:37*pm, "Ana C. Dent" <anaced... (AT) hotmail (DOT) com> wrote:
Quote:
alastair.coo... (AT) googlemail (DOT) com wrote in news:dfbfde07-fcb3-4250-bbe0-
cfe258a9a... (AT) m36g2000hse (DOT) googlegroups.com:

Hi.

We are connecting to an Oracle 9i Database, is it possible to query a
table to find out the last date / time a row was updated / inserted.

LOGMINER can provide the details.
Ana is correct in that LOGMINER can be used but in my opinion it is
impractical for routine use unless you have an idea of when to look
or you have the time to review potentially weeks of archived redo logs
in your attempt to find the data. But you might need to use Log Miner
if it is truely important to find this out on a one time basis but if
you have an application where all connections use one Oracle username
then the result is probably not going to help unless when the change
is made is all you need to know.

Another possibility when an undo tablespace is available and when the
change is very recent is you can use flashback query.

But if you need a permanent record or reliable means of checking when
a specific row was last updated then storing the data on the row is
the only truely effective method available potentially in conjuction
with a history (audit) table. With system level auditing the audit
data is likely to have to be purge at some point though this data
could be archived.

IMHO -- Mark D Powell --



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.