Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g2L52cu24417
 for <oracle-l@naude.co.za>; Thu, 21 Mar 2002 00:02:39 -0500
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id VAA98406;
 Wed, 20 Mar 2002 21:05:44 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b70/bab) via UUCP id 0042F546; Wed, 20 Mar 2002 20:43:35 -0800
Message-ID: <F001.0042F546.20020320204335@fatcity.com>
Date: Wed, 20 Mar 2002 20:43:35 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Mohammed Shakir <mshakir08816@yahoo.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Mohammed Shakir <mshakir08816@yahoo.com>
Subject: RE: Need a delete trigger that tracks deletes.
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 70; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-MIME-Autoconverted: from 8bit to quoted-printable by newsfeed.cts.com id VAA98406
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by naude.co.za id g2L52cu24417

copy the data to another audit table with the id of the user who
deleted it with a timestamp when it was deleted.

The data in this table can be deleted once a week or a month as you
would like it.

--- "Khedr, Waleed" <Waleed.Khedr@FMR.COM> wrote:
> Another idea is to mark the record deleted instead of physically
> deleting
> it.
> 
> Regards,
> 
> Waleed
> 
> -----Original Message-----
> Sent: Monday, March 18, 2002 5:18 PM
> To: Multiple recipients of list ORACLE-L
> 
> 
> 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@city.coquitlam.bc.ca 
>
----------------------------------------------------------------------------
> ----------------------------------------------- 
> 
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Browett, Darren
>   INET: dbrowett@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@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).
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Khedr, Waleed
>   INET: Waleed.Khedr@FMR.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@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).


=====
Mohammed Shakir
CompuSoft, Inc.
11 Heather Way
East Brunswick, NJ 08816-2825
(732) 672-0464 (Cell)
(732) 257-6001 (Home)

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mohammed Shakir
  INET: mshakir08816@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@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).

