|Oracle Call Interface Programmer's Guide
Release 2 (9.2)
Part Number A96584-01
More OCI Relational Functions, 90 of 106
Detaches a transaction.
The service context handle.
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.
Detaches a global transaction from the service context handle. The transaction currently attached to the service context handle becomes inactive at the end of this call. The transaction may be resumed later by calling
OCITransStart(), specifying a flags value of OCI_TRANS_RESUME.
When a transaction is detached, the value which was specified in the timeout parameter of
OCITransStart() when the transaction was started is used to determine the amount of time the branch can remain inactive before being deleted by the server's PMON process.
The transaction can be resumed by a different process than the one that detached it, provided that the transaction has the same authorization. If this function is called before a transaction is actually started, this function is a no-op.
For example code demonstrating the use of
OCITransDetach() see the description of