Home > PHP > Function > OCI8 > oci_commit()

oci_commit()

oci_commit - Commits the outstanding database transaction

Syntax

bool oci_commit (resource $connection)

Arguments

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

Description

Commits the outstanding transaction for the Oracle connection. A commit ends the current transaction and makes permanent all changes. It releases all locks held.

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.