Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Commitment issues 1

Status
Not open for further replies.

CIMTEET

Programmer
Jun 25, 2001
182
US
This is not a marital question. I am doing multiple updates in a database along with inserting records in a cursor for loop. I was thinking that maybe after i have done all the inserts and updates then I could commit once. Is that true or do I need to commit after every update?
 
CIMTEET,

One "COMMIT;" is sufficient at the end of the PL/SQL block.

And on the topic of marital issues...Did you hear about the the girl that broke up with her DBA boyfriend because he was two-phased and afraid to COMMIT?

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
CIMTEET,

For Distributed Databases, Oracle created a scheme called "Two-Phased COMMIT". My reference was totally an "Oracle Geek" joke. (Sorry I was oblique.)[smile]

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top