Home > PHP > Function > OCI8 > oci_rollback()

oci_rollback()

oci_rollback - Rolls back the outstanding database transaction

Syntax

bool oci_rollback (resource $connection)

Arguments

  • connection - An Oracle connection identifier, returned by oci_connect(), oci_pconnect() or oci_new_connect().

Description

Reverts all uncommitted changes for the Oracle connection and ends the transaction. It releases all locks held. All Oracle SAVEPOINTSare erased.

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.