|Oracle Call Interface Programmer's Guide
Release 2 (9.2)
Part Number A96584-01
More OCI Relational Functions, 94 of 106
Rolls back the current transaction.
A service context handle. The transaction currently set in the service context handle is rolled back.
An error handle you can pass to
OCIErrorGet() for diagnostic information in the event of an error.
You must pass a value of OCI_DEFAULT for this parameter.
The current transaction-- defined as the set of statements executed since the last
OCITransCommit() or since
OCISessionBegin()--is rolled back.
If the application is running under object mode then the modified or updated objects in the object cache for this transaction are also rolled back.
Attempting to roll back a global transaction that is not currently active causes an error.
For example code demonstrating the use of
OCITransRollback() see the description of