Sure. Create a journal table whose structure is the same as the table
of interest, with the addition of "user", "timestamp", and whatever
else you're interested in tracking. In your "before delete" trigger,
just write the about-to-be-deleted row to the journal table, with the
additional columns populated appropriately.
Paul Baumgartel
- "Browett, Darren" <dbrowett_at_city.coquitlam.bc.ca> wrote:
> We need to be able to track what records have been deleted from a
> table.
>
> Our current thinking is
> 1. A "before delete" trigger, that stores a unique ID of the all the
> data in
> the table.
> 2. A "after delete" trigger, which gets the records left in the
> table.
> 3. Subtract the two lists to find the records that have been deleted.
>
> This appears to be cumbersome, is there anyway to do this with one
> trigger ?
>
> Thanks
>
> Darren
>
>
>
> ----------------------------------------------
> Darren Browett P.Eng This message
> was transmitted
> Data Administrator using 100%
> recycled electrons
> Information and Communication Technology
> City of Coquitlam
> P:(604)927 - 3614
> E:dbrowett_at_city.coquitlam.bc.ca
>
> -----------------------------------------------
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Browett, Darren
> INET: dbrowett_at_city.coquitlam.bc.ca
>
> 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: ListGuru_at_fatcity.com (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).
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Paul Baumgartel
INET: treegarden_at_yahoo.com
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: ListGuru_at_fatcity.com (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).
Received on Mon Mar 18 2002 - 16:59:11 CST