Okay, can you add a trigger?
At a prior job, management wanted us not only to track last update/insert
but WHAT was done.
so I created a second table, duplicate of the first with addition fields of
"trans_date","user" and "action"
then I added a trigger (insert/update/delete) on the original table.
if the action was an insert, I inserted a row into the second table,
trans_date=sysdate, user=user and action=I
if a delete, I inserted a row into the second table, trans_date=sysdate,
user=user and action=D
if an update, I inserted two roww into the second table, the first had the
original row, trans_date=sysdate, user=user and action=O (old values)
the second had the new row, trans_date=sysdate, user=user and action=N(new
values)
the secondary table could be archived/purged as necessary
>From: Andrey Bronfin <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: A "modification time" question
>Date: Thu, 16 Aug 2001 03:15:49 -0800
>
>Dear gurus !
>Is there a way to know the time of insert/update for each row in a table ?
>Or , which rows in a table were inserted/updated since a certain time.
>( Sort of find ... -mtime ... for UNIX files) .
>I CAN NOT modify the structure of the table , i.e. i CAN NOT add a
>timestamp or other column , just need to deal with what is present.
>Thanks a lot for your help !!!
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Andrey Bronfin
> INET: [EMAIL PROTECTED]
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Rachel Carmichael
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).