normally oracle doesn't use any thing to start a transaction.everytime you parse a statement ,it should be in a transaction.
ocilogon($user,$password); // new transaction
$stmt = ociparse();
Ociexecute($stmt,$mode);
// the default mode is oci_commit_on_success
// so this will commit the transacion now.
........// new transacton starts here
change the $mode above to oci_default,
this will not commit the transaction until you call ocicommit or ocilogoff
....
ociexecute($stmt,oci_default);
....... // the same transaction
.....
ocicommit(); // ocirollback();
hope this helps
Erol Ozcan wrote:
How can i do a transaction with php using oci8 lib? Anyone can send me a short
code snippet?