简体   繁体   English

Oracle 跟踪数据库变化

[英]Oracle track changes in database

Good morning,早上好,

  • We have an application which used to create daily reports.我们有一个用于创建每日报告的应用程序。
  • When a daily report is finished it will be locked.每日报告完成后将被锁定。
  • But,sometimes daily report must be changed after locking.但是,有时每日报告必须在锁定后更改。
  • Therefore report will be unlocked.因此报告将被解锁。
  • After the changes made the report will be locked again.进行更改后,报告将再次锁定。

And what we would like to do:我们想做的是:

  • When report is unlocked we would like to take a snapshot当报告解锁后,我们想拍一张快照
  • When report is locked again we would like to take another snapshot of the records to compare with the previous snapsnot (at the moment of unlocking) and see what changes were made in the records.当报告再次被锁定时,我们想拍摄另一个记录快照,以与之前的快照(在解锁时)进行比较,并查看记录中发生了什么变化。 We would like to see the before and after values of each field.我们希望看到每个字段的前后值。

The daily report means around 40 tables and more hundred fields.每日报告意味着大约 40 个表和数百个字段。 So, when something has been changed in daily report it can happen in a few hundred fields of around 40 tables.因此,当每日报告中发生某些更改时,它可能会在大约 40 个表的数百个字段中发生。

We are interested only to compare the status at the moment of unlock and at the moment of locking again.我们只对比较解锁时刻和再次锁定时刻的状态感兴趣。 (With other words, we are not interested in all the changes made between unlock and locking again) (换句话说,我们对解锁和再次锁定之间所做的所有更改不感兴趣)

What is the best/recommended way to do this?最好/推荐的方法是什么?

Thanks in advance for the answers.预先感谢您的回答。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM