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

Home -> Community -> Usenet -> c.d.o.misc -> Re: automated history with Oracle?

Re: automated history with Oracle?

From: Brian Peasland <oracle_dba_at_nospam.peasland.net>
Date: Sat, 6 May 2006 15:08:11 GMT
Message-ID: <IyunDz.KxE@igsrsparc2.er.usgs.gov>


Danny Gerst wrote:
> Hi!
>
> Thx for your answers.
>
> Well, I work with 10g and there will be at most one transaction every
> minute. I need the historyfunvtion one a regular bases nearly one or twice a
> month. Their want to get an overview over all changes that had be done on a
> table and an overview of all old records. So the new one will be in the
> regular database, while the history should show all the old records.
> It like saving the current record in a separate table and than apply the
> changes.
>
> First I have to check the two last suggestion from Brian. But I am open for
> every another possibility to make that happen.
>
>
> Greetings,
>
> Danny
>
>

Since you are using 10g, another option is to leverage something called a Flashback Versions Query.

http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_flashback.htm#sthref1477

This will give you all of the changes made to a table between two SCN's or timestamps. This can be used with Flashback Transaction Query to Undo a change if necessary. This relies on your UNDO tablespace, so you'll need to query the records before your UNDO_RETENTION starts expiring the information.

HTH,
Brian

-- 
===================================================================

Brian Peasland
oracle_dba_at_nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Received on Sat May 06 2006 - 10:08:11 CDT

Original text of this message

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