Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Rollback in a trigger

421820May 21 2004 — edited May 21 2004
Using a trigger on update.

In the code for the trigger I want to do the following:

Update a table in another database on the same server using a database link.
Update a table in another database on a remote server using a database link.
Delete the row that is currently being updated.

If any errors occur, I have:

EXCEPTION
WHEN OTHERS
THEN ROLLBACK

The idea is that if any of the three actions fail, then an exception will occur and the previous actions would roll back.
If I take down the remote server, I would expect that the error handling would come into play. ItÂ’s not. The changes on the local database have occurred. Am I doing something wrong, flawed logic?


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2004
Added on May 21 2004
5 comments
877 views