RE: Keeping deleted records

  • From: "Bobak, Mark" <Mark.Bobak@xxxxxxxxxxxxxxx>
  • To: <wbfergus@xxxxxxxxx>, "oracle-l" <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 9 Aug 2007 13:36:14 -0400

Hi Bill,

 

Have you considered Oracle's Workspace Manager?  I've never used it, but
I did see a presentation on it, and it sounds like it may do what you
want.

 

http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96628/long_int.
htm#1656

 

-Mark

 

--
Mark J. Bobak
Senior Database Administrator, System & Product Technologies
ProQuest
789 E. Eisenhower, Parkway, P.O. Box 1346
Ann Arbor MI 48106-1346
+1.734.997.4059  or +1.800.521.0600 x 4059
mark.bobak@xxxxxxxxxxxxxxx <mailto:mark.bobak@xxxxxxxxxxxxxxx> 
www.proquest.com <http://www.proquest.com> 
www.csa.com <http://www.csa.com> 

ProQuest...Start here. 

 

From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Bill Ferguson
Sent: Thursday, August 09, 2007 12:31 PM
To: oracle-l
Subject: Keeping deleted records

 

Hi all,

 

My management wants to keep a copy of all deleted records for historical
purposes, in case somebody decides at a later point that the deletion
was a mistake. This happens about once a year for probably a dozen or so
records. 

 

The data structure is about 35 tables consisting of one master table
with children attached to it. Only two of the child tables have their
own children. This primarily a scientific record type database, of known
worldwide mineral deposits, so the volume of transactions is fairly low,
compared to what most of you are used to dealing with. I might have a
couple hundred transactions per day on a busy day. 

 

I'm kind of torn between two approaches. The first approach is to
basically create a duplicate schema that contains blank table
structures, and as records are deleted, move them over to the "deletes"
schema and then delete them from production. This will entail of bunch
of redesign though on all of the triggers and others constraints in the
new schema. 

 

The second approach would be to have the "deletes" schema be a copy of
everything currently in the production schema, and then as new records
are added, add them to the "deletes" schema, and if they're deleted,
then I don't have to do anything. This approach though would entail the
reworki9ng of all of the existing triggers in the production schema. 

 

Either way, management hasn't said what kind of tracking (if any) that
they want for updates. It seems that they'd probably want that as well,
so if a production record was updated, the new version of the record
would be copied over to the "deletes" schema. 


Anybody else ever run across this kind of requirement before and have
any ideas or suggestions on the best/easiest way to handle it?

 

RMAN backups would really be a pain, as the deletes could have occured
at any time and over a huge period of time as well.

 

Thanks.
-- 
-- Bill Ferguson 

Other related posts: