In my table A i have a post insert and post update trigger which updates the Audit log when ever data is inserted or updated in table. But when the data inserted/ or updated rollbacks, will the Audit log entry will be rollbacked? If not how to rollback the entries from audit log. Basically how to maintain transaction in triggers?
Aakash, Your data in the audit log would be rolled back. But if you want the audit log to be committed even the insert/update of the table fails, you can use autonomous transaction pragma, if you're using Oracle8i or above. Hth, Remar [ June 25, 2003: Message edited by: Remar Uy ] [ June 25, 2003: Message edited by: Remar Uy ]
A tiny monkey bit me and I got tiny ads:
Devious Experiments for a Truly Passive Greenhouse!