#docslug#/obci/obci/V2.0.1/rqq4vk
OCITransCommit
Description : You can call this function to commit an SQL execution task.
Function prototype :
sword OCITransCommit ( OCISvcCtx *svchp,
OCIError *errhp,
ub4 flags );
Parameters :
Parameter |
Description |
|---|---|
| svchp(IN) | A service context handle. |
| errhp(IN/OUT) | An error handle. |
| flags(IN) | A reserved parameter. |
Return value : OCI_SUCCESS if succeeded, or OCI_ERROR if failed.
OCITransRollback
Description : You can call this function to roll back an SQL execution task.
Function prototype :
sword OCITransRollback ( dvoid *svchp,
OCIError *errhp,
ub4 flags );
Parameters :
Parameter |
Description |
|---|---|
| svchp(IN) | A service context handle. |
| errhp(IN/OUT) | An error handle. |
| flags(IN) | A reserved parameter. |
Return value : OCI_SUCCESS if succeeded, or OCI_ERROR if failed.
OCITransStart
Description : You can call this function to start a transaction.
Function prototype :
word OCITransStart ( OCISvcCtx *svchp,
OCIError *errhp,
uword timeout,
ub4 flags );
Parameters :
Parameter |
Description |
|---|---|
| svchp (IN/OUT) | A service context handle. |
| errhp (IN/OUT) | An error handle. |
| timeout(IN) | The transaction timeout value. This parameter is not supported. Ignore it. |
| flags(IN) | The flag of a transaction attribute. |
Return value : OCI_SUCCESS if succeeded, or OCI_ERROR if failed.
