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: How to detect the change of a table?

Re: How to detect the change of a table?

From: Arjan van Bentem <avbentem_at_DONT-YOU-DARE-cable.a2000.nl>
Date: Thu, 23 Jul 1998 07:18:15 +0200
Message-ID: <6p6h2d$921$1@newton.a2000.nl>


I have been thinking about the same. However, I doubt that you can store the information in one central Audit table. That is: when you have updated the row in the audit table that says that in table A something has changed, then other sessions can not make changes to table A until the first session issues a commit. As long as no commit has been issued, the row for table A in the central Audit table will be locked.

So, I guess the best solution is to write a trigger that updates extra columns, like last_update_date and last_updated_by in the table A itself. Or you'd have to take a look at Oracle standard auditing features, which I never used.

Arjan. Received on Thu Jul 23 1998 - 00:18:15 CDT

Original text of this message

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