Alternate Solution for Oracle Triggers for Audit T

2019-08-02 23:46发布

问题:

We have requirement to audit change history information,that includes capture old value and new value in transaction for update and delete(old value) operation. I have implemented triggers on a table but as number of tables are increasing I feel Oracle trigger option is not suggested. Could any one suggest some better option for audit change history.

回答1:

There are many technologies already implemented by Oracle, some of them require to be licensed separately, some not, to allow you to store, view and manage historical data.

Starting from Oracle 9i flashback version query technology can be used to get the previous version of a row - how data looked like before they got updated or deleted.

Oracle Workspace Manager allows you to version-enable tables to keep different versions of a row.

Starting from Oracle 11g, Total Recall technology(licensed separately) can be used to conveniently store, manage and view historical data.