Sponsored Content
Full Discussion: Oracle buys Sun
Special Forums News, Links, Events and Announcements Oracle buys Sun Post 302345827 by McGuywer on Thursday 20th of August 2009 10:10:10 AM
Old 08-20-2009
What will this mean for Java.

I mean in practical terms.
 

5 More Discussions You Might Find Interesting

1. Solaris

Oracle E-Business Suite @ Sun ZFS

Hi, Is there any known issue Oracle 11i application install on Sun ZFS? (0 Replies)
Discussion started by: KhawHL
0 Replies

2. Solaris

Oracle Agrees to Acquire Sun Microsystems

Source: NY Times Oracle Agrees to Acquire Sun Microsystems By ASHLEE VANCE The Oracle Corporation, the technology information company, announced Monday that it would acquire a rival, Sun Microsystems, for $9.50 a share, or about $7.4 billion. The agreement with Oracle came about two weeks... (6 Replies)
Discussion started by: Neo
6 Replies

3. What is on Your Mind?

What do you think of the Oracle-Sun deal?

Sound off with your thoughts on Oracle's acquisition of Sun Microsystems here! (12 Replies)
Discussion started by: Neo
12 Replies

4. Solaris

Sun Cluster and Oracle database

Hi, I am using Oracle 10gR2 on Solaris 10. I have two machines which are part of sun cluster. This is active-passive cluster. Node 1 is active and the Node 2 is passive. Both Node 1 and Node 2 are connected to separate SANs. Both nodes have separate databases. On both nodes, the database... (1 Reply)
Discussion started by: fahdmirza
1 Replies

5. Hardware

Sun/Oracle M5000 Question

I have an M5K with disk issues I'm trying to troubleshoot, and it's causing me some confusion. I know the host has four on-board HDDs, but the format command's output shows c0t0d0, c0t1d0, c3t0d0, and c3t1d0. cfgadm -al shows c0t3d0 as the DVD-ROM drive, and c1 and c2 as SAN disks. Confused yet? ... (2 Replies)
Discussion started by: desertdenizen
2 Replies
OCI_COMMIT(3)															     OCI_COMMIT(3)

oci_commit - Commits the outstanding database transaction

SYNOPSIS
bool oci_commit (resource $connection) 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. A transaction begins when the first SQL statement that changes data is executed with oci_execute(3) using the OCI_NO_AUTO_COMMIT flag. Further data changes made by other statements become part of the same transaction. Data changes made in a transaction are temporary until the transaction is committed or rolled back. Other users of the database will not see the changes until they are committed. When inserting or updating data, using transactions is recommended for relational data consistency and for performance reasons. PARAMETERS
o $connection - An Oracle connection identifier, returned by oci_connect(3), oci_pconnect(3), or oci_new_connect(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 oci_commit(3) example <?php // Insert into several tables, rolling back the changes if an error occurs $conn = oci_connect('hr', 'welcome', 'localhost/XE'); $stid = oci_parse($conn, "INSERT INTO mysalary (id, name) VALUES (1, 'Chris')"); // The OCI_NO_AUTO_COMMIT flag tells Oracle not to commit the INSERT immediately // Use OCI_DEFAULT as the flag for PHP <= 5.3.1. The two flags are equivalent $r = oci_execute($stid, OCI_NO_AUTO_COMMIT); if (!$r) { $e = oci_error($stid); trigger_error(htmlentities($e['message']), E_USER_ERROR); } $stid = oci_parse($conn, 'INSERT INTO myschedule (startday) VALUES (12)'); $r = oci_execute($stid, OCI_NO_AUTO_COMMIT); if (!$r) { $e = oci_error($stid); oci_rollback($conn); // rollback changes to both tables trigger_error(htmlentities($e['message']), E_USER_ERROR); } // Commit the changes to both tables $r = oci_commit($conn); if (!$r) { $e = oci_error($conn); trigger_error(htmlentities($e['message']), E_USER_ERROR); } ?> NOTES
Note Transactions are automatically rolled back when you close the connection, or when the script ends, whichever is soonest. You need to explicitly call oci_commit(3) to commit the transaction. Any call to oci_execute(3) that uses OCI_COMMIT_ON_SUCCESS mode explicitly or by default will commit any previous uncommitted transaction. Any Oracle DDL statement such as CREATE or DROP will automatically commit any uncommitted transaction. SEE ALSO
oci_execute(3), oci_rollback(3). PHP Documentation Group OCI_COMMIT(3)
All times are GMT -4. The time now is 12:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy