Advertisement

07.12.2007 at 03:53PM PDT, ID: 22693320
[x]
Attachment Details

Oracle History Transactions including Related Tables

Asked by ChiBella in Oracle 9.x, PL / SQL

Tags: history, oracle, table

I have two tables, parent/child (1-m). I need to track all changes made to either table and maintain the relationships at the same time so I can capture an audit trail and also a snapshot at any given time a change occurred...basically to replicate what the database looked like prior to any changes made to either parent or child tables.

What would be the best way to do this? I was going to place an insert/update/delete trigger on both tables and store the old values to the history transaction tables for each table independently...but because the two tables are related, how can I recreate the snapshot which would include both tables for any given transaction change? Start Free Trial
 
 
Loading Advertisement...
 
[+][-]07.12.2007 at 10:39PM PDT, ID: 19478448

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.12.2007 at 11:58PM PDT, ID: 19478673

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.13.2007 at 06:31AM PDT, ID: 19480641

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 9.x, PL / SQL
Tags: history, oracle, table
Sign Up Now!
Solution Provided By: markgeer
Participating Experts: 2
Solution Grade: B
 
 
[+][-]07.13.2007 at 08:28AM PDT, ID: 19481766

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32