Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Whitepapers on Triggers

RE: Whitepapers on Triggers

From: Thomas Day <tday6_at_csc.com>
Date: Wed, 13 Nov 2002 10:09:29 -0800
Message-ID: <F001.00502607.20021113100929@fatcity.com>

We have "journal" tables that mimic every table in our database. Every Insert, Update or Delete (we allow user deletes) gets the row written to the journal table along with a timestamp and the Oracle userid. Now we have to tie one Oracle userid to one and only one user.

                                                                                                                   
                    "Lisa R.                                                                                       
                    Clary" <lisa         To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>       
                    @cog.ufl.edu>        cc:                                                                       
                    Sent by: root        Subject:     RE: Whitepapers on Triggers                                  
                                                                                                                   
                                                                                                                   
                    11/13/2002                                                                                     
                    12:15 PM                                                                                       
                    Please                                                                                         
                    respond to                                                                                     
                    ORACLE-L                                                                                       
                                                                                                                   
                                                                                                                   




Since we are in the medical records business, we too have the same guideline. What we do, is create an exact table replica (we call it an archive table and it does not have constraints) to which before every insert
and update on the primary table, sends the row data to the archive table. It
stores the modifier and sysdate as well, so we have a complete history of revision. We don't allow deletes through users, only through dbas so that we
can audit removals. Doing it this way eliminates that possibility of the fudge-factor on revisions/deletions. And when you are audited---it is a wonderful thing!

lc

-----Original Message-----
Sent: Wednesday, November 13, 2002 11:49 AM To: Multiple recipients of list ORACLE-L

This is for FDA regulation compliance. The audit records need to show every change made to the source table in order of change.
WHile audit the table will show who changed the record, it won't show what was changed.

Steve

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Steven Haas
  INET: steven.haas_at_snet.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Lisa R. Clary
  INET: lisa_at_cog.ufl.edu

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Thomas Day
  INET: tday6_at_csc.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Wed Nov 13 2002 - 12:09:29 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US