Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: RFC on Fitch & Mather Sample
huh wrote in message <7k7oag$2v3s$1_at_ns.felk.cvut.cz>...
>Hello,
<snip>
>What is the difference between putting rolback into the trigger (on a
server)
>instead of using an exception mechanism in a client (pros and cons)?
<snip>
I strongly support executing atomic transaction entirely withing single server-side batches. The batches can etiher be submitted by the client in real-time or be encapsulated in server stored procedures called by the client. For error trapping to be done with this design, it cannot be done by the client, so it must be written into the batch, possibly aided by the use of triggers.
Of course complete or partial prechecking of data should also be done by the client when practical to reduce the use of network bandwidth and server resources to make clearly invalid requests.
The following are some reasons for starting and committing a transaction within the same server-side batch.
![]() |
![]() |